TetraTrend Engine [MarkitTick]💡 The TetraTrend Engine is an advanced, multifaceted overlay indicator designed to provide traders with a comprehensive view of market structure, trend direction, and institutional liquidity levels. By capturing and freezing critical moving average data at a user-defined moment in time, it transforms lagging indicators into static support and resistance frameworks. Furthermore, it integrates a sophisticated Multi-Timeframe (MTF) confluence matrix, ADX-based chop filtering, and dynamic position sizing, making it a complete suite for methodical trade execution. Please note that if applied to non-standard charts (like Heikin Ashi or Renko), the script's calculations may repaint.
✨ Originality and Utility
Standard moving averages constantly adjust to new price data, which is useful for trailing trends but less effective for identifying historical break-and-retest zones. This script introduces a novel "Freeze Point" mechanic. At a specific, fixed date and time, the engine captures the exact values of four distinct moving averages and the Average True Range (ATR). These values are then projected forward as horizontal levels, creating a persistent architectural map of the market based on a fundamental historical event (like an earnings report, macroeconomic news release, or structural pivot). Combined with an Auto-Anchored VWAP that automatically initiates from this exact freeze date, it offers a highly unique, institutional-grade perspective on volumetric average price versus static historical momentum.
🔬 Methodology and Concepts
● Core Trend Identification
The indicator calculates four separate moving averages, with default lengths of 20, 50, 100, and 200.
Users can toggle the calculation method between Simple (SMA), Exponential (EMA), Weighted (WMA), and Volume-Weighted (VWMA) moving averages.
● The Freeze Engine
A timestamp is set by the user (defaulting to a specific date like "2025-12-31 23:59").
Once the market time crosses this threshold, the script triggers a state where calculations are locked.
It records the exact values of the four MAs and the 14-period ATR at that exact candle.
● Institutional Confluence and Risk Matrix
The script checks higher timeframe (HTF) trend alignment using a primary HTF filter (defaulting to Daily).
An optional MTF Matrix requires alignment across three custom timeframes (e.g., 240m, Daily, Weekly) before validating any bullish signals.
It incorporates an ADX threshold (default 20.0) to filter out choppy, ranging markets, ensuring signals are only generated during periods of active momentum.
🎨 Visual Guide
● Chart Overlays and Lines
MA 1 (Length 20): Plotted in bright Cyan (#00E5FF).
MA 2 (Length 50): Plotted in Teal (#14B5CB).
MA 3 (Length 100): Plotted in Royal Blue (#2979FF).
MA 4 (Length 200): Plotted in Purple (#AA00FF).
Freeze Marker: A vertical line (default Dashed, colored Gray/Blue) denotes the exact moment the historical levels were captured.
Anchored VWAP: If enabled, an Orange line (#FFB74D) plots the volume-weighted average price starting precisely from the Freeze Marker.
● Dynamic Liquidity Zones
If enabled, semi-transparent shaded bands appear around Frozen Level 1 and Frozen Level 4.
These bands represent a distance of 0.5 * Frozen ATR, illustrating expected volatility boundaries at the time of the freeze.
● Analytics Dashboard
A heads-up display table is drawn in the top-right corner, displaying a dark theme with blue/gray borders.
It lists the HTF Trend Status (Bullish in Green, Bearish in Red).
It displays the current Market State (Trending/Active vs. Chop/Low Vol) based on the ADX.
It shows current Volatility (ATR) and ADX Strength.
If enabled, it outlines the MTF Matrix Status and the mathematically calculated Dynamic Position Size.
● Signal Shapes and Labels
A green triangle pointing up (#00E676) plots below the bar when a valid Long signal is generated.
Dynamic labels attach to the right side of the frozen levels, constantly updating to show the MA length and exact price level.
📖 How to Use
● Setting the Anchor
Identify a major market event on your chart (a swing high/low, a CPI data release, or a sudden volume spike).
Open the settings and input the exact date and time of this event into the "Fixed Date/Time (Freeze Point)" input.
● Interpreting Signals
Wait for the market to interact with the freshly drawn horizontal frozen levels.
A valid Long signal (Green Triangle) will only trigger if: the price crosses above Frozen Level 1, the HTF trend is bullish, the market is not ranging (ADX > threshold), and the optional MTF matrix is fully aligned.
Monitor the Analytics Dashboard table to ensure the broader market environment supports the trade setup.
⚙️ Inputs and Settings
• Moving Average Settings
Length 1 through 4: Adjust the lookback periods for the core trend calculation.
MA Type: Dropdown to select the mathematical smoothing method (SMA, EMA, WMA, VWMA).
• Advanced Filters & Risk
Primary HTF Filter: Determines the baseline higher timeframe to establish the primary trend direction.
ADX Chop Filter Threshold: Sets the minimum ADX value required to consider the market "trending" rather than "ranging".
Risk/Reward Ratio: A multiplier used to automatically calculate Take Profit 1, 2, and 3 targets based on the dynamically calculated Stop Loss distance.
• Institutional Features (Optional)
Enable Auto-Anchored VWAP: Anchors a VWAP strictly starting from the chosen Freeze Date.
Enable MTF Confluence Matrix: Requires alignment across three separate, user-defined timeframes.
Enable Dynamic Position Sizing: Inputs for Account Size ($) and Risk Per Trade (%). The script uses the ATR-based stop loss to output exact contract/share sizing required to maintain strict risk parameters.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The TetraTrend Engine leverages several established quantitative and statistical concepts to derive its signals. Moving averages serve as low-pass filters, dampening high-frequency market noise to reveal the underlying directional component of the time series. By capturing these values statically at a user-defined vector (the Freeze Point), the script transitions from dynamic time-series analysis to fixed architectural support/resistance theory, positing that historical mean values at critical temporal nodes retain psychological and institutional relevance.
Furthermore, the integration of the Average Directional Index (ADX) relies on the statistical measurement of trend velocity and momentum dispersion. The ADX component acts as a volatility gatekeeper, mathematically ensuring that the standard deviation of directional movement exceeds a baseline threshold before capital is deployed. Position sizing calculations utilize the Average True Range (ATR)—a measure of absolute price dispersion—to dynamically scale risk exposure inversely to market volatility, ensuring normalized risk parity across varied market environments.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Goldilocks and the Three Bears - [Algoat_Alpha]Goldilocks and the Three Bears is a multi-layer confluence indicator that identifies
when three independent technical dimensions — trend, momentum, and direction — all
align in the same direction. Inspired by the classic fairy tale, it waits for
conditions that are "just right" before signaling.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The indicator evaluates three independent layers on every bar:
Papa (Trend) — A Moving Average (SMA or EMA) establishes the macro trend.
Price above the MA = bullish trend. Price below = bearish trend. This is the
slowest-moving component and acts as the structural filter.
Mama (Momentum) — The Relative Strength Index measures whether buying or selling
pressure dominates. RSI above the midline (default 50) = bullish momentum.
Below = bearish momentum. This prevents entries against exhausted moves.
Baby (Direction) — The MACD-Signal crossover captures the fastest directional
shift. MACD above its signal line = bullish direction. Below = bearish direction.
This is the trigger layer.
A signal fires only when ALL THREE flip into alignment simultaneously — the exact
bar where the last component joins the other two. This transition-based logic
prevents redundant signals during sustained trends.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY CONFLUENCE MATTERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Each indicator alone produces frequent false signals:
• MA alone triggers late in ranges
• RSI alone triggers too early in trends
• MACD alone whipsaws in choppy markets
By requiring all three to agree, the indicator filters out noise that any single
layer would miss. The three layers operate on different mathematical principles
(price vs. average, momentum oscillator, moving average convergence/divergence),
so their agreement represents genuine multi-dimensional confluence — not just the
same signal measured three times.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Add the indicator to your chart. The dashboard shows the real-time state of
all three layers.
2. When all three show "Bull" → Goldilocks Zone (bullish). A 🐂 label appears
on the chart at the entry bar.
3. When all three show "Bear" → Goldilocks Zone (bearish). A 🐻 label appears.
4. "Still Cooking" means the layers are mixed — no directional consensus yet.
Hover over any signal label for a detailed tooltip showing the exact values
of all three components at the time of the signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Auto light/dark theme detection — dashboard adapts to your chart background
• Discord-ready webhook alerts — alert messages are formatted as Discord embed
JSON, ready to pipe directly into a webhook channel
• Pine Screener compatible — includes Signal State, individual component states,
and a Bull Count (0-3) for flexible scanner filtering
• Minimal chart footprint — only the MA line and signal labels are drawn;
bar coloring is off by default
• Fully configurable — all indicator lengths, thresholds, dashboard position
and size are adjustable in settings
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Three alert conditions are available:
• 3 Bulls Aligned (Long Entry)
• 3 Bears Aligned (Short Entry)
• Full Confluence (Any Direction)
All alert messages include ticker, timeframe, price, and component status.
Messages are pre-formatted as Discord webhook JSON — just paste your webhook
URL in PulseWire's alert notification settings.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PINE SCREENER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Scanner columns exported:
• Signal State → 1 (bullish), -1 (bearish), 0 (no confluence)
• Papa Bull / Mama Bull / Baby Bull → individual component states (1 or 0)
• Bull Count → number of bullish layers (0 to 3), useful for "almost there" scans
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator does not repaint and does not use request.security().
All calculations are performed on the current chart's timeframe.
Open source under MPL 2.0.
Stay Liquid. Indicator

Adaptive Trend Impulse Channel [TechnicalZen]Adaptive Trend Impulse Channel
User Guide and Interpretation Manual
A practical guide to reading the indicator as a map of impulse, deceleration, continuation, and structural reset.
Core idea
This indicator does not assume price moves in one smooth trend. It assumes markets typically move in impulses, then lose urgency, then either continue with another impulse, stall and re-center, or reverse. The channel is designed to visualize that rhythm.
High-level chart view of the indicator on a real instrument
Figure 1. High-level chart view of the indicator on a real instrument — Recommended image: a full-chart screenshot with the midline, bands, fill, regime markers, and retest markers visible.
1. What the indicator is trying to model
Most channels are built as a rolling average plus or minus some volatility measure. That works reasonably well, but it treats price as if it travels in a smooth and nearly continuous way. Real markets are usually messier and more alive than that. They tend to push in bursts, pause, compress, pull back, re-accelerate, and only then settle into a new local structure.
The Adaptive Impulse Channel is more realistic because it treats the chart as a sequence of structural phases. A strong move can create a new segment. A continued push can step that segment further. A tired phase can refresh the structure without fully reversing it. In other words, the indicator is trying to map the market as a living auction, not as a single drifting average.
Why that matters for traders
Traders do not usually ask whether price is merely above or below an average. They ask whether the move is real, whether it is still forceful, whether the market is tiring, and whether a pullback is a healthy retest or a sign of structural failure.
2. Why impulse and deceleration are close to price-action reality
Markets move when imbalance appears. Buyers temporarily overpower sellers, sellers overwhelm buyers, trapped traders cover, breakout participants pile in, or fresh information causes rapid repricing. That is the impulse phase. Yet that intensity rarely stays constant forever. Participation thins, profit-taking appears, fresh orders become harder to find, and the move starts to lose urgency. That is deceleration.
This indicator mirrors that logic. It re-anchors the channel when a meaningful structural event occurs, then lets the active segment decay rather than pretending the move should continue in a perfect straight line. That design choice is one of the reasons the tool often feels more intuitive than a standard envelope. It respects the fact that momentum must be renewed; it is not a permanent birthright bestowed by one strong candle.
• Impulse: price escapes the active structure with conviction.
• Deceleration: the new structural guide does not accelerate forever; it gradually loses urgency.
• Continuation: a fresh burst can ratchet the structure again in the same direction.
• Refresh: if the old segment becomes stale or detached, the indicator can locally re-center without forcing a full reversal.
Annotated impulse → deceleration → continuation sequence
Figure 2. Annotated impulse → deceleration → continuation sequence — Recommended image: one clear trend leg with a breakout, a pause, a continuation step marker, and a later pullback or refresh.
3. What you actually see on the chart
Mid line
The mid line is the organizing rail of the current structural phase. In Lead mode it behaves more like projected support or resistance; in Follow mode it behaves more like an adaptive center of gravity. Either way, it is the most important visual guide in the channel.
Upper and lower bands
The bands define the current accepted motion envelope. A small touch is not enough to change the market story. But when price pushes beyond them with enough force and enough confirmation, the script can interpret that as a new regime or a fresh continuation step.
Gradient fill
The fill helps the eye understand zone depth instead of only line location. It makes it easier to judge whether price is living comfortably inside structure, leaning hard against the edge, or forcing its way outside the channel.
Markers
Triangles identify true bullish or bearish regime flips. Circles mark continuation steps. Smaller retest markers identify quieter interactions with the active bands. Optional refresh markers show when the script locally re-centers the segment without calling a full directional reversal.
4. How to read the indicator in practice
Bullish regime flip
A bullish regime flip tells you the prior structure was overcome decisively enough that the script believes a new bullish phase has started. This is not a blind buy instruction. It is evidence that the market has likely changed character. The next question is whether price can hold the new structure on a pullback or retest.
Bearish regime flip
A bearish regime flip means the downside push was strong enough to invalidate the previous structure. This often matters more than a simple moving-average cross because the indicator is demanding displacement beyond the active channel, not merely a small drift below a smoothed line.
Continuation steps
Continuation steps are often the most useful events. They tell you the current regime is not merely surviving; it is reasserting. In a healthy trend the market often moves as burst, hold, burst again. These step markers help visualize that staircase behavior.
Refresh events
Refresh events are quieter but valuable. They mean the old segment became stale or too detached from local structure, so the script re-anchors without declaring a full directional reversal. That is a very realistic behavior because markets often reorganize before they make a dramatic statement.
Retests
Retests show interaction with the outer band during an existing regime. They matter because the flashy breakout is only half the story. The retest reveals whether the market can actually defend the new structural area. Many strong trends are built on exactly that sequence.
Bullish regime flip followed by a successful retest
Figure 3. Bullish regime flip followed by a successful retest — Recommended image: show the flip marker, the new segment, and a later lower-band retest that holds before continuation.
5. Lead mode versus Follow mode
Lead mode places the mid line on the opposite side of price pressure and lets it behave more like projected support or resistance. It is usually the better choice when you want the channel to feel structural and forward-looking rather than simply reactive.
Follow mode blends re-anchoring toward the local basis and behaves more like a dynamic tracking channel. It generally feels smoother and more classical. Traders who prefer channels to hug price action more gently often prefer this mode.
• Choose Lead when you care most about structure, pressure, and projected support or resistance.
• Choose Follow when you want a steadier, more mean-centered channel that tracks ongoing motion more closely.
Side-by-side comparison of Lead mode and Follow mode
Figure 4. Side-by-side comparison of Lead mode and Follow mode — Recommended image: same symbol and timeframe, same region of chart, with two screenshots that show the difference in midline behavior.
6. Settings guide
The easiest way to think about the logic settings is to divide them into five groups: sensitivity, confirmation, structural maintenance, event size, and channel shape. The tables below are written in trader language rather than coding language.
Sensitivity and confirmation
Setting How to think about it
ATR Length Sets the volatility measuring tape used throughout the channel. Higher values make the indicator less reactive to short-term noise.
Local Basis Length Controls how quickly the local structural center adapts. Lower values follow price faster; higher values smooth more.
Flip Threshold Beyond Band How far price must push outside the channel before a new regime can be declared.
Continuation Threshold Beyond Band How far price must extend in the same direction before the channel ratchets higher or lower.
Confirmation Bars Number of consecutive qualifying bars needed before a flip or continuation is accepted.
Structural maintenance, event size, and channel shape
Setting How to think about it
Cooldown Bars Minimum pause after an event so the indicator does not re-fire immediately.
Max Segment Age Maximum life of one structural segment before the script is allowed to refresh it.
Detach Threshold / Detach Bars Refresh control that re-centers the channel when its midline drifts too far from the local basis for too long.
Re-anchor Blend To Local Basis In Follow mode, determines how strongly the new segment leans back toward the local basis.
Step Size On Event How large the structural jump is when a continuation or regime flip occurs.
Adverse Slope Per Bar The built-in deceleration rate. Higher values make the post-impulse segment decay faster.
Base Half-Width / Local Spread Multiplier / Max Half-Width Controls channel thickness using ATR plus local spread, with a cap to prevent absurd expansion.
Mid Line View: Lead vs Follow Lead behaves like projected support/resistance. Follow behaves like a more classical adaptive channel.
7. Visual settings guide
The style controls do not change the trading logic, but they strongly affect readability. Good styling matters because an indicator that is technically correct but visually muddy will slow decision-making when the chart is moving fast.
Style control Purpose
Show Fill / Show Band Edges Turns the channel body and band outlines on or off. Helpful when you want either a clean structure view or a fuller visual guide.
Show Retests Displays quiet interaction markers when price retests the active band.
Show Regime Change Markers Shows only true bullish or bearish flips, not every structural refresh.
Show Continuation Step Marks Highlights staircase-style re-impulses inside an existing regime.
Show Refresh Marks Displays maintenance resets when the channel goes stale or detached.
Show Segment Cap Lines Vertical segment separators that show where one structural phase ended and the next began.
Connect Segment Endpoints Connects new segments into one continuous-looking ribbon. Turning this off makes the segmentation more visible.
Mid Glow Width / Mid Main Width / Band Edge Width Visual emphasis controls that help the channel read clearly on different chart backgrounds.
Gradient Colors and Transparencies Purely visual. Use them to improve contrast and make the active regime easier to read quickly.
8. Where the indicator tends to shine
• Trend days, especially when price alternates between expansion and pullback.
• Breakout continuation setups where you want to see whether the move is stepping rather than merely drifting.
• Swing trends with visible impulse legs and orderly retests.
• Markets where support and resistance behave like evolving zones rather than fixed horizontal lines.
Where it is less magical
• Hyper-choppy noise where every small breakout immediately fails.
• News whipsaw environments where structure is repeatedly invalidated in both directions.
• Very tight low-volume ranges where the market is not producing meaningful impulse-decay behavior at all.
Healthy expectation
This indicator is a structural lens, not a prophecy machine. It helps answer: What regime am I in? Is the move still forceful? Did the market just reload? Has the structure gone stale? Those are excellent questions. They are not the same thing as guaranteed entries or exits.
9. Practical workflow for using it
• Start by identifying the current regime: bullish, bearish, or neutral.
• Check whether price is respecting the active channel or constantly violating it.
• Watch for continuation steps; they often tell you more about trend health than the first flip does.
• Use retests to judge whether the new structure is being defended.
• Treat refreshes as re-centering events, not as instant reversal calls.
• Always confirm with context: market regime, volume, higher timeframe structure, and instrument personality.
Continuation staircase inside a healthy trend — Recommended image: a chart with multiple continuation step marks and a channel that ratchets in the trend direction.
10. Limitations and best practices
The model is grounded, but it is still a model. It does not know hidden liquidity, macro headlines, dealer positioning, or whether a single market-moving order is about to smash the structure sideways. Its job is to describe price behavior in a disciplined way, not to replace judgment.
• Do not treat every marker as a trade signal in isolation.
• Avoid over-tuning the settings on one symbol until the script fits past noise too perfectly.
• Remember that a strong indicator can still struggle when the market itself has no clean structure.
• Use screenshots and replay study to learn the difference between healthy continuation and late-stage exhaustion.
Example of a weak environment: choppy market with poor structural follow-through
Figure 6. Example of a weak environment: choppy market with poor structural follow-through — Recommended image: a sideways region showing why the channel is less useful when impulse-decay behavior is absent.
11. Suggested images to insert later
This document already includes figure placeholders. If you want to turn it into a polished final manual, the best image set would include six screenshots: a full high-level chart, an impulse-deceleration-continuation sequence, a regime flip plus retest example, a Lead-versus-Follow comparison, a multi-step continuation trend, and one failure example from a choppy market. Those six images usually tell the whole story clearly.
Image support
I can insert real screenshots into these placeholders if you upload them. The cleanest approach is to provide PNG screenshots with the instrument, timeframe, and any annotations you want preserved.
Indicator

Trend Pulse Oscillator [invincible3]Trend Pulse Oscillator (TPO) is a hybrid trend + momentum indicator that combines normalized squeeze momentum with normalized MACD confirmation in a single oscillator.
The indicator helps traders analyze three key market conditions:
Trend direction
Momentum strength
Volatility compression and expansion
Unlike traditional indicators that operate on different scales, TPO normalizes all components into the same range, making it easier to visually compare signals in one panel.
⚙️ How It Works
The indicator combines two main analytical components.
🔹 Squeeze Momentum Engine
A Bollinger Band vs Keltner Channel squeeze framework is used to detect periods of volatility compression.
When volatility compresses, markets often prepare for a strong directional move.
A linear regression momentum calculation is applied and then normalized using statistical scaling, producing the histogram that represents the trend pulse.
🔹 Normalized MACD Confirmation
The indicator also calculates MACD and Signal lines, but instead of plotting the raw values, both lines are normalized to match the oscillator scale.
This allows traders to easily compare:
• trend confirmation
• momentum acceleration
• direction changes
within the same visual space.
📊 Visual Elements
Histogram – Trend Pulse
The histogram represents the main momentum engine.
• Rising green bars → strengthening bullish momentum
• Falling red bars → strengthening bearish momentum
• Above zero → bullish bias
• Below zero → bearish bias
🔵 MACD & 🟠 Signal Lines
• Blue line → normalized MACD
• Orange line → normalized Signal
MACD above Signal suggests bullish confirmation.
MACD below Signal suggests bearish confirmation.
🎯 Zero Line (Volatility State)
The zero line changes color to display squeeze conditions.
Yellow → squeeze active (volatility compression)
Gray → squeeze released (volatility expansion)
Blue → neutral state
This helps traders identify potential breakout environments.
📏 Reference Bands
Upper and lower bands highlight extended momentum zones, which may indicate:
• strong trend continuation
• possible momentum exhaustion
• overextended market conditions
⚙️ Settings
Squeeze Settings
Controls volatility compression detection.
• BB Length
• BB MultFactor
• KC Length
• KC MultFactor
• Use True Range
📐 Normalization Settings
Controls statistical scaling of the oscillator.
• Normalize Lookback
• Target Range
• Z-Score Clamp
• Band Level
These parameters adjust how values are scaled and displayed visually.
📈 MACD Settings
Controls the trend confirmation component.
• Fast Length
• Slow Length
• Signal Length
• EMA or SMA options
💡 Typical Usage
Traders often look for alignment between:
✅ Rising histogram momentum
✅ MACD above Signal
✅ Squeeze release after compression
This combination may indicate momentum expansion within a developing trend.
Similarly:
Falling histogram
MACD below Signal
can suggest bearish momentum continuation.
⭐ Key Features
✔ Combines volatility, momentum, and trend confirmation
✔ Uses statistical normalization for cleaner visualization
✔ Helps identify momentum expansion phases
✔ Works across all markets and timeframes
⚠️ Notes
• Designed as a trend and momentum analysis tool
• Normalization is used for visual comparison only
• Best used alongside price action, support/resistance, or higher timeframe analysis Indicator

[ A L P H A X ] Vision - Smart Entry/Exit SignalsAlphaX Vision — Fusion Trend Engine, Smart Entry/Exit Signals, Multi-Confluence Confidence Scoring & Choppy Market Detection
AlphaX Vision is a professional-grade trend following and signal system built on a proprietary Fusion Moving Average engine that blends five different moving average types into a single adaptive trend baseline. It delivers three distinct signal layers — Trend Change labels, Re-Entry triangles, and Exit markers — each governed by a multi-factor confidence scoring system and institutional-grade filters. Designed for intraday traders on fast-moving instruments like XAUUSD, indices, and forex majors.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Visual Overview
Full chart view showing Fusion Cloud, trend labels, re-entry triangles, and exit markers on XAUUSD 1-minute
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Fusion Engine — How It Works
At the core of AlphaX Vision is the Fusion Moving Average — a proprietary composite baseline calculated by averaging five independent moving average types on every bar:
EMA — Exponential Moving Average for fast responsiveness
SMA — Simple Moving Average for stability and noise reduction
WMA — Weighted Moving Average for recent-price emphasis
ALMA — Arnaud Legoux Moving Average for Gaussian-smoothed precision
VWAP — Volume Weighted Average Price for institutional volume anchoring
The raw Fusion value is then split into two smoothed layers:
Fusion Slow — the primary trend baseline (heavier smoothing)
Fusion Fast — the responsive layer that reacts to momentum shifts first
When price is above Fusion Slow and the slope is rising → the trend is bullish (yellow-green theme)
When price is below Fusion Slow and the slope is falling → the trend is bearish (red theme)
When neither condition is met → the market is neutral (gray — no signals fire)
The space between Fusion Fast and Fusion Slow forms the Fusion Cloud — a gradient-shaded area that visually represents trend strength and direction at a glance.
Fusion Cloud expanding during a strong trend — wider cloud = stronger momentum
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Three Signal Layers
AlphaX Vision produces three distinct types of signals, each with a specific role in the trade lifecycle:
1 ─ Trend Change Labels ( B U L L / B E A R )
Compact trend change labels marking the start of a new bullish or bearish phase
These are the primary directional signals . A " B U L L " label appears below the bar when the Fusion system detects a confirmed shift from bearish or neutral to bullish. A " B E A R " label appears above the bar for the opposite shift.
How the trend change is detected:
Price crosses above Fusion Slow while the Fusion Slow slope turns upward → Bullish
Price crosses below Fusion Slow while the Fusion Slow slope turns downward → Bearish
A cooldown timer prevents repeated labels during choppy transitions — configurable via Trend Label Cooldown
Once a trend label fires, it sets the directional context for all subsequent signals. During a BULL trend, only long entries and long exits are generated. During a BEAR trend, only short entries and short exits are generated. This eliminates counter-trend noise entirely.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2 ─ Re-Entry Triangles (▲ / ▼)
Small re-entry triangles appearing after the initial trend label — opportunities to add or re-enter in the direction of the trend
After a trend is established by the Fusion label, the AlphaX Pro engine monitors for high-confidence re-entry opportunities within that trend. These appear as small triangles:
▲ Yellow-green triangle below bar — Re-entry long signal during a BULL trend
▼ Red triangle above bar — Re-entry short signal during a BEAR trend
Re-entry signals are generated by six independent trigger types, all running simultaneously:
Divergence Trigger — WPR divergence against price (price makes new low but WPR makes higher low, or vice versa)
Extreme Snap — Fast WPR recovers from deeply oversold/overbought territory while higher timeframe WPR confirms trend support
Exhaustion Recovery — Price shows exhaustion at a level while the broader trend remains intact
Trend Continuation — Fast WPR crosses back from a pullback zone while slow and turtle WPR confirm a strong ongoing trend
Pullback Entry — A moderate pullback within an established trend with sufficient velocity to confirm the bounce
Triple Alignment — All three WPR timeframes (fast, slow, turtle) reach extreme levels simultaneously and begin recovering together
Each trigger feeds into the Confidence Scoring System (explained below). Only signals that meet your minimum confidence threshold are displayed — weak or ambiguous setups are automatically filtered out.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3 ─ Exit Markers (✕)
Gray X marks indicating where the Pro engine detects momentum exhaustion against the current trend — time to consider taking profit or tightening stops
Exit signals appear as small gray ✕ marks and fire only after at least one re-entry signal has occurred in the current trend. This prevents premature exit markers from appearing before you have even entered.
During a BULL trend — a sell-side signal from the Pro engine triggers an exit ✕ above the bar
During a BEAR trend — a buy-side signal from the Pro engine triggers an exit ✕ below the bar
Exit markers indicate that counter-trend momentum is building . They do not necessarily mean the trend is over — but they warn that the current move may be losing steam. Use them to:
Take partial or full profit
Tighten your stop loss
Pause new entries until the next re-entry triangle confirms continuation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Multi-Confluence Confidence Scoring
Every re-entry and exit signal is scored by a real-time confidence engine that evaluates multiple independent factors and produces a score from 0 to 100. Only signals meeting your configured Min Pro Confidence % threshold are displayed.
The scoring factors include:
Trend Alignment (up to 25 points)
Turtle WPR (200-period) position — measures the macro trend direction
Higher scores when the long-term trend strongly supports the signal direction
Oversold/Overbought Depth (up to 20 points)
How deeply the Fast WPR penetrated into extreme territory before recovering
Deeper penetration = higher score = stronger spring-loaded reversal potential
Signal Type Quality (up to 20 points)
Triple Alignment and Trend Continuation score highest (18–20 points)
Divergence scores 17 points
Extreme Snap scores 14 points
Pullback scores 8 points
Multiple simultaneous triggers add a stacking bonus — 2 triggers = +8 points, 3+ triggers = +15 points
Velocity Quality (up to 15 points)
The speed at which Fast WPR is moving — "IDEAL" velocity scores 15, "STRONG" scores 10, "EXTREME" (too fast, likely to reverse) scores only 3
Velocity thresholds are session-adaptive — adjusted automatically based on whether the current session is London/NY overlap (highest volatility) or Asian session (lowest volatility)
Session Quality (up to 10 points)
London/NY overlap = 10 points (best liquidity and follow-through)
London session = 8.5 points
NY afternoon = 6 points
Asian session = 3 points (signals during Asia receive a penalty)
EMA Alignment (up to 5 points)
Price position relative to 200 EMA and 50/200 EMA cross — confirms structural trend
Penalty Deductions
Extreme velocity (likely spike/wick) — up to -10 points
RSI already at opposite extreme — up to -8 points
Asian session or NY close timing — up to -10 points
Low volume — -5 points
The default minimum confidence is set to 35% — optimized for XAUUSD 1-minute to filter noise while still capturing valid setups. Increase to 45–55% for even cleaner signals on higher timeframes, or reduce to 20–25% for more aggressive scalping.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡 Trend Alignment Gate
An additional layer of protection called the Trend Alignment Gate prevents counter-trend signals from firing during strong established trends.
If Turtle WPR and Slow WPR both confirm a strong downtrend → buy signals are blocked unless the Fast WPR shows a confirmed recovery move from extreme oversold (recovery must exceed a minimum move threshold within a configurable lookback window)
If both confirm a strong uptrend → sell signals are blocked unless Fast WPR shows confirmed recovery from overbought
Strict Mode tightens the gate thresholds further for maximum noise reduction
This gate is enabled by default and is one of the key reasons AlphaX Vision produces significantly fewer false signals than typical oscillator-based systems.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Choppy / Ranging Markets — When NOT to Trade
Choppy market condition — EMAs converging, Fusion Cloud collapsed, no clear trend labels. This is when you step aside.
Knowing when to stay out is just as important as knowing when to enter. AlphaX Vision gives you clear visual cues that the market is in a choppy, range-bound state:
How to identify choppy conditions:
Fusion Cloud disappears or becomes paper-thin — when Fusion Fast and Fusion Slow are nearly overlapping, the cloud collapses. No cloud = no trend = no edge.
EMAs converge and flatten — when the Fast EMA (yellow-green dots), Medium EMA (gray line), and Slow EMA (dark gray line) all cluster together and move sideways, the market has no directional bias.
Frequent color switches — if the Fusion system is rapidly alternating between bullish and bearish with labels appearing in quick succession, the trend cooldown filter is doing its job blocking most of them, but the underlying message is clear: no clean trend.
No re-entry triangles appearing — even after a trend label fires, if the Pro engine cannot find a single re-entry opportunity that meets the confidence threshold, the "trend" is likely a false start.
Cloud color is gray (neutral) — when neither bullish nor bearish conditions are met, the Fusion lines turn gray. This is the indicator explicitly telling you: this is a no-trade zone.
What to do during choppy markets:
Do not force entries — wait for the cloud to expand and a clean trend label to form
Look for the EMAs to fan out and separate — this confirms that a new directional move is developing
Wait for the first re-entry triangle after a trend label before committing capital — the triangle confirms the trend has real momentum behind it
Consider switching to a higher timeframe temporarily to find structure — if the 1-minute is chopping, the 5-minute or 15-minute may show a clear trend that the 1-minute will eventually follow
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 EMA System
Three Exponential Moving Averages are plotted as structural context:
Fast EMA (21) — yellow-green cross marks — the immediate momentum reference. When price holds above the Fast EMA, intrabar momentum favors longs.
Medium EMA (55) — gray line — the intermediate trend filter. Slope direction confirms trend momentum.
Slow EMA (200) — dark gray line, thicker — the structural backbone. The 200 EMA is used by the confidence scoring system and acts as the macro trend divider.
EMA Fan Analysis:
When all three EMAs are fanning outward in order (Fast > Medium > Slow for bullish, reverse for bearish) — the trend is healthy and re-entry signals carry higher confidence
When EMAs are converging — trend is weakening, expect chop or reversal
When EMAs are tangled and flat — range-bound market, stay out
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Vision — Step by Step
Step 1 — Assess Market Condition
Check the Fusion Cloud: Is it expanded and colored, or collapsed and gray?
Check the EMAs: Are they fanned out or tangled?
If choppy → do not trade. Wait for structure.
Step 2 — Wait for a Trend Label
A " B U L L " or " B E A R " label sets your directional bias
Do not enter on the label itself — it confirms the trend, but the optimal entry comes next
SCREENSHOT_7_TRADE_FLOW
Complete trade flow: Trend label → Re-entry triangle → Price move → Exit marker
Step 3 — Enter on Re-Entry Triangle
The first ▲ or ▼ triangle after a trend label is your primary entry signal
This is a confirmed, confidence-scored setup aligned with the macro trend
Place your stop loss beyond the recent swing high/low or below/above the Fusion Slow line
Step 4 — Manage with Subsequent Triangles
Additional re-entry triangles during the same trend are opportunities to add to your position or re-enter after a partial take-profit
Each triangle has passed the same confidence filters as the first
Step 5 — Exit on ✕ Mark
When a gray ✕ appears, the Pro engine has detected counter-trend momentum
Take partial or full profit
If the trend is still active (no opposing trend label), wait for the next re-entry triangle to confirm continuation before re-entering
Step 6 — Trend Ends
When an opposing trend label appears (e.g., " B E A R " after you were in a BULL trend), the trend has reversed
Close any remaining position from the prior trend
The new label resets the cycle — wait for re-entry triangles in the new direction
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Proprietary Fusion MA engine blending EMA + SMA + WMA + ALMA + VWAP into one adaptive baseline
☁ Gradient trend cloud with 5-layer depth shading — instant visual trend strength
🏷 Clean, compact trend labels with spaced lettering — professional and non-intrusive
▲▼ Confidence-scored re-entry triangles — only high-quality setups pass the filter
✕ Smart exit markers — fire only after entry, detect counter-trend momentum buildup
🧠 Multi-factor confidence scoring — trend, depth, velocity, session, volume, EMA alignment, signal stacking
⏱ Session-adaptive velocity thresholds — automatically adjusts for London, NY, Asia, and overlap sessions
🛡 Trend Alignment Gate with Strict Mode — blocks counter-trend noise during strong moves
📐 Three EMAs (21 / 55 / 200) for structural context and fan analysis
🎨 Cohesive dual-tone color theme — yellow-green for bullish, red for bearish, gray for neutral/exits
🔔 6 alert conditions — trend changes, entries, and exits with clean message formatting
⚙ Fully configurable — all periods, thresholds, colors, and filters are adjustable from the settings panel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Fusion System
Fusion MA Length — base period for all five moving averages (default: 40)
Fusion Slow Sensitivity — smoothing period for the slow trend line (default: 12)
Fusion Fast Sensitivity — smoothing period for the fast momentum line (default: 5)
Show Trend Cloud — toggle the gradient cloud fill between Fusion Fast and Fusion Slow
EMA Settings
Fast / Medium / Slow EMA — independently toggle visibility and set periods
Defaults optimized for XAUUSD 1-minute: 21 / 55 / 200
AlphaX Pro Settings
Fast WPR Period (default: 11) — the primary oscillator for signal generation
Slow WPR Period (default: 48) — intermediate trend confirmation
Turtle WPR Period (default: 180) — macro trend direction
Oversold / Overbought Levels — thresholds for WPR cross triggers (default: -90 / -10)
Trend Detection Period — lookback for slope calculation (default: 25)
Min Pro Confidence % — minimum score a signal must achieve to be displayed (default: 35%)
Trend Alignment Gate — enable/disable counter-trend blocking
Strict Mode — tighten gate thresholds for maximum noise reduction
Recovery Requirements — minimum WPR recovery move and lookback for counter-trend signal validation
Trend Filters
Trend Label Cooldown — minimum bars between consecutive trend labels (default: 25)
Theme Colors
Bull Primary / Bright / Dim — the yellow-green family for all bullish elements
Bear Primary / Bright / Dim — the red family for all bearish elements
Neutral color — gray for exits, inactive states, and choppy conditions
Individual EMA colors — Fast (yellow-green), Medium (gray), Slow (dark gray)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Fusion → Bull Trend — fires when a new BULL trend label appears
Fusion → Bear Trend — fires when a new BEAR trend label appears
Re-Entry Long — fires on each bullish re-entry triangle
Re-Entry Short — fires on each bearish re-entry triangle
Exit Long — fires when a long exit ✕ appears
Exit Short — fires when a short exit ✕ appears
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is specifically tuned for XAUUSD (Gold) on the 1-minute timeframe :
Confidence threshold at 35% filters out low-quality signals while keeping valid scalping setups
Strict Trend Gate enabled to block counter-trend noise during strong gold moves
Cooldown at 25 bars prevents label spam during volatile transitions
WPR periods (11 / 48 / 180) calibrated for gold's intraday volatility profile
Session-adaptive velocity ensures signals respect the different volatility regimes across Asia, London, and NY
For other instruments or timeframes, adjust:
Higher timeframes (5m, 15m) — increase Fusion Length to 50–60, increase confidence to 40–50%
Forex majors — reduce Fusion Length to 30–35, keep confidence at 30–35%
Indices (NAS100, US30) — use defaults or increase Turtle WPR to 200 for broader trend context
Less noise — increase Min Confidence %, enable Strict Mode, increase Cooldown
More signals — decrease Min Confidence %, disable Strict Mode, decrease Cooldown
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Gold (XAUUSD) scalpers and intraday traders — built and tuned specifically for gold's volatility and session structure
📉 Forex traders — works on all major and minor pairs with minor setting adjustments
📊 Index traders — applicable to US30, NAS100, SPX500, DAX, and others
🧠 Systematic traders — the confidence scoring system provides a quantitative framework, not just visual signals
📈 Traders who value clean charts — no indicator soup, no overlapping signals, no clutter. One cohesive system with a consistent color theme
⚠ Traders who struggle with overtrading — the choppy market detection and confidence filters physically prevent low-quality signals from appearing
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
Session-adaptive features use UTC/GMT time — the indicator automatically detects whether the current bar falls within Asia, London, NY overlap, NY afternoon, or NY close windows
Designed primarily for intraday timeframes — M1 through H1. On daily or weekly charts the session-adaptive features are less meaningful but the Fusion trend system still functions
The Fusion engine uses ta.vwap which resets on each new session — this is by design, as it anchors the Fusion baseline to institutional volume flow within the current session
All calculations are non-repainting — signals are confirmed on bar close
Maximum 500 labels and 500 bars lookback are used — on very low timeframes with extended chart history, oldest labels may be automatically removed by PulseWire's rendering limits
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who demand clarity, confidence, and precision from their charts. Indicator

[ A L P H A X ] Range Profile ProAlphaX Range Profile Pro — Volume Profile, POC, Value Area, Delta & HVN Levels
Stop guessing where price wants to go. AlphaX Range Profile Pro builds a full volume profile over any custom bar range, automatically locating the Point of Control, Value Area High, Value Area Low, and High Volume Nodes — so you always know exactly where the market has accepted the most volume and where it is likely to react next. Built for Gold, Forex, Crypto, Indices, and Futures traders on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 What This Indicator Does
Volume profile is the single most powerful tool for understanding where institutional money has been most active. AlphaX Range Profile Pro scans every candle inside your selected range, distributes volume across price bins using a body-and-wick weighted algorithm, and renders a clean horizontal volume profile directly on your chart — complete with POC, Value Area, and optional HVN lines. Every level updates in real time as new bars form.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
📊 Body & Wick Weighted Volume Distribution
Most volume profile tools split volume equally across the full candle range. AlphaX Range Profile Pro uses a precise body-and-wick weighting model — up volume is assigned to bullish body segments, down volume to bearish body segments, and wick volume is split proportionally. The result is a significantly more accurate representation of where buying and selling pressure actually occurred at each price level.
🎯 Point of Control (POC)
The POC line marks the single price level with the highest traded volume in the entire range — the most accepted price by the market. It acts as a magnet for price and is one of the most reliable reaction levels in any profile. The POC is displayed as a solid line with a clearly labelled price tag and volume percentage.
📦 Value Area (VAH & VAL)
The Value Area represents the price range containing a configurable percentage of total volume (default 70%). VAH and VAL are plotted as dashed lines with labels. The Value Area fill box shades the region across your chart for instant visual reference. Price trading inside the Value Area indicates acceptance. Price outside the Value Area indicates potential for a return or a breakout continuation.
🔵🟠 Up / Down Split Display
Each profile row is rendered in two segments — blue for buy-side volume and orange for sell-side volume — showing the delta composition of every price level at a glance. Three display modes are available: Up/Down Split, Total Only, and Delta Only, so you can view the profile in whichever format suits your analysis style.
📍 High Volume Nodes (HVN)
Optional HVN lines mark the top secondary volume levels outside the POC. These are the next most traded price clusters in the range and often act as strong support, resistance, and target levels. The number of HVN lines displayed is fully configurable.
📐 Flexible Range Selection
Choose between Fixed Bars mode to profile the last N candles, or From Date/Time mode to anchor the profile to a specific session or event start. Profile width, placement, and X offset are all adjustable so the profile sits exactly where you need it on your chart.
🖥 Professional Dark Panel Design
The profile renders inside a clean dark glass panel with an accent edge, subtle backdrop, and optional highlight — keeping the profile readable without cluttering your price action. All colors are individually customisable including up volume, down volume, value area fill, panel tint, border, and accent.
📋 Stats Table
A compact on-chart stats table displays all key metrics in one place: range bar count, POC price and volume percentage, VAH and VAL, total up and down volume, and net delta. Table position is configurable to any corner of the chart.
🔔 4 Built-In Alert Conditions — Webhook Ready
Cross Above POC — price closes above the Point of Control
Cross Below POC — price closes below the Point of Control
Cross Above VAH — price closes above the Value Area High
Cross Below VAL — price closes below the Value Area Low
All alerts fire on confirmed bar close. Connect to Telegram, 3Commas, Alertatron, n8n, or any webhook automation service.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Range
Range Mode — Fixed Bars or From Date/Time anchor
Number of Bars — how many bars back to profile (default 150)
Anchor Time — start timestamp for Date/Time mode
Max Lookback — maximum bars scanned in anchor mode
Profile
Row Size (bins) — number of horizontal price bins (default 24). Higher = more granular profile
Value Area Volume % — percentage of volume defining the Value Area (default 70%)
Display Mode — Up/Down Split, Total Only, or Delta Only
Profile Width — horizontal width of the profile in bars
Placement — Left inside chart or Right (future bars)
X Offset — fine-tune horizontal position
Levels
Shade Value Area — fills the VAH–VAL range across the chart
Show POC — toggle POC line
Show VAH / VAL — toggle Value Area lines
Show Range High / Low — toggle outer range boundary lines
Extend Lines — extend levels to the right or keep contained
Show Level Labels — toggle price labels on all levels
Show HVN Lines — toggle High Volume Node lines
HVN Count — number of HVN lines to display (1–5)
Style
Full color controls for POC, VAH, VAL, up volume, down volume, value area fill, panel background, border, accent edge, labels, and highlight tint
Line width controls for POC, VAH/VAL, HVN, and panel border
Row gap — spacing between profile bins
Stats
Stats Table — toggle the on-chart statistics panel
Table Position — Top Right, Top Left, Bottom Right, or Bottom Left
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Use
Add AlphaX Range Profile Pro to any chart — default settings work well across most markets
Set your Range Mode — use Fixed Bars for a rolling profile or anchor to a specific session open
Focus on the POC first — it is the highest conviction level in the entire profile
Use VAH and VAL as your Value Area boundaries — look for rejections at VAH in downtrends and VAL in uptrends
Watch for price to leave and return to the Value Area — these are high-probability mean reversion setups
Enable HVN lines to identify secondary reaction levels within the range
Set alerts on POC and VAH/VAL crosses for automated entry triggers
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Gold (XAUUSD) traders — volume profile is essential for reading institutional order flow in XAU
📈 ICT and Smart Money traders — use POC and Value Area to identify premium, discount, and equilibrium zones
📊 Volume profile traders — a clean, accurate, customisable profile built natively in Pine Script v6
📉 Forex and Index traders — works on all major pairs, US30, NAS100, SPX500, and more
🌍 Crypto traders — ideal for BTC, ETH, and high-volume altcoin analysis
🤖 Algo and bot traders — webhook-ready alerts on all key level crosses
📐 All timeframes — from M1 intraday scalping to Daily and Weekly swing analysis
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
Works on all asset classes — Gold, Forex, Crypto, Futures, Indices, Stocks
Profile recalculates fully on every bar close — always current
No repainting — all levels are based on confirmed historical volume data
Pine Script v6 — built for performance and forward compatibility
All visual elements are individually toggleable
Recommended timeframes: M5, M15, M30, H1, H4, Daily
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who trade with the market, not against it. Indicator

Adaptive Momentum Fusion [WillyAlgoTrader]📡 Adaptive Momentum Fusion is a separate-pane oscillator that replaces the fixed EMAs inside a standard MACD with selectable adaptive moving averages — six different adaptation engines that each respond to a different market dimension (efficiency, volatility, fractal structure, momentum, volume, or a weighted composite of all five). The oscillator line and signal line are then processed through Jurik-style smoothing to reduce jitter without adding lag. The result is a MACD-like oscillator where the core moving averages automatically adjust their speed to current market conditions, producing cleaner crossovers, more meaningful histogram readings, and built-in divergence detection.
A standard MACD uses fixed-length EMAs (typically 12/26/9). This means the same smoothing is applied whether the market is trending strongly, ranging sideways, experiencing a volatility spike, or consolidating. The result: late crossovers in trends, whipsaws in ranges, and false divergences during choppy periods.
This indicator solves the problem at the source — the moving averages themselves. Instead of fixed EMAs, each adaptation engine dynamically adjusts the smoothing constant (alpha) on every bar based on a real-time market measurement. In a strong trend, the Efficiency engine detects high directional efficiency and increases alpha → faster MA → earlier crossover. In a range, efficiency drops and alpha decreases → slower MA → fewer whipsaws. Each engine uses a different measurement to achieve this adaptation, and the user selects which dimension matters most for their market.
🧩 WHY THESE COMPONENTS WORK TOGETHER
A MACD with adaptive MAs alone would still produce a noisy signal line (the EMA of the oscillator). Adding adaptation to the base MAs but keeping a fixed EMA for the signal line creates a mismatch: the oscillator adapts but the signal doesn't, causing crossover lag to reappear at the signal level.
This indicator addresses the full signal chain:
Adaptive fast MA → Adaptive slow MA → Oscillator (MACD or PPO) → Jurik-smoothed signal line → 4-state histogram → Divergence scanner
The adaptive MAs eliminate the fixed-speed problem at the source. The MACD/PPO dual mode lets you choose between absolute (price-scaled) and percentage (normalized) output. The Jurik smoother replaces the standard signal EMA with a 3-stage filter that reduces jitter while preserving crossover timing — critical because adaptive oscillators produce more variable readings than fixed ones. The 4-state histogram (accelerating/decelerating × bullish/bearish) quantifies momentum acceleration, not just direction. And the divergence scanner works on the adaptive oscillator itself, which produces more reliable pivots than a fixed MACD because the adaptive MAs have already filtered out noise-driven fluctuations.
Removing the adaptive engines returns you to a standard MACD. Removing the Jurik smoother reintroduces signal line jitter that the adaptive engines amplify. Removing the histogram states loses momentum acceleration information. The full pipeline produces cleaner signals than any subset.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Six selectable adaptation engines.
Each engine computes a dynamic smoothing constant (alpha) that controls how fast the moving average reacts. All engines feed into the same adaptive EMA core: result = alpha × source + (1 − alpha) × result . The difference is how alpha is calculated:
Efficiency (Kaufman AMA):
Computes the Efficiency Ratio: ER = |price − price | / sum(|price − price |, N). ER ranges from 0 (pure chop — price moves a lot bar-to-bar but goes nowhere net) to 1 (pure trend — every bar moves in the same direction). The smoothing constant: sc = (ER × (fastSc − slowSc) + slowSc)², where fastSc = 2/3, slowSc = 2/31. This is the classic Kaufman Adaptive Moving Average approach. Best all-around engine.
Volatility (ATR-based):
Computes volRatio = ATR(len) / SMA(ATR, len×2). When current volatility exceeds its average (ratio > 1), alpha increases → MA speeds up to track the expanding price action. When volatility contracts (ratio < 1), alpha decreases → MA slows down to avoid noise. Alpha = baseAlpha × volRatio, clamped to . Best for instruments with distinct volatility regimes (crypto, commodities).
Fractal (Hurst-inspired):
Estimates the fractal dimension of the price series using rescaled range analysis: the full-range is compared to the sum of two half-ranges. fracDim = 1 + log(sumHalf) / log(2 × rangeFull). A fractal dimension near 1.0 indicates trending behavior (smooth), near 2.0 indicates mean-reverting (rough). Alpha = exp(−4.6 × (fracDim − 1)), which maps: fracDim ≈ 1.0 → alpha ≈ 1.0 (fast, trending), fracDim ≈ 2.0 → alpha ≈ 0.01 (slow, ranging). Best for detecting regime changes between trending and mean-reverting markets.
Momentum (ROC-based):
Computes the Rate of Change normalized against its recent maximum: norm = |ROC| / highest(|ROC|, len×2). When momentum is strong relative to recent history, alpha increases. Alpha = baseAlpha + norm × (1 − baseAlpha) × 0.5. This makes the MA react faster during breakouts and momentum surges while staying smooth during low-momentum drift. Best for breakout-oriented strategies.
Volume:
Computes volRatio = volume / SMA(volume, len). When volume exceeds its average (institutional participation), the MA speeds up. Alpha = baseAlpha × √(volRatio). The square root prevents extreme volume spikes from making the MA too reactive. Auto-disabled on instruments without volume data (forex) — falls back to baseAlpha. Best for stocks and crypto where volume confirms moves.
Composite (weighted blend):
Runs all five engines simultaneously and blends the results: with volume = 30% Efficiency + 20% Volatility + 20% Fractal + 15% Momentum + 15% Volume. Without volume = 35% Efficiency + 25% Volatility + 25% Fractal + 15% Momentum. This produces the most robust adaptation but is slightly slower because it averages five different smoothing perspectives. Best for users who don't want to choose a single engine.
2️⃣ Jurik-style signal line smoothing.
The standard MACD signal line is a simple EMA of the oscillator. This indicator replaces it with a 3-stage Jurik-inspired filter:
beta = 0.45 × (len − 1) / (0.45 × (len − 1) + 2)
alphaJ = beta³
e0 = (1 − alphaJ) × source + alphaJ × e0
e1 = (source − e0) × (1 − beta) + beta × e1
e2 = (e0 + phase × e1 − e2 ) × (1 − alphaJ)² + alphaJ² × e2
The three stages progressively remove jitter while maintaining phase alignment. The phase parameter (Jitter Reduction, default 0.7) controls how much additional smoothing is applied: 0.0 = minimal smoothing (fast but noisy), 1.0 = maximum smoothing (smooth but slightly more lag). This is particularly important for adaptive oscillators because the variable-speed MAs produce a more erratic oscillator line than fixed EMAs — the Jurik filter absorbs this variability at the signal level.
3️⃣ MACD/PPO dual output mode.
— MACD mode : oscillator = fastMA − slowMA (absolute difference, price-scaled). Readings scale with instrument price — useful for single-instrument analysis.
— PPO mode : oscillator = (fastMA − slowMA) / slowMA × 100 (percentage difference, normalized). Readings are comparable across instruments and time — useful for scanning, multi-market analysis, or consistent threshold settings.
4️⃣ 4-state momentum histogram.
The histogram (oscillator − signal) is classified into four states based on value and direction of change:
— 🟢 Accelerating bullish : histogram > 0 AND rising (momentum strengthening)
— 🟢 Decelerating bullish : histogram > 0 AND falling (momentum fading, potential reversal ahead)
— 🔴 Accelerating bearish : histogram < 0 AND falling (selling pressure increasing)
— 🔴 Decelerating bearish : histogram < 0 AND rising (selling pressure easing, potential bounce)
Each state has a distinct color intensity: accelerating = fully saturated, decelerating = faded. This provides immediate visual recognition of whether momentum is building or exhausting — the most actionable information from a histogram.
5️⃣ Divergence detection with adaptive oscillator.
The indicator scans for regular divergences between price and the adaptive oscillator:
— Regular Bullish Divergence : price makes a lower low, but the oscillator makes a higher low → selling pressure is weakening despite lower prices → potential reversal up
— Regular Bearish Divergence : price makes a higher high, but the oscillator makes a lower high → buying pressure is weakening despite higher prices → potential reversal down
Pivots are detected using a custom function with configurable lookback (default 30 bars) and a fixed right-bar confirmation of 5 bars. Divergences are labeled on the oscillator pane and optionally drawn as connecting lines. The divergence state persists in the dashboard for 20 bars after detection, then decays.
Divergences detected on the adaptive oscillator are more reliable than on a standard MACD because the adaptive MAs have already filtered regime-inappropriate noise — the pivots in the oscillator correspond to genuine momentum shifts, not noise-driven wiggles.
6️⃣ Zero-line cross signals.
When enabled, the indicator marks when the oscillator crosses the zero line — which corresponds to the fast adaptive MA crossing the slow adaptive MA. In MACD terms, this is the equivalent of the "MACD crossing zero." Because the MAs are adaptive, these crossovers occur at more structurally meaningful points than with fixed EMAs.
7️⃣ Signal strength scoring (0–100).
Each bar's histogram absolute value is normalized against its recent maximum over 50 bars: strength = |histogram| / highest(|histogram|, 50) × 100. This provides a relative measure: 100 = histogram is at its strongest in the last 50 bars, 0 = no momentum. Classified as Strong (≥ 70), Medium (≥ 40), Weak (< 40). Displayed in the dashboard.
⚙️ HOW IT WORKS — CALCULATION FLOW
Step 1 — Engine selection: The selected adaptation engine computes a dynamic alpha value on each bar based on its specific market measurement (efficiency ratio, ATR ratio, fractal dimension, ROC normalization, volume ratio, or composite blend).
Step 2 — Adaptive MA calculation: The fast MA and slow MA are each computed using the adaptive EMA formula: result = alpha × source + (1 − alpha) × result . The same engine is used for both, with different length parameters (fast = default 8, slow = default 21).
Step 3 — Oscillator: MACD mode: osc = fastMA − slowMA. PPO mode: osc = (fastMA − slowMA) / slowMA × 100.
Step 4 — Signal line: The oscillator is passed through the Jurik 3-stage filter with the configured signal length (default 7) and jitter reduction factor (default 0.7).
Step 5 — Histogram: hist = oscillator − signal. Classified into 4 states (accelerating/decelerating × bullish/bearish) based on sign and direction of change.
Step 6 — Divergence scan: Custom pivot detection identifies local highs and lows in both the oscillator and price. When a new pivot is found, it's compared to the previous pivot to check for divergence conditions (price lower low + osc higher low, or price higher high + osc lower high).
Step 7 — Signals: Crossovers (oscillator crossing signal line) and zero-line crosses are detected. All signals require barstate.isconfirmed + warmup check.
📖 HOW TO USE
🎯 Quick start:
1. Add the indicator — the adaptive oscillator appears in a separate pane
2. Select an adaptation engine matching your market (Efficiency for general use)
3. Green line above red = bullish momentum, below = bearish
4. Histogram bars show momentum acceleration (bright) vs deceleration (faded)
5. Divergence labels mark potential reversals
👁️ Reading the pane:
— 🟢 Green oscillator line above signal line = bullish momentum
— 🔴 Red oscillator line below signal line = bearish momentum
— 🟢 Bright green histogram = accelerating bullish momentum
— 🟢 Faded green histogram = decelerating bullish (momentum fading)
— 🔴 Bright red histogram = accelerating bearish momentum
— 🔴 Faded red histogram = decelerating bearish (selling easing)
— ▲ label = buy crossover signal (oscillator crosses above signal)
— ▼ label = sell crossover signal
— ● dot on zero line = zero-line cross
— "Bull Div" / "Bear Div" labels = detected divergences
🔧 Engine selection guide:
— Efficiency : best default for most markets — adapts to trending vs ranging
— Volatility : best for instruments with clear vol regimes (crypto, commodities)
— Fractal : best for detecting regime shifts (trending ↔ mean-reverting)
— Momentum : best for breakout strategies — speeds up on strong moves
— Volume : best for stocks/crypto where volume confirms participation
— Composite : most robust — blends all dimensions, good when unsure
🔧 Tuning guide:
— Too many whipsaws: increase Slow Length, increase Signal Length, increase Jitter Reduction
— Signals too late: decrease Fast/Slow Length, decrease Signal Length, decrease Jitter Reduction
— Histogram too noisy: increase Jitter Reduction toward 0.8–1.0
— Divergences too frequent: increase Divergence Lookback (40–60)
— Cross-market comparison: switch to PPO mode for normalized output
⚙️ KEY SETTINGS REFERENCE
⚙️ Main:
— Adaptation Engine (default Efficiency): Efficiency / Volatility / Fractal / Momentum / Volume / Composite
— Fast Length (default 8): fast adaptive MA period
— Slow Length (default 21): slow adaptive MA period
— Signal Length (default 7): Jurik signal smoothing period
— Output Mode (default MACD): MACD (absolute) or PPO (percentage)
🔍 Filters:
— Detect Divergences (default On): scan for regular divergences
— Divergence Lookback (default 30): pivot search depth
— Zero Line Cross Signals (default On): mark zero crossings
🔧 Advanced:
— Jitter Reduction (default 0.7): Jurik phase parameter (0.0–1.0)
— Auto / Dark / Light theme
📊 Dashboard
— Trend: oscillator vs signal line direction (Bullish / Bearish / Neutral)
— Signal: last crossover (BUY / SELL / Wait)
— Strength: histogram normalized to 50-bar max (Strong / Medium / Weak with %)
— Momentum: 4-state acceleration (Accel ▲ / Decel ▽ / Accel ▼ / Decel △)
— Divergence: current divergence state (Bull Div / Bear Div / None)
— Engine / TF: selected engine and timeframe
— Version
🔔 Alerts
— 🟢 BUY / 🔴 SELL — oscillator-signal crossover (ticker, price, timeframe, engine)
— 🟡 ZERO BULL CROSS / ZERO BEAR CROSS — zero-line crossing
— 🔵 BULL DIVERGENCE / BEAR DIVERGENCE — detected divergence
All support plain text and JSON webhook format. Bar-close confirmed.
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals and divergences require barstate.isconfirmed. A warmup period (2× slow length, minimum 50 bars) prevents signals during insufficient data. The adaptive MAs are deterministic — once a bar closes, the MA value for that bar never changes.
— 📐 This is a separate-pane oscillator, not an overlay. It displays in its own pane below the chart. The oscillator values are momentum readings, not price levels. Use it alongside your chart for confluence, not as a standalone trading system.
— ⚖️ The six engines produce different signals on the same data . Efficiency and Composite tend to produce the most similar results. Fractal can diverge significantly during regime transitions. Volume engine auto-falls back to base alpha on instruments without volume data.
— 📊 Signal strength is relative to recent 50 bars , not absolute. A "Strong" reading during a low-volatility week may be weaker in absolute terms than a "Weak" reading during a high-volatility week.
— 🔄 Divergences use a 5-bar right confirmation — they appear 5 bars after the actual pivot. This delay is inherent to pivot detection and cannot be eliminated without introducing false positives.
— 📏 PPO mode normalizes the output as a percentage, making threshold settings (e.g., "divergence when oscillator > 2") comparable across instruments. MACD mode values scale with price — a reading of 5.0 on a $100 stock is different from 5.0 on a $50,000 BTC chart.
— 🛠️ This is a momentum analysis tool , not an automated trading bot. It measures and visualizes adaptive momentum — trade decisions remain yours.
— 🌐 Works on all markets and timeframes. Volume engine auto-adapts to available data. Indicator

ATR Trend Strategy with Moving Average | Fixed TP/SL version📈 ## ATR Trend Strategy with Moving Average
# Overview
This strategy combines a **Moving Average trend filter** with an **ATR-based breakout channel** to identify directional market movements. It is designed for traders who prefer **systematic trend-following strategies with clearly defined risk management**.
The script builds an adaptive channel around a selected Moving Average using **Average True Range (ATR)**. When price moves beyond the ATR band and the move is confirmed for a defined number of bars, a trend state is established. Trade entries can then occur either on the initial breakout or on a pullback to the Moving Average.
The strategy also includes **fixed percentage Take Profit and Stop Loss levels**, allowing users to evaluate performance under consistent risk parameters.
---
⚙️ # Key Features
• **Multiple Moving Average types**
Supports EMA, SMA, WMA, Hull MA, VWMA, RMA, and TEMA.
• **ATR-based dynamic channel**
Uses ATR to create adaptive upper and lower boundaries around the Moving Average.
• **Two entry methods**
Users can choose between breakout entries or Moving Average pullback entries.
• **Trend confirmation filter**
Signals are confirmed only after a configurable number of bars remain beyond the ATR boundary.
• **Built-in risk management**
Includes fixed percentage Take Profit and Stop Loss levels.
• **Trade visualization**
Displays the TP/SL zone directly on the chart for each trade.
• **Performance statistics panel**
Shows key strategy metrics such as:
* Total trades
* Win rate
* Profit factor
* Net profit
* Expectancy
* Average R
* Maximum drawdown
---
🧠 # Strategy Logic
The strategy follows a simple **trend-following structure** :
1️⃣ A Moving Average defines the market's baseline trend.
2️⃣ An ATR multiplier builds a dynamic volatility channel around the Moving Average.
3️⃣ When price breaks above or below this channel and remains there for a specified number of bars, a trend is confirmed.
4️⃣ Entries can occur via:
**Breakout Mode**
* Long when price breaks above the upper ATR band.
* Short when price breaks below the lower ATR band.
**MA Cross Mode**
* After a confirmed trend, entries occur on pullbacks that cross the Moving Average.
5️⃣ Risk is controlled using **fixed percentage Take Profit and Stop Loss levels**.
---
⚙️ # Inputs
Moving Average
* MA Type
* MA Length
* MA Source
ATR Signal
* ATR Type
* ATR Length
* ATR Multiplier
Trend Confirmation
* Number of confirmation bars
* Confirmation price source (Close or High/Low)
Entry & Risk Management
* Entry method (Breakout or MA Cross)
* Take Profit (%)
* Stop Loss (%)
---
📊 ## Usage Notes
This strategy is designed for **trend-following market conditions** and may perform best in environments with sustained directional movement.
Users are encouraged to **experiment with different Moving Average types, ATR multipliers, and confirmation settings** to adapt the strategy to different markets and timeframes.
---
⚠️ ## Disclaimer
This script is provided for **educational and research purposes only**.
Past performance does not guarantee future results.
---
Strategy

Advanced Momentum Engine [identityKa]Overview
The Advanced Momentum Engine is a technical oscillator designed to consolidate trend direction and momentum exhaustion into a single visual pane. By mathematically integrating Moving Average Convergence Divergence (MACD) with the Relative Strength Index (RSI), this script aims to reduce chart clutter and provide a strict, rule-based approach to confluence analysis.
Instead of monitoring MACD crossovers and RSI extreme levels in separate windows, this indicator unifies them. The MACD dictates the base histogram color representing the trend, while the RSI dictates specific color overrides when momentum reaches mathematical extremes.
Core Calculations & Logic
The engine operates on two primary technical formulas:
MACD Component: It utilizes the standard MACD calculation (Fast EMA 12, Slow EMA 26, Signal 9 by default). The histogram plots the spread between the MACD line and the Signal line.
RSI Component: A standard RSI (default length 14) is calculated simultaneously in the background to measure the speed and change of price movements.
Dynamic Visualization Features
The histogram colors are not static; they adapt dynamically based on the relationship between these two components:
Trend Phases: When the RSI is in a neutral state (between 30 and 70), the histogram reflects standard MACD momentum. Increasing positive spreads plot as Strong Bullish (Bright Green), decreasing positive spreads as Weak Bullish (Dark Green). The inverse applies to Bearish states (Bright Red / Dark Red).
The Danger Zone Override: If the background RSI calculation breaches the user-defined Overbought (≥70) or Oversold (≤30) thresholds, the script triggers an override. The histogram and background explicitly turn Orange. This mathematical condition indicates that while the MACD trend may still be active, the RSI momentum is statistically exhausted.
HUD Dashboard & AI Suggestion
To simplify real-time data interpretation, the script includes an on-chart panel (HUD) that evaluates the current bar's state and outputs a logical suggestion:
LONG: Triggered when MACD > Signal AND RSI is strictly neutral (< 70).
SHORT: Triggered when MACD < Signal AND RSI is strictly neutral (> 30).
Dangerous: Triggered whenever RSI ≥ 70 OR RSI ≤ 30.
How to Use It
Traders can use this script to filter their entries and manage risk. A standard approach is to look for trend-following entries only when the dashboard indicates a "LONG" or "SHORT" state. Conversely, when the histogram and dashboard turn to the Orange "Danger Zone," it serves as a mechanical rule to avoid new trend-continuation entries and consider tightening stop-losses, as mean reversion is statistically more probable. All moving average lengths, RSI thresholds, and color themes are fully adjustable in the settings. Indicator

Fractal Retracement [Jamallo](2025)
Intro
FRAMA is a moving average that adapts its speed based on fractal geometry — specifically, the fractal dimension (D) of recent price action. When price is trending strongly (low fractal dimension), it moves fast. When price is choppy/ranging (high fractal dimension), it slows down. This makes it far more responsive than a standard EMA or SMA.
Breakdown:
The indicator wraps this with a continuous range logic layer: the filtered line = k only moves if price breaks beyond the FRAMA ± ATR-based range, creating a stepped/ratcheting effect that filters out noise.
Two sets of bands are plotted around the filtered line, scaled by ATR multiplied by user-defined multipliers (tight at 0.5×, medium at 1.0×). They're smoothed with a short EMA to reduce jitter, and filled with gradient colors for visual clarity.
Direction is simply determined by whether k is rising or falling, and colors everything green (uptrend) or pink/red (downtrend).
END
In short, it's a noise-filtered trend indicator useful for identifying trend direction, dynamic support/resistance , and gauging how far price has retraced from the trend baseline. Indicator

Indicator

Indicator

Indicator

Indicator

AVANTI MASTER PRO FINALAVANTI MASTER PRO FINAL – Smart Intraday Trend & Breakout System
AVANTI MASTER PRO FINAL is an advanced intraday trading indicator designed to identify high-probability buy and sell opportunities using a combination of trend analysis, momentum strength, breakout scoring, and smart money behavior.
This indicator integrates multiple technical factors such as EMA trend structure, RSI momentum, breakout strength analysis, buildup detection, ADX trend strength filter, and multi-timeframe confirmation to help traders avoid sideways markets and focus on strong trending moves.
The system automatically generates entry signals and calculates risk-reward targets for different instruments.
Key Features
Trend Detection
Uses EMA 9, EMA 30, and EMA 200 to determine the overall market trend.
Multi-Timeframe Trend Filter
Signals are confirmed only when 5-minute and 15-minute trends align, improving trade accuracy.
Breakout Strength Score
A scoring system evaluates multiple bullish and bearish conditions to determine breakout probability.
RSI Momentum Confirmation
RSI is used to validate market momentum before generating signals.
ADX Trend Strength Filter
Signals are generated only when ADX > 23, helping to avoid sideways markets.
Buildup Analysis
Detects Long Buildup, Short Buildup, Short Covering, and Long Unwinding based on price and volume behavior.
Auto Target System
Automatically calculates Entry, TP1, TP2, TP3, and Stop Loss depending on the instrument.
Supported Instruments
Targets are optimized for:
• NIFTY
• Stock Options
• Crude Oil
• Natural Gas
Dashboard Information
The built-in dashboard displays key market insights such as:
• Trend status
• RSI momentum
• Breakout / Breakdown strength
• ADX trend strength
• Market buildup
• Trade zone indication
Best Use
This indicator is designed for intraday trading and trend continuation setups where strong momentum and trend confirmation are present.
Works best in trending markets.
Developed by AVANTI STOCKS – Satish D. Nakhate Indicator

Retrograde Volatility Zones [PyraTime]The Problem: The "Invisible" Trend Killer
Most traders rely exclusively on lagging price indicators (Moving Averages, RSI, MACD). These tools are excellent at telling you what just happened, but they are notoriously blind to cyclic exhaustion. Markets don't just move in a vacuum; they undergo rhythmic shifts in volatility and psychology.
The "Invisible" problem is the Stationary Period. When a major planetary cycle slows down to a "Station," liquidity often thins, trends become erratic, and "Black Swan" volatility spikes occur. Without a way to quantify these cycles, traders frequently "buy the top" or "short the bottom" exactly as the underlying cyclic regime is shifting from green to red.
The Solution: PyraTime · RVZ
The Retrograde Volatility Zones indicator solves the problem of cyclic blindness by providing a real-time, quantitative map of planetary velocity. Unlike amateur scripts that use hardcoded (and expiring) date arrays,
PT·RVZ calculates the Geocentric Longitude Speed of the planets in real-time.Key Technical Pillars:Speed-Based Detection: If a planet’s speed is negative ( AMEX:SPD < 0$), it is retrograde. This is the professional standard for astronomical accuracy.
The Traffic Light Regime: It converts raw velocity into a weighted "Composite Score." It tells you not just that a planet is moving, but how much "thrust" the current cyclic environment has.Shadow Zone
Identification: It highlights the "Storm before the Storm" the period where a planet is still moving forward but has decelerated to less than 20% of its normal speed.
Volatility Sync: It overlays ATR spikes during these windows, filtering out noise and highlighting the specific moments where cyclic pressure translates into actual price expansion.
Tutorial: How to Master the Cycle
1. Reading the "Traffic Light"
The background and dashboard provide an instant read on the market "weather":
🟢 Green (Bullish): The weighted composite of planets is moving at high forward velocity. This is your "Trend is Friend" regime. Focus on long entries and trend-following.
🟡 Yellow (Mixed/Shadow): Major planets are decelerating or "Stationing." Expect chop, mean-reversion, and "fake-out" breakouts. Tighten stops and reduce position sizes.
🔴 Red (Bearish/Retrograde): The cycle is in retreat. Historically, these are windows of high-volatility corrections. Look for short opportunities or stay in cash.
2. Trading the "Stations" (℞ & D)
The glowing neon vertical lines mark the Station Point—the exact bar where velocity hits zero.
℞ (Station Retrograde): Often marks the "Blow-off Top" or the start of a deep corrective phase.
D (Station Direct): Often marks the "Final Flush" or the moment where the market regains its forward momentum.
3. The Dashboard Strategy
Watch the Speed°/d column in the dashboard. If you see Mercury ($\☿$) speed drop rapidly while price is hitting new highs, a "Mercury Retrograde" volatility spike is likely loading. Use the Composite Score at the bottom of the table to gauge the total "cyclic weight" of the market.
4. Setting High-Signal Alerts
Don't stare at the screen. Set the "High Vol + Retro" alert. This fires only when price range (ATR) expands significantly during a retrograde window—this is the signature of a major cyclic pivot. Indicator

Aura Trend & Candlestick Matrix [Pineify]Aura Trend & Candlestick Matrix — EMA Trend Cloud with Trend-Aligned Candlestick Pattern Detection and Dynamic Support & Resistance
The Aura Trend & Candlestick Matrix is a multi-layered technical analysis indicator that fuses an EMA-based trend cloud, classic candlestick pattern recognition, and pivot-derived support and resistance levels into a single, cohesive overlay. Its core philosophy is confluence : rather than firing candlestick signals in isolation, every pattern must first pass through a directional trend filter before it reaches the chart. A Hammer is only displayed when the trend cloud confirms bullish momentum; a Shooting Star only appears when the cloud is bearish. This trend-alignment mechanism dramatically reduces noise and false signals, giving traders a cleaner, higher-probability view of potential reversal and continuation setups — all without leaving the price chart.
Key Features
Dual-EMA "Aura Cloud" that visually maps trend direction and strength through a color-coded filled region between a fast and slow exponential moving average
Three families of candlestick pattern detection — Hammer / Shooting Star, Bullish / Bearish Engulfing, and Morning Star / Evening Star — each identified using precise shadow-to-body ratio and multi-bar structural rules
Trend-alignment filter that only surfaces bullish patterns during confirmed uptrends and bearish patterns during confirmed downtrends, eliminating counter-trend noise
Dynamic pivot-based support and resistance levels that automatically update as new structural highs and lows are confirmed
Optional candle coloring that tints every bar green or red based on the prevailing trend for instant visual context
Built-in alert conditions for both bullish and bearish setups, enabling automated notification workflows without additional configuration
How It Works
The indicator is built on three independent analytical engines that feed into a unified signal pipeline.
Engine 1: The Aura Trend Cloud
Two exponential moving averages — a fast EMA (default 20 periods) and a slow EMA (default 50 periods) — are plotted on the chart. When the fast EMA is above the slow EMA, the trend is classified as bullish; when below, bearish. The region between the two EMAs is filled with a semi-transparent color (green for bullish, red for bearish), creating the "Aura Cloud." This cloud serves two purposes: it provides an immediate visual representation of trend direction and strength (a widening cloud suggests strengthening momentum), and it acts as the gatekeeper for all candlestick pattern signals.
Engine 2: Candlestick Pattern Detection
The pattern detection engine analyzes candle anatomy using shadow-to-body ratios and multi-bar structural relationships:
Hammer & Shooting Star — Single-candle patterns identified by comparing the lower shadow proportion, upper shadow proportion, and body proportion relative to the full candle range. A Hammer requires a lower shadow at least twice the body size, a body less than 50% of the range, an upper shadow under 15%, and a bullish close. The Shooting Star applies the mirror criteria with a bearish close. Doji candles (body < 10% of range) are excluded to avoid ambiguity.
Bullish & Bearish Engulfing — Two-candle patterns where the current candle's real body completely wraps the previous candle's body. An additional 120% size threshold ensures the engulfing candle demonstrates meaningful conviction beyond a marginal overlap.
Morning Star & Evening Star — Three-candle reversal patterns. A Morning Star requires a bearish candle two bars ago, a small-bodied middle candle (less than 50% of the prior body), and a bullish current candle that closes above the midpoint of the first candle's body. The Evening Star applies the inverse logic.
Engine 3: Dynamic Support & Resistance
The indicator uses Pine Script's pivot detection functions with a configurable lookback window (default 10 bars on each side). When a bar's high is confirmed as the highest within the lookback window, it becomes the current resistance level. When a bar's low is the lowest, it becomes the current support level. These levels persist on the chart as circle markers until a new pivot replaces them, providing a continuously updated structural reference frame.
Trading Ideas and Insights
Cloud Bounce + Pattern Confirmation — When price pulls back to the Aura Cloud boundary during an uptrend and a Hammer or Bullish Engulfing pattern fires at the cloud's edge, this represents a high-confluence long entry. The cloud acts as dynamic support, and the candlestick pattern provides the timing trigger.
Trend Reversal Detection — Watch for Morning Star or Evening Star patterns forming near pivot-based support or resistance levels just as the trend cloud begins to narrow. A narrowing cloud suggests weakening momentum, and a three-candle reversal pattern at a key structural level can signal an early trend change.
S/R Level Validation — Use the dynamic support and resistance levels to validate candlestick signals. A Bullish Engulfing pattern that forms precisely at the current support level carries more weight than one occurring at a random price point.
Trend Strength Assessment — The width of the Aura Cloud reflects the separation between the fast and slow EMAs. A wide, expanding cloud indicates strong trending conditions where trend-aligned patterns are most reliable. A narrow, contracting cloud suggests consolidation where signals should be treated with more caution.
Multi-Timeframe Confluence — Apply the indicator on a higher timeframe to establish the dominant trend direction, then switch to a lower timeframe to find trend-aligned candlestick entries. The cloud's direction on the higher timeframe provides the bias; the pattern signals on the lower timeframe provide the entry timing.
How Multiple Indicators Work Together
The Aura Trend & Candlestick Matrix integrates three distinct analytical techniques into a single decision-support system through a deliberate hierarchical architecture:
The EMA trend cloud establishes directional context, the candlestick pattern engine identifies potential reversal and continuation setups, and the pivot-based support and resistance levels provide structural price references — together forming a confluence-driven framework where signals must pass through multiple filters before reaching the chart.
The trend cloud sits at the top of the hierarchy as the primary directional filter. It answers the fundamental question: "Which side of the market should I be on right now?" By requiring all candlestick patterns to align with the cloud's direction, the indicator enforces a disciplined approach that avoids the common trap of trading counter-trend reversal patterns in strong trends.
The candlestick pattern engine operates as the timing mechanism within the trend context. Each pattern family captures a different market dynamic — Hammers and Shooting Stars detect single-bar rejection of price levels, Engulfing patterns identify momentum shifts through body-size dominance, and Morning/Evening Stars capture multi-bar sentiment transitions. By offering all three families simultaneously, the indicator provides multiple entry opportunities across different market conditions while maintaining the trend-alignment requirement.
The dynamic support and resistance engine adds a structural dimension that complements both the trend cloud and the pattern signals. While the cloud tells you the trend direction and the patterns tell you when to act, the S/R levels tell you where price is likely to react. Patterns forming at or near these pivot-derived levels carry inherently higher significance because they occur at prices where the market has previously demonstrated supply or demand.
Unique Aspects
Trend-gated pattern signals — Unlike standalone candlestick scanners that display every detected pattern regardless of context, this indicator enforces directional alignment. Bullish patterns are suppressed during downtrends and bearish patterns are suppressed during uptrends, producing a significantly cleaner signal set with higher expected reliability.
Ratio-based pattern detection with doji exclusion — Pattern identification uses proportional shadow-to-body ratios rather than fixed pip or point thresholds, making the detection logic adaptive across instruments and timeframes. The explicit doji exclusion prevents ambiguous candles from triggering false Hammer or Shooting Star signals.
120% engulfing threshold — The Engulfing pattern requires the current body to exceed the previous body by at least 20%, filtering out marginal engulfing candles that lack conviction and improving signal quality.
Three-engine confluence in a single overlay — By combining trend analysis, pattern recognition, and support/resistance detection in one indicator, traders avoid the visual clutter and potential conflicts of layering multiple separate tools on the same chart.
Distinct visual vocabulary — Each pattern family uses a unique shape (triangles for Engulfing, labeled markers for Hammers/Stars), allowing traders to instantly identify the pattern type without reading text labels.
How to Use
Add the Aura Trend & Candlestick Matrix to your chart. It overlays directly on the price chart, displaying the Aura Cloud, pattern signals, and S/R levels simultaneously.
Identify the current trend by observing the Aura Cloud color — a green cloud indicates a bullish trend (fast EMA above slow EMA), and a red cloud indicates a bearish trend. The cloud's width reflects trend strength.
Watch for candlestick pattern signals that appear on the chart. Green triangles (▲) below bars indicate Bullish Engulfing patterns; red triangles (▼) above bars indicate Bearish Engulfing. Labels marked "H", "S", "MS", and "ES" denote Hammer, Shooting Star, Morning Star, and Evening Star patterns respectively.
Cross-reference pattern signals with the dynamic S/R levels (green and red circle markers). Patterns occurring near support (for bullish) or resistance (for bearish) carry additional structural significance.
Use the candle coloring feature (enabled by default) for quick visual scanning — green candles confirm you are in a bullish trend zone, red candles confirm a bearish trend zone.
Set up alerts using the built-in "Bullish Setup" and "Bearish Setup" alert conditions to receive real-time notifications when a trend-aligned candlestick pattern is detected.
Combine with volume analysis or momentum oscillators for additional confirmation layers when entering trades based on the indicator's signals.
Customization
Fast EMA Length (default: 20) — Controls the responsiveness of the fast trend line. Lower values (10-15) make the cloud more reactive to recent price changes, suitable for shorter-term trading. Higher values (25-50) produce a smoother cloud for swing or position trading.
Slow EMA Length (default: 50) — Sets the anchor for the trend cloud. Common alternatives include 100 or 200 for longer-term trend identification. The gap between fast and slow lengths determines how quickly the cloud changes direction.
Color Candles Based on Trend (default: on) — Toggle candle coloring on or off. Disable if you prefer to use your chart's native candle colors or another coloring scheme.
Show Hammers / Shooting Stars (default: on) — Enable or disable single-candle reversal pattern detection. Disable if you prefer to focus only on multi-candle patterns.
Show Engulfing Patterns (default: on) — Enable or disable two-candle engulfing pattern detection.
Show Morning / Evening Stars (default: on) — Enable or disable three-candle star pattern detection.
Pivot Detection Length (default: 10) — Controls the lookback window for support and resistance detection. Lower values (3-7) detect more frequent, minor pivot levels; higher values (15-30) identify only major structural turning points.
Conclusion
The Aura Trend & Candlestick Matrix delivers a disciplined, confluence-based approach to technical analysis by requiring candlestick patterns to align with the prevailing EMA trend direction before they are displayed. By integrating a visual trend cloud, three families of rigorously defined candlestick patterns, and dynamic pivot-based support and resistance levels into a single overlay, this indicator provides traders with a comprehensive yet uncluttered analytical framework. Whether you are a day trader looking for precise trend-aligned reversal entries, a swing trader seeking high-probability pattern setups at key structural levels, or a position trader monitoring broad trend direction with candlestick confirmation, the Aura Trend & Candlestick Matrix offers a clean, systematic, and visually intuitive toolset for identifying where trend momentum and candlestick structure converge — the moments where trading opportunities are most compelling.
Indicator

Indicator

Sessions ExtendedSessions Extended
Based on the original "Sessions" indicator by LuxAlgo, this script is a complete
rewrite and substantial expansion. It is built for traders who want control
over session visualization, deep volume analytics, and a live dashboard that works
on any chart timeframe from 1 minute up to 1 week.
=============================================================================
WHAT CHANGED COMPARED TO THE ORIGINAL "SESSIONS" INDICATOR
=============================================================================
SESSIONS
Original: 4 fixed sessions (New York, London, Tokyo, Sydney)
Extended: 11 fully independent sessions labeled A through K, each with its own
complete settings group. The default setup covers the major forex windows:
Asia, London, New York, Sydney, Tokyo I, Hong Kong, Singapore I, Tokyo II,
Singapore II, EU pre-London, and US pre-NY.
PER-SESSION STYLING
Original: One shared background color and transparency, border always dotted,
no width control.
Extended: Per-session background color and transparency, fully independent of
the border color. Per-session border style (Dotted / Dashed / Solid) and border
width (1 to 4 pixels). Every session box can have a completely unique appearance.
SESSION LABELS
Original: One fixed label per session, always tiny, always at the session high.
Extended: Per-session label color and size (Tiny / Small / Normal / Large / Huge).
A numeric "Name Offset" input shifts the label upward by a chosen number of
blank lines, keeping label height constant regardless of zoom level. An optional
second label shows the actual session open and close times in HH:mm format with
its own independent offset, color, and size.
OVERLAYS PER SESSION
Each of the 11 sessions independently supports seven overlay types:
Range Box — High/Low box drawn for each session occurrence
Trendline — Linear regression line (best-fit straight line through closes)
Std Band — Dashed lines at +1σ and -1σ around the regression line.
Works independently — Trendline does not need to be active.
Bars outside the bands indicate unusual price movement.
Mean — Cumulative average of all closing prices within the session,
drawn as a connected line. Equal weight per bar, no volume
influence. See "Understanding Mean vs VWAP" below.
VWAP — Volume-Weighted Average Price. Institutional benchmark.
See "Understanding Mean vs VWAP" below.
Max/Min — Short horizontal tick marks at session High and Low
Midpoint — Horizontal line at the 50% level of the session High/Low range
EXTENDED HIGH/LOW LINES
Each session can project its previous High and Low as horizontal lines extending
to the right of the chart — classic support and resistance reference levels.
Fully configurable per session:
- Line color (independent from the session border color)
- Line style: Solid, Dashed, or Dotted
- Line width: 1 to 4 pixels
- Optional end-of-line label showing session name and date (dd.MM.yy)
- Label text color, background color, and background transparency
A global "Max Extended H/L Lines" setting (Range Settings group, default 10)
caps the total number of line pairs visible across all sessions combined.
DAYS BACK FILTER
Each session has a "Last N sessions" input. When set to 0 (default), all
available history is shown. When set to 1–50, only the N most recent occurrences
are drawn. The pruning applies consistently to boxes, labels, Max/Min lines,
Midpoint lines, Mean lines, VWAP plots, and Extended H/L lines.
TIMEZONE
A "Use Exchange Timezone" checkbox follows the exchange timezone automatically
(syminfo.timezone). When unchecked, a UTC Offset field (−12 to +14) enables
manual adjustment. This is particularly useful for handling Daylight Saving Time
transitions without needing to touch any session time strings.
=============================================================================
THE DASHBOARD — COMPLETE REFERENCE
=============================================================================
ENABLING AND POSITIONING
Find the Dashboard group in Settings. Toggle "Show Dashboard" to show or hide
the panel. Choose from four positions (Top Left, Top Right, Bottom Left,
Bottom Right) and four sizes (Tiny, Small, Normal, Large).
DASHBOARD MODES
The dashboard has three display modes, selected via the "Volume & Sigma columns"
and "Show Buy/Sell Volume" toggles:
Standard mode (both off):
Session | Trend
Advanced mode (Volume & Sigma on):
Session | Volume | Sigma | Trend
Advanced + Buy/Sell mode (both on):
Session | Volume | Sigma | ▲Buy ▼Sell | Trend
COLUMN DESCRIPTIONS
Session
The session name (e.g. ASIA, LONDON, NEW YORK). The cell background
changes color to reflect the session state:
Active background color — session currently open
Inactive background color — session closed today (snapshot visible)
Dimmed border color — session not yet started today or yesterday data
Volume
Total traded volume for the session's measurement window. Updates live
while the session is open. Freezes as a snapshot when it closes.
Calculated at 1-minute resolution via request.security — accurate on
any chart timeframe.
Sigma (σ)
Standard deviation of closing prices within the session. Measures how
much price spread around its average. A high Sigma indicates a volatile,
wide-ranging session. A low Sigma indicates tight, consolidating price
action. Updates live, freezes on session close.
▲Buy ▼Sell (optional, "Show Buy/Sell Volume")
Volume split by bar direction. Up-bars (Close ≥ Open) count as buy volume,
down-bars count as sell. Note: this is an approximation — Pine Script
cannot access PulseWire's internal tick-level buy/sell data.
Open / High / Low (optional, "Show O/H/L + Change")
The session's opening price, highest traded price, and lowest traded price.
These are permanent historical facts and remain visible (dimmed) even after
the session closes and after the trading day resets.
Chg (optional, "Show O/H/L + Change")
The change from session Open to session Close: Close − Open.
Display format:
+1.234 green — session closed above its open (bullish)
-1.234 red — session closed below its open (bearish)
±0.000 grey — session closed exactly at its open (neutral)
The three colors (up, down, flat) are independently configurable.
Trend (r²)
The R-squared value of the linear regression for the session. Ranges from
−1.00 to +1.00. Positive values indicate an upward trend, negative values
a downward trend. Values near 0 indicate a sideways/choppy session.
The cell background is colored green (bullish) or red (bearish) based on
the sign, making trend direction scannable at a glance.
Timer (optional, "Show Timer column")
Countdown to the next relevant session event:
▼ HH:MM — session is currently open, counting down to close
▲ HH:MM — session is closed, counting up to next open
▲ Xd HH:MM — session opens in more than 24 hours (e.g. weekend gap)
The timer is updated in real time using timenow. It is visible at all
times, including when the market is closed. Weekend gaps are handled
correctly: sessions that open Monday morning show 2d+ on Friday evening,
while sessions still opening later on Friday show the same-day countdown.
The timer text is colored with the active session color when open, or
dimmed when the session is waiting to open.
DAY TOTAL ROW
When one or more sessions have "In Day Total" checked in their settings,
a Day Total row appears at the bottom of the dashboard. It shows:
- The sum of all Volume values from today's In-Day-Total sessions
- The average Sigma across those sessions
Critically , Day Total counts only sessions that have actually run since the
last anchor-session reset — not yesterday's data. If ASIA (the default anchor)
opened at 18:00 EST and New York has not yet run today, New York's data from
the previous day will appear in its row (dimmed) but will not be included in
Day Total.
YESTERDAY ROW
When all sessions have closed, a Yesterday row appears showing the prior
trading day's totals for comparison. This row disappears once the new
trading day begins.
STALE DATA — THREE BRIGHTNESS LEVELS
The dashboard uses text brightness to communicate data age at a glance:
Full brightness — session is currently active (live data)
Dimmed — session ran and closed today (today's snapshot)
More dimmed — session has data from the previous day (no run today yet)
Near-invisible — session has no data at all (never run or newly enabled)
The dim percentage is configurable ("Stale data text dim", 0–90%).
RESET LOGIC — HOW THE TRADING DAY IS DEFINED
The dashboard needs to know when a new trading day begins. This is controlled
by "Reset Stats when Session starts" in the Dashboard group (default: A = ASIA).
When the selected anchor session opens:
- All "ran today" tracking flags are cleared
- Day Total recalculates from zero
- Sessions not yet run show their previous data dimmed until they run again
Snapshot data inside each session's measurement function persists until the
session runs again and overwrites it. This means US pre-NY data from 08:30
yesterday is still visible in the dashboard at 04:00 today, correctly dimmed,
and correctly excluded from Day Total.
VOLUME MEASUREMENT WINDOW
Each session has a separate "Vol window" session input. By default this matches
the display session, but you can narrow it. For example, you could display the
full 18-hour ASIA box but only measure volume for the first two hours of
activity. The Vol window does not affect the displayed box or overlays —
it only affects Volume, Sigma, Buy/Sell, and Trend statistics.
DASHBOARD COLORS (configurable)
Active cell background — highlight color for currently open sessions
Inactive cell background — color for closed sessions with today's data
Text color — all non-highlighted cell text
Border color — table grid lines
Background — dashboard panel fill and transparency
Change Up / Down / Flat — three independent colors for the Chg column
Stale data dim % — how strongly to dim closed and yesterday data
=============================================================================
UNDERSTANDING MEAN vs VWAP
=============================================================================
Mean is the simple average of all closing prices within the session:
(Close₁ + Close₂ + ... + Closeₙ) / N
Every bar contributes equally regardless of how much was traded. Mean shows
the geometric center of price over time — a neutral, unweighted reference.
VWAP (Volume Weighted Average Price):
Σ(Close × Volume) / Σ(Volume)
Bars with high volume pull the VWAP toward them. Institutions use VWAP as
the primary benchmark for execution quality. A price above VWAP signals that
the session is running bullish on a volume-weighted basis; below is bearish.
The practical difference: when a sharp directional move occurs on thin volume,
Mean shifts significantly because it counts each bar equally. VWAP barely
reacts because little volume participated in the move. This divergence — Mean
far from VWAP — can itself be a signal that the move lacks conviction.
=============================================================================
DEFAULT SESSION CONFIGURATION (UTC-5 / New York EST)
=============================================================================
A ASIA 18:00 – 02:00 In Day Total, Anchor Reset (enabled)
B LONDON 02:00 – 08:00 In Day Total (enabled)
C NEW YORK 08:00 – 17:00 In Day Total (enabled)
D Sydney 18:00 – 00:00 (enabled)
E Tokyo I 19:00 – 21:30 (enabled)
F Hong Kong 20:30 – 03:00 (enabled)
G Singapore I 20:00 – 23:00 (enabled)
H Tokyo II 22:30 – 01:00 (enabled)
I Singapore II 06:00 – 10:00 (enabled)
J EU pre-Lon 02:00 – 03:00 (enabled)
K US pre-NY 08:00 – 09:30 (enabled)
All times are in UTC-5 (New York EST). Adjust the UTC Offset setting or enable
"Use Exchange Timezone" to match your local time.
Sessions H through K are disabled by default. Enable them in their respective
settings group. Note that newly enabled sessions will show no data until
they have run at least once after being activated.
=============================================================================
SETUP GUIDE — GETTING STARTED
=============================================================================
Step 1 — Timezone
Open Settings → Timezone. If your instrument uses the exchange timezone
natively, enable "Use Exchange Timezone". Otherwise set UTC Offset to your
local offset (e.g. -5 for New York EST, +1 for Berlin CET). If your region
uses DST and PulseWire does not adjust automatically, update this offset
manually at DST transitions.
Step 2 — Sessions
Sessions A (ASIA), B (LONDON), and C (NEW YORK) are enabled by default with
commonly used forex hours. Adjust the session time strings to match your
instrument's actual active hours. Enable additional sessions (D through K) as
needed from their settings groups.
Step 3 — Dashboard
Open Settings → Dashboard. Enable "Show Dashboard". Choose your preferred
position and size. Enable "Volume & Sigma columns" for full statistics.
Enable "Show Timer column" to see live countdowns. Configure which sessions
should contribute to Day Total via the "In Day Total" checkbox in each
session's group.
Step 4 — Overlays
For each session you want to analyze deeply, enable the overlays relevant
to your strategy. Recommended starting set: Range Box (always on), VWAP for
institutional context, Mean for a price-weighted counterpart, Std Band for
volatility context.
Step 5 — Extended H/L Lines
Enable "Ext H/L" in any session group to project that session's previous
High and Low forward as S/R references. Set "Max Extended H/L Lines" in
Range Settings to a comfortable number (default: 10 pairs total).
Step 6 — Days Back
If your chart history is long and performance is slow, set "Last N sessions"
in each session group to limit how many occurrences are drawn (e.g. 5 to 20).
=============================================================================
ALERTS
=============================================================================
22 alert conditions are available — one "Session Start" and one "Session End"
for each of the 11 sessions. Alerts fire only when the corresponding session's
"Show" toggle is enabled. Set alerts via the Add Alert dialog in PulseWire,
selecting this indicator from the condition dropdown.
=============================================================================
LIMITATIONS AND KNOWN BEHAVIOR
=============================================================================
Buy/Sell volume approximation
Up-bar (Close ≥ Open) = Buy volume. Down-bar = Sell volume. True tick-level
data is not accessible in Pine Script. Treat this column as directional
sentiment, not precise order flow.
Initial load time
11 request.security calls at 1-minute resolution cause a delay when first
applying the indicator to a chart with long history. This is a Pine Script
constraint — the 1m resolution is required for accuracy on higher timeframes.
request.security usage
This script uses 12 of Pine Script's 40 allowed request.security calls
(11 session functions + 1 anchor-reset detector), leaving 28 available
if you build on top of this script.
Short sessions on high timeframes
Sessions shorter than the chart's bar duration (e.g. a 30-minute session on
a 4H chart) may not be detected. Use a lower timeframe for short sessions.
Timer and market holidays
The countdown timer uses calendar arithmetic, not an exchange trading calendar.
On public holidays the timer will count down to the session time as if it
were a normal trading day. Weekend detection (Friday evening, Saturday) is
handled correctly for standard Mon–Fri market hours.
Dashboard layout
Table positions are limited to the four corners as defined by Pine Script's
table API. Sub-corner pixel positioning is not supported.
=============================================================================
CREDITS
=============================================================================
Original indicator: Sessions by LuxAlgo
This derivative is an independent rewrite published under CC BY-NC-SA 4.0.
creativecommons.org
Commercial use is prohibited. Derivatives must carry the same license and
credit the original work. Indicator

Indicator

Momentum Lifecycle Detector [BullByte]Momentum Lifecycle Detector
An early trend detection oscillator that tracks momentum through five lifecycle phases - from birth to death - using DI spread acceleration analysis . Designed to identify momentum ignition before traditional ADX signals, and warn of trend exhaustion before it becomes obvious.
WHAT THIS INDICATOR DOES
The Momentum Lifecycle Detector (MLD) is a momentum oscillator with integrated trend phase classification. It answers the question every trend trader needs answered: "Where in its life is this momentum right now?"
Most trend strength indicators tell you a trend exists after the move is already underway. ADX crossing above 25 is a lagging confirmation. MLD solves this by detecting the birth of momentum at the earliest mathematically identifiable point, then tracking that momentum through five distinct lifecycle phases until it dies.
The indicator displays:
An ATR-normalized momentum oscillator (the main line you follow)
A signal line for crossover analysis
A histogram showing momentum-signal divergence
A colored lifecycle band showing the current phase
Consolidation zone boxes marking coiled energy before breakouts
A reversal atmosphere glow when momentum curvature suggests reversal
A dashboard summarizing momentum conditions at a glance
Adaptive dead zone and choppy market warnings
THE PROBLEM THIS SOLVES - WHY TRADERS NEED EARLY TREND DETECTION
Traditional ADX tells you a trend is strong when it crosses above 25. By that point, the optimal entry window has often closed. Conversely, ADX gives no clear warning when a trend is dying - it just slowly rolls over after the move has already reversed.
The core innovation in MLD is measuring the acceleration of the gap between +DI and -DI. Here is the mathematical logic:
Spread = |+DI minus -DI| - How far apart are bullish and bearish pressure?
Velocity = Spread minus Spread - Is that gap widening or narrowing?
Acceleration = Velocity minus Velocity - Is the widening itself speeding up?
When acceleration is positive and velocity is positive while ADX is still low, a new trend is actively forming. This is the mathematical fingerprint of momentum at birth - detectable bars before ADX would give any signal.
WHY THESE SPECIFIC COMPONENTS - JUSTIFICATION FOR THE INTEGRATION
This indicator combines several analytical methods into a unified lifecycle detection framework. Each component serves a specific, non-redundant purpose. Here is why each exists:
Zero-Lag EMA Momentum Oscillator
Purpose : The primary visual output traders watch and trade.
Method : Difference between fast ZLEMA (default 9) and slow ZLEMA (default 21), divided by ATR, multiplied by 100.
Why ZLEMA : Standard EMA lags behind price. ZLEMA compensates by adding the difference between the current price and its lagged value before smoothing. This produces earlier momentum readings without adding noise.
Why ATR normalization: Raw price differences are not comparable across instruments. A 5-point move means something different on a $10 stock versus Bitcoin. Dividing by ATR makes oscillator readings universal - a reading of +50 represents the same relative momentum strength on any chart, any timeframe.
Gaussian-Weighted Directional Indicators
Purpose : Feed responsive directional data into the lifecycle detection engine.
Method : Instead of standard Wilder smoothing for +DI and -DI, a Gaussian (bell-curve) decay function applies exponentially more weight to recent bars. The formula is exp(-(n/len)^2).
Why Gaussian weighting : Standard DI treats all bars in the lookback equally. A directional move from 14 bars ago counts the same as one happening now. Gaussian decay makes DI inherently more responsive to fresh moves without shortening the period (which would increase noise).
ZLEMA-Smoothed ADX
Purpose : Trend strength measurement for phase classification.
Method : DX calculated from Gaussian-weighted DI values, smoothed with ZLEMA instead of traditional Wilder smoothing.
Why ZLEMA-smoothed: Standard Wilder-smoothed ADX is deliberately sluggish by design. For lifecycle detection, we need ADX that responds faster to "waking up" and "rolling over" behaviors that define phase transitions.
DI Spread Acceleration Engine
Purpose : The core innovation - detects momentum birth before ADX confirms.
Method : Calculates the absolute spread between +DI and -DI, derives its velocity (first derivative) and acceleration (second derivative), smooths both with 3-period EMA.
Why this matters: This is what differentiates MLD from existing ADX-based tools. Acceleration of the DI spread is a leading indicator. By the time ADX crosses a threshold, spread acceleration has already been positive for multiple bars. This enables IGNITION detection before traditional signals fire.
Kaufman Efficiency Ratio
Purpose : Regime filter that warns when conditions are choppy.
Method : ER = net price movement divided by total price movement. Values near 1.0 mean efficient directional movement. Values near 0.0 mean price went back and forth without progress.
Why included: Momentum oscillators generate false signals in ranging markets. When ER is low, ADX is weak, and momentum sits inside the dead zone, the background turns gray - warning traders that conditions do not support directional strategies.
Momentum Curvature Analysis
Purpose : Early warning of potential reversals via oscillator curvature.
Method : Second derivative of momentum (how the slope is changing). When momentum is negative but curving upward (positive curvature with positive slope), bullish pressure is building from underneath before the trend visibly reverses. Strength is normalized against 30-bar standard deviation of curvature.
Important : This is purely mathematical curvature of the plotted oscillator. It does not use order flow, volume profile, bid/ask data, or any external source. The term "atmosphere" is a visual metaphor for the glow effect.
These components form an integrated pipeline - they are not independent indicators placed on the same pane. The oscillator provides visual momentum reading, Gaussian DI and ZLEMA ADX feed the lifecycle engine, spread acceleration detects phase transitions, ER provides regime context, and curvature adds reversal awareness. Each output feeds downstream components.
THE FIVE LIFECYCLE PHASES - DETECTION LOGIC EXPLAINED
The lifecycle band at the bottom displays one of five phases. Each has specific mathematical conditions that must all be true simultaneously. A state machine with configurable inertia prevents rapid flickering.
IGNITION - Cyan Band
Conditions : DI crossover within last N bars (default 4), spread acceleration above threshold (default 0.2), spread velocity above threshold (default 0.3), ADX rising for two consecutive bars.
Meaning : Momentum is being born. DI lines just crossed, the gap is accelerating open, ADX is waking. This is the earliest actionable signal. ADX may still be below 20.
State machine : IGNITION transitions instantly (1-bar inertia) because early detection speed matters.
THRUST - Green or Red Band (direction-coded)
Conditions : Past ignition window but within 3x that window, spread velocity above threshold (default 0.5), ADX surged more than threshold (default 1.5) over 3 bars.
Meaning : Young trend gaining real power. Spread velocity is high, ADX is confirming with a surge. The trend is no longer hypothesis - it is building strength.
State machine : THRUST transitions instantly.
PRIME - Deeper Green or Red Band (direction-coded)
Conditions : ADX above strong threshold (default 20), ADX either rising or above its signal line, DI spread above minimum (default 10).
Meaning : Mature, established trend. Maximum directional strength. Most productive phase - but also where exhaustion can begin. Use trailing stops.
State machine : Requires configured inertia (default 2 bars) before transition.
FADING - Orange Band
Conditions : ADX above strong threshold BUT falling AND below its signal line, OR ADX strong but spread velocity sharply negative (below -0.5).
Meaning : Trend is dying. ADX rolling over, DI gap closing. Time to tighten stops, take partials, prepare for next cycle.
State machine: Requires configured inertia before transition.
DEAD - Dark Gray Band
Conditions : None of the above active.
Meaning : No meaningful directional momentum. Market ranging, consolidating, or in transition. Directional strategies unlikely to perform well.
HOW TO READ THE OSCILLATOR PLOT
Momentum Line (thick, color-coded)
Bright green : Momentum positive and rising (bullish, strengthening)
Faded green : Momentum positive but falling (bullish, weakening)
Bright red: Momentum negative and falling (bearish, strengthening)
Faded red : Momentum negative but rising (bearish, weakening)
Gray : Momentum inside dead zone (noise, not signal)
Signal Line (thin orange)
EMA of momentum. Crossovers between momentum and signal highlight directional shifts, similar to MACD signal line usage.
Momentum-Signal Fill (shaded area between the two lines)
Teal shading: Momentum above signal (bullish bias)
Maroon shading: Momentum below signal (bearish bias)
This fill provides instant visual recognition of which line is dominant.
Histogram (vertical columns at zero line)
Shows the gap between momentum and signal.
Bright columns: Gap expanding (momentum pulling away, trend strengthening)
Faded columns: Gap contracting (momentum converging, trend weakening)
Green: Momentum above signal. Red: Momentum below signal.
Dead Zone (gray horizontal band around zero)
Dynamically calculated as a multiple (default 0.5x) of momentum's 50-bar standard deviation.
When momentum is inside this zone, directional signals are unreliable - the reading is within normal noise range.
Zero Line (dotted horizontal)
Momentum above zero: Net bullish pressure
Momentum below zero: Net bearish pressure
Zero line crosses represent directional bias shifts.
CONSOLIDATION ZONES - COILED ENERGY BEFORE BREAKOUTS
Yellow boxes appear on the oscillator when momentum energy is coiling - a potential precursor to a strong directional move.
Detection Logic
Two conditions must be simultaneously true:
Histogram (momentum-signal gap) is unusually tight relative to its recent 50-bar standard deviation.
Momentum slope is unusually flat relative to its recent 50-bar standard deviation.
Both thresholds are adaptive - they automatically adjust to each instrument's typical behavior. This means the indicator detects relative consolidation, not absolute levels, making it equally effective on volatile crypto and stable bonds.
Zone Lifecycle
New zone starts as dotted-border, light yellow box.
If it persists for minimum bar count (default 5), it upgrades to solid-border, brighter yellow - a validated zone.
If momentum drifts too far from where zone started (exceeds drift tolerance relative to zone height), the zone is invalidated and deleted. This prevents slow trends from being falsely labeled as consolidation.
When zone breaks (convergence conditions end), box color changes based on breakout direction: teal for bullish breakout, maroon for bearish breakout.
Only one active zone exists at a time to keep the chart clean.
How to Trade It
Validated consolidation zones (solid border) represent coiled momentum. Breakouts from these zones, especially when accompanied by IGNITION or THRUST phase, often produce strong directional moves. The breakout color immediately tells you the direction.
REVERSAL ATMOSPHERE - CURVATURE-BASED REVERSAL WARNING
A soft colored glow appears around the momentum line when mathematical curvature suggests a reversal is forming.
How It Works
The indicator calculates the second derivative of momentum (curvature - how the slope itself is changing).
Bullish reversal detection: Momentum is below zero (bearish), but slope has turned positive (rising), and curvature is positive (the rise is accelerating). This is the mathematical signature of a bottom forming - momentum is still negative but fighting back.
Bearish reversal detection: Mirror image. Momentum is above zero, but slope is negative and curvature is negative. A top is forming.
Visual Output
Green glow: Bullish reversal pressure building
Red glow: Bearish reversal pressure building
Glow intensity increases with curvature strength, normalized against 30-bar standard deviation
Glow width is configurable (default 8 units)
Important Clarification
This is purely mathematical analysis of the oscillator's own curvature. It does not incorporate order flow data, market depth, bid/ask spreads, or any external data source. The term "atmosphere" is a visual metaphor describing the glow effect, not a claim about market microstructure.
CHOPPY MARKET BACKGROUND - REGIME WARNING
When three conditions are all simultaneously true, the pane background turns gray:
Efficiency Ratio below choppy threshold (default 0.30)
ADX below choppy threshold (default 18)
Momentum inside dead zone
This gray background is a visual warning: "Market conditions are choppy. Momentum signals here are statistically less reliable. Consider waiting for cleaner conditions."
DASHBOARD - THE MOMENTUM WEATHER REPORT
A compact panel (position and size configurable) displaying five key readings:
PHASE
Current lifecycle phase name in corresponding color. Instantly shows where momentum is in its lifecycle.
BIRTH
DI spread acceleration status - is new momentum being created?
ACCELERATING (cyan) : Strong positive acceleration, momentum actively being born
BUILDING (green) : Moderate positive acceleration
QUIET (gray): No significant acceleration
DECELERATING (red): Negative acceleration, momentum creation slowing or reversing
FLOW
Directional bias with magnitude.
BULL : Bullish DI dominance. Number is DI spread (gap between +DI and -DI)
BEAR : Bearish DI dominance
FLAT : Momentum in dead zone, no meaningful directional bias
WEATHER
Overall assessment combining phase and vitality.
FAVORABLE (green): Active phase (IGNITION/THRUST/PRIME) with momentum outside dead zone. Conditions support directional trading.
CAUTION (orange): FADING phase, or PRIME with negative spread velocity. Trend may be exhausting.
UNFAVORABLE (red): DEAD phase or momentum in dead zone. Avoid directional strategies.
PRESSURE
Reversal pressure from curvature analysis.
BULLISH REV (green): Strong bullish reversal curvature
BEARISH REV (red): Strong bearish reversal curvature
BUILDING (cyan): Moderate reversal curvature forming
NONE (gray): No significant reversal pressure
COMPLETE SETTINGS REFERENCE
Core Momentum Oscillator
Fast ZLEMA Length (default 9): Fast moving average responsiveness. Lower = faster, noisier.
Slow ZLEMA Length (default 21): Baseline moving average. Gap between fast and slow produces momentum.
Signal Line Length (default 5): Smoothing period for signal line.
Momentum Smoothing (default 3): Additional noise reduction on raw momentum.
ATR Period (default 14): Normalization period for cross-instrument comparability.
Consolidation Zones
Show Consolidation Zones (default true): Toggle zone detection.
Histogram Sensitivity (default 1.0): How tight momentum-signal gap must be. Lower = stricter.
Slope Sensitivity (default 1.0): How flat momentum must be. Lower = stricter.
Minimum Bars (default 5): Shortest valid consolidation duration.
Drift Tolerance (default 0.4): Maximum directional drift before zone invalidation.
Regime Detection
Efficiency Ratio Period (default 10): Lookback for price efficiency calculation.
ER Smoothing (default 5): Smoothing to prevent rapid regime flipping.
Trend Threshold (default 0.4): ER above this = trending market.
Dead Zone Multiplier (default 0.5): Standard deviations defining the noise band.
Choppy ER Threshold (default 0.30): ER below this contributes to choppy warning.
Choppy ADX Threshold (default 18): ADX below this contributes to choppy warning.
Momentum Lifecycle
Show Lifecycle Band (default true): Toggle the colored phase band.
DI Calculation Length (default 14): Period for Gaussian-weighted +DI/-DI.
ADX Smoothing (default 14): ZLEMA smoothing on DX.
ADX Signal Length (default 5): EMA of ADX for crossover detection.
Ignition Window (default 4): Bars after DI cross qualifying for IGNITION.
State Inertia (default 2): Bars a phase must persist before official transition.
Ignition Accel Threshold (default 0.2): Minimum spread acceleration for IGNITION.
Ignition Velocity Threshold (default 0.3): Minimum spread velocity for IGNITION.
Thrust Velocity Threshold (default 0.5): Minimum spread velocity for THRUST.
ADX Surge Threshold (default 1.5): Minimum ADX rise over 3 bars for THRUST.
ADX Strong Threshold (default 20): ADX above this = strong trend (PRIME/FADING).
DI Spread Minimum (default 10): Minimum DI gap for PRIME confirmation.
Reversal Atmosphere
Show Reversal Atmosphere (default true): Toggle the curvature glow effect.
Glow Width (default 8): Visual width of atmospheric glow. Cosmetic only.
Display
Show Histogram (default true): Toggle momentum-signal histogram.
Show Momentum-Signal Fill (default true): Toggle shaded area between lines.
Show Choppy Background (default true): Toggle gray background warning.
Dashboard
Show Dashboard (default true): Toggle the weather report panel.
Dashboard Position (default Top Right): Panel location on chart.
Dashboard Size (default Small): Text size in panel.
Alerts
Alert on Ignition (default true): Notify when entering IGNITION phase.
Alert on Fading (default true): Notify when entering FADING phase.
Confirm on Bar Close (default true): Wait for bar close before firing alerts. Prevents false signals from intra-bar noise.
ALERTS
Two alert conditions target the most actionable lifecycle transitions:
IGNITION Onset
Fires when lifecycle enters IGNITION phase. Alert message includes directional bias (Bullish/Bearish), current ADX value, and how many bars since DI cross.
FADING Onset
Fires when lifecycle enters FADING phase. Alert message includes ADX value and current spread velocity.
Bar Close Confirmation
When enabled (default), alerts only fire after the bar closes. This prevents false alerts triggered by intra-bar price spikes that later reverse. Recommended to keep enabled for reliable signals.
RECOMMENDED TIMEFRAMES AND INSTRUMENTS
MLD works across all timeframes and instruments due to ATR normalization.
Default settings optimized for: Daily and 4-hour charts.
For lower timeframes (15m, 5m): Consider increasing Momentum Smoothing to 5 and State Inertia to 3 to filter noise.
For weekly charts: Default settings work without adjustment.
For highly volatile instruments (crypto, small caps): The adaptive thresholds automatically adjust. No manual tuning typically required.
For low-volatility instruments (bonds, some forex pairs): Consider reducing Dead Zone Multiplier to 0.3 for more sensitivity.
PRACTICAL EXAMPLE - MOMENTUM LIFECYCLE IN ACTION
Consider a stock range-bound for weeks. ADX reads 12. Traditional trend tools show nothing actionable.
Then +DI crosses above -DI. ADX is still 12. No traditional signal. But MLD detects that the DI spread is accelerating - the gap is not just opening, it is opening faster each bar. ADX has risen for two consecutive bars (waking up). The lifecycle band turns cyan: IGNITION. The dashboard shows BIRTH: ACCELERATING, WEATHER: FAVORABLE.
Over the next few bars, spread velocity increases. ADX surges upward. The band turns green: THRUST. The trend is confirmed and building.
ADX crosses above 20, continues rising, spread stays wide. Band turns deeper green: PRIME. This is the productive phase.
Eventually ADX peaks, starts falling, drops below its signal line. Spread velocity turns negative. Band turns orange: FADING. Dashboard shows WEATHER: CAUTION. Time to trail stops tightly.
ADX falls back below 20, momentum enters dead zone. Band turns gray: DEAD. The lifecycle is complete.
The value: MLD flagged IGNITION several bars before ADX would have signaled anything. It flagged FADING while ADX was still technically strong but deteriorating. This is the early detection advantage.
Chart Example 1:
BTC/USDT 5-minute is showing a classic FADING lifecycle : a bullish thrust peaked around 13:00–14:00, entered a validated consolidation zone, and is now visibly breaking down. The momentum line is curving sharply downward inside the yellow box, the band is orange (FADING), and FLOW has flipped to BEAR 17.9 : confirming the consolidation resolved bearishly, not bullishly. The earlier cyan IGNITION flash (~14:30) failed to sustain, overwhelmed by the dominant fading structure. The dashboard reads WEATHER: CAUTION, PRESSURE: NONE : no reversal energy building yet.
Chart Example 2:
BTC/USDT 15-minute is in DEAD phase with WEATHER: UNFAVORABLE : no tradeable momentum present. The dashboard tells the complete story: FLOW is FLAT meaning neither bulls nor bears have directional control, and PRESSURE is NONE meaning no reversal energy is building beneath the surface either. Despite BIRTH showing ACCELERATING, without flow direction or reversal pressure to back it up, the acceleration has no confirmed destination yet. Stand aside and wait for the lifecycle band to shift out of DEAD before committing.
WHAT MAKES THIS INDICATOR ORIGINAL
The originality lies in three specific innovations not present in standard ADX/DI implementations or common momentum oscillators:
DI Spread Acceleration Analysis
Standard tools measure the DI spread itself or track ADX thresholds. MLD applies derivative analysis - velocity and acceleration - to the spread, transforming a traditionally lagging measurement into a leading indicator of trend formation.
Gaussian-Weighted DI Calculation
Standard DI uses Wilder smoothing with equal weight to all bars. Gaussian decay weighting makes DI inherently more responsive to recent directional moves without the noise penalty of shorter periods.
Five-Phase Lifecycle Classification with Inertia-Gated State Machine
Rather than binary trend/no-trend output, MLD maps momentum onto a lifecycle model with distinct phases and specific mathematical criteria. The state machine prevents flickering while allowing speed-critical states (IGNITION, THRUST) to transition immediately.
These are integrated innovations, not independent indicators on the same pane. Each feeds into the lifecycle engine or provides context for its output.
DISCLAIMER
This indicator performs mathematical calculations on price data (open, high, low, close) only. It does not use order flow data, volume profile, market depth, bid/ask information, institutional positioning data, or any external data source.
Terms like "momentum birth," "reversal atmosphere," "weather," and " lifecycle " are descriptive metaphors for mathematical concepts (derivatives, curvature, efficiency ratios, state classification). They are not claims about market microstructure or participant behavior.
No indicator predicts future price movement. MLD identifies mathematical conditions historically associated with specific momentum behaviors. These conditions may or may not produce expected outcomes in any given instance.
This tool supplements - it does not replace - a complete trading plan including risk management, position sizing, and multiple forms of analysis. Always use proper risk management. Past indicator behavior does not guarantee future results. Indicator

Indicator

Zero Lag Kalman Structure [BOSWaves]Zero Lag Kalman Structure - Adaptive Trend Filtering with Deviation-Based Structure Detection
Overview
Zero Lag Kalman Structure is a precision trend identification system that tracks directional price movement through a zero-lag-compensated Kalman filter ribbon, where deviation-based structural levels dynamically form at volatility-normalized extremes and persist as active support and resistance zones until price invalidates them.
Instead of relying on fixed moving average crossovers or static support/resistance lookbacks, trend state, level formation, and break detection are determined through Kalman velocity tracking, ATR-normalized deviation measurement, and swing-based structure identification.
This creates adaptive trend boundaries and structural zones that reflect actual price conviction rather than arbitrary historical levels - contracting the ribbon during trending conditions when directional certainty is high, forming fresh levels during deviation extremes when price has meaningfully separated from the Kalman baseline, and incorporating BOS/CHoCH detection to reveal whether market structure is continuing or reversing.
Price is therefore evaluated relative to a filter that adapts to momentum velocity rather than conventional lagging averages.
Conceptual Framework
Zero Lag Kalman Structure is founded on the principle that meaningful structural zones emerge when price deviates from its statistically optimal estimated path by a volatility-significant margin, and that trend context is best captured by a filter engineered to eliminate the lag inherent to traditional smoothing methods.
Conventional support/resistance tools identify levels through historical pivot lookbacks, which ignore the dynamic nature of price conviction and the statistical state of the current trend. This framework replaces static pivot logic with Kalman-anchored deviation measurement informed by actual filter velocity and error covariance state.
Three core principles guide the design:
Trend direction should be captured by a velocity-aware Kalman filter with active lag compensation, not by lagging moving averages.
Structural levels must form at statistically significant deviation extremes, normalized to current volatility rather than fixed price distances.
Market structure breaks and character changes should be identified through swing-based logic tied to the same price data the filter operates on.
This shifts trend and structure analysis from static indicator crossovers into adaptive, filter-anchored confidence zones.
Theoretical Foundation
The indicator combines Kalman filter estimation theory, zero-lag error compensation, ATR-normalized deviation measurement, deviation zone persistence modeling, and swing pivot structure detection.
A Kalman filter baseline provides statistically optimal price estimation by balancing process noise and measurement noise parameters, while a velocity tracker within the filter captures directional momentum. Zero-lag compensation applies the residual error between current price and the filter estimate back onto the output, reducing phase delay. Deviation measurement identifies when price has separated from the filter by an ATR-scaled threshold, triggering level creation at the extreme point once price snaps back. BOS/CHoCH detection uses pivot highs and lows to identify structural breaks and character changes.
Four internal systems operate in tandem:
Kalman Filter Engine : Computes error-covariance-weighted price estimates with integrated velocity tracking, Kalman gain adaptation, and zero-lag correction applied to each bar.
Ribbon Construction System : Runs six parallel Kalman instances with incrementally increasing process noise to produce a multi-layered trend ribbon whose spread and color reflect directional strength.
Deviation Level Formation Logic : Monitors ATR-normalized distance from the Kalman estimate, records extreme highs and lows during deviation events, and creates persistent zone boxes upon mean reversion.
Market Structure Detection : Tracks swing pivot highs and lows using configurable lookback, identifies crossovers of those pivots, and classifies each break as either a BOS continuation or a CHoCH reversal depending on prior structural trend.
This design allows the trend filter, structural zones, and structure labels to operate as a unified system rather than independent overlapping indicators.
How It Works
Zero Lag Kalman Structure evaluates price through a sequence of filter-aware and deviation-driven processes:
Kalman State Initialization : On the first bar, filter state initializes with estimate equal to source price, zero velocity, and unit error covariance to establish a clean starting condition.
Prediction Step : Each bar predicts the next estimate by advancing the prior estimate by the velocity component weighted by the velocity weight parameter.
Velocity Tracking : A separate exponential tracker computes price-change velocity using a 95/5 blend of decayed prior velocity and current bar price change.
Kalman Gain Calculation : Gain is computed from current error covariance and measurement noise, controlling the balance between trusting the filter model versus reacting to new price data.
Estimate Update : The filtered estimate updates using the Kalman gain applied to the innovation - the difference between current price and the predicted estimate.
Zero-Lag Correction : Residual lag error between price and estimate is computed, then multiplied by the zero lag factor and current Kalman gain, and added back to the estimate to compress phase delay.
Ribbon Smoothing : The zero-lag estimate passes through a 0.8/0.2 exponential blend each bar to produce the final ribbon line, providing continuity without reintroducing significant lag.
Ribbon Color Gradient : The spread between the fastest and slowest ribbon lines is normalized by ATR to produce a ribbon strength value, which drives a color gradient between the configured bullish and bearish colors.
Deviation Monitoring : Each bar, the distance between close and the main Kalman line is measured in ATR units. When this exceeds the deviation threshold, the system begins tracking the extreme high or low of that deviation event.
Level Creation on Snap-Back : Once price returns inside 50% of the deviation threshold after an extended move, a new zone box is created centered on the tracked extreme, with width scaled to the level width ATR parameter.
Level Management : Active levels extend forward each bar. Broken levels - where price closes beyond the zone boundary - are deleted. When the level count reaches the configured maximum, the oldest level is removed to make space.
Retest Detection : Depending on the selected retest method, the system either monitors price interaction with zone boundaries or price proximity to the main Kalman line, applying cooldown periods to prevent signal clustering.
BOS/CHoCH Detection : Pivot highs and lows are tracked using the swing lookback parameter. Crossovers of the most recent pivot high trigger bullish structural breaks, and crossunders of the most recent pivot low trigger bearish structural breaks. The prior structural trend determines whether each break is classified as continuation (BOS) or reversal (CHoCH).
Together, these elements form a continuously updating trend and structure framework anchored in Kalman estimation theory.
Interpretation
Zero Lag Kalman Structure should be interpreted as a filter-anchored trend state with deviation-driven structural memory:
Ribbon Direction : The relative positioning and color of the six-line ribbon communicates directional trend bias. Bullish gradient color with spread above zero reflects upward trend conviction; bearish gradient with inverted spread reflects downward conviction.
Ribbon Spread Width : A widening spread between the fastest and slowest Kalman lines indicates strong directional momentum. A compressing spread suggests trend deceleration or potential transition.
Resistance Zones (Red) : Created at extreme highs where price deviated significantly above the Kalman line before snapping back, marking areas where price showed unsustainable separation to the upside.
Support Zones (Green) : Created at extreme lows where price deviated significantly below the Kalman line before recovering, marking areas where price showed unsustainable separation to the downside.
Zone Persistence : Active zones extend forward until broken by a close beyond the zone boundary, treating them as live structural reference until price demonstrably invalidates them.
BOS Labels : Dashed lines with "BOS" text mark continuation breaks of prior swing structure in the direction of the established trend.
CHoCH Labels : Dotted lines with "CHoCH" text mark counter-trend breaks of prior swing structure, signaling potential trend character changes.
▲ / ▼ Retest Signals : Small directional arrows identify price retesting either a deviation zone boundary or the main Kalman line, depending on the selected retest method.
Colored Candles : Bar coloring reflects the current ribbon gradient state for immediate directional reference across the entire chart history. Note: The original chart candles must be disabled in chart settings for the trend-colored candles to display properly.
Ribbon gradient strength, zone validity, and structural trend classification outweigh isolated price movements or individual bar reactions.
Signal Logic & Visual Cues
Zero Lag Kalman Structure presents two categories of structural interaction signals:
BOS / CHoCH Events : Labeled lines appear when price crosses a tracked swing pivot. BOS signals continuation of existing structure; CHoCH signals the first counter-trend structural break, indicating potential trend change.
Retest Signals (▲ / ▼) : Arrows appear when price interacts with an active deviation zone boundary (Levels mode) or touches the main Kalman line after sufficient separation (Kalman Line mode), confirmed by cooldown period to prevent rapid repeat signals.
Alert generation covers deviation level creation, BOS and CHoCH events, Kalman line retests, and support/resistance level retests for systematic monitoring across instruments and timeframes.
Strategy Integration
Zero Lag Kalman Structure fits within structure-aware and trend-following analytical frameworks:
Filter-Confirmed Directional Bias : Use ribbon color and spread direction as the primary trend filter before evaluating entries, favoring positions aligned with ribbon gradient.
Deviation Zone Re-entries : Use active support and resistance zones as high-probability re-entry reference areas when price returns to a level from the correct side.
BOS/CHoCH Context Alignment : Treat BOS events as continuation confirmation within established trends; treat CHoCH events as early warning of structural regime change requiring reassessment.
Retest-Based Entries : Use Kalman line or zone retests as lower-risk entry points within an established trend after initial separation has confirmed directional conviction.
Zone Invalidation as Exit Logic : Use level deletion events - where price closes beyond a zone boundary - as structural evidence that the prior support or resistance thesis is no longer valid.
Multi-Timeframe Structure Layering : Apply higher-timeframe deviation zones and BOS/CHoCH context to filter lower-timeframe entry signals for improved precision.
Technical Implementation Details
Core Engine : Kalman filter with error covariance tracking, Kalman gain adaptation, and integrated velocity model
Lag Correction : Zero-lag factor applied multiplicatively with current Kalman gain to preserve filter responsiveness at the correction stage
Ribbon System : Six parallel Kalman instances with linearly incremented process noise, blended via gradient fill
Level Formation : ATR-normalized deviation threshold with extreme tracking, snap-back detection, and box-based zone persistence
Structure Detection : Pivot high/low crossover logic with trend state tracking for BOS/CHoCH classification
Retest Logic : Dual-mode detection supporting zone boundary interaction and Kalman proximity, each with configurable cooldown
Visualization : Gradient ribbon fills, persistent zone boxes, labeled structure lines, and signal arrows
Performance Profile : Optimized for real-time execution with per-bar level management across all timeframes
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Short-term structure tracking with responsive deviation settings for intraday scalping
15 - 60 min : Intraday trend context with balanced deviation threshold and level persistence
4H - Daily : Swing-level structure identification with ATR-normalized zones carrying multi-session significance
Suggested Baseline Configuration:
Process Noise (Q) : 0.01
Measurement Noise (R) : 0.5
Zero Lag Factor : 1.0
Velocity Weight : 0.5
Ribbon Spread : 0.003
Deviation Threshold (ATR) : 1.5
Level Width (ATR) : 0.25
Maximum Levels : 6
Level Extend Bars : 50
Swing Lookback : 5
Retest Method : Kalman Line
Retest Cooldown : 50
Show Ribbon : Enabled
Show Deviation Levels : Enabled
Show BOS / CHoCH : Enabled
These suggested parameters should be used as a baseline; their effectiveness depends on the asset's volatility profile, structural characteristics, 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:
Filter too reactive to noise : Increase Measurement Noise (R) to make the Kalman gain more conservative and smooth the estimate more aggressively.
Filter too slow to respond : Increase Process Noise (Q) to allow faster adaptation to genuine price movements, or increase Zero Lag Factor to strengthen lag correction.
Levels forming too frequently : Increase Deviation Threshold to require greater ATR-normalized separation before a level is created.
Levels forming too rarely : Decrease Deviation Threshold to trigger level creation at more moderate deviations.
Zones too wide or too narrow : Adjust Level Width multiplier to scale zone thickness proportionally to current ATR.
Too many active levels cluttering the chart : Reduce Maximum Levels so older zones are removed sooner, keeping only the most recent structural reference.
BOS/CHoCH signals too frequent : Increase Swing Lookback to require more significant pivot formations before a structural break is recognized.
BOS/CHoCH signals too infrequent : Decrease Swing Lookback for faster swing detection and more responsive structural classification.
Retest signals clustering : Increase Retest Cooldown to enforce greater bar separation between consecutive retest events.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Trending markets with clear directional phases where Kalman velocity remains consistently signed
Instruments with regular mean-reversion behavior where deviation extremes produce reliable structural zones
Swing and position trading approaches where BOS/CHoCH context informs multi-bar directional bias
Structure-based strategies that benefit from ATR-normalized level placement over fixed-point lookback methods
Reduced Effectiveness:
Choppy, range-bound markets with frequent shallow deviations that trigger premature level creation
Extremely low volatility environments where ATR normalization compresses zones to negligible significance
News-driven or gapped markets with discontinuous price behavior that bypasses zone boundaries without interaction
Markets with highly irregular volatility profiles where ATR scaling produces inconsistently sized zones
Consolidation and sideways price action where trend-following and structure-based methodologies inherently struggle due to lack of sustained directional conviction
Integration Guidelines
Confluence : Combine with volume analysis, higher-timeframe trend context, or momentum oscillators to confirm deviation zone significance
Ribbon Alignment : Trust structural breaks and retest signals occurring in the direction of the current ribbon color gradient
Zone Side Discipline : Treat deviation zones as directional only - approach support zones from above for bullish entries, resistance zones from below for bearish entries
CHoCH Awareness : Reduce directional exposure when CHoCH events occur against the prior established structural trend until a confirming BOS in the new direction appears
Velocity Respect : During periods of high Kalman velocity as reflected by wide ribbon spread, expect price to sustain moves further from the filter before meaningful retests occur
Level Invalidation Response : When a zone is broken, treat the break as structural confirmation of the new directional move rather than a retest opportunity
Disclaimer
Zero Lag Kalman Structure is a professional-grade trend filtering and structure analysis tool. It uses Kalman estimation theory with zero-lag compensation and ATR-normalized deviation measurement but does not predict future price movements. Results depend on market conditions, volatility characteristics, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates volume context, higher-timeframe bias, and comprehensive risk management. Indicator
