Smart Trend Filter Confirmation [MarkitTick]💡 A confirmed-bar trend-following system that fuses a volatility-adaptive trailing band with a six-condition consensus filter, designed to suppress the false flips that plague standard trend-following tools when markets stall, chop, or thin out. Rather than reacting to every band cross, the script cross-examines each potential signal against stall detection, slope strength, volume participation, range compression, basis-point movement, and trend strength (ADX) before allowing a flip to display — while retaining a breakout override so genuinely explosive moves are never suppressed by the very filters designed to catch noise.
✨ Originality and Utility
Trailing-band trend systems (Chandelier-style or SuperTrend-style constructs) are common on PulseWire, but nearly all of them share the same weakness: the trailing line flips direction on every price crossover, regardless of whether that crossover reflects a genuine change in market character or simply noise generated during a stalled, illiquid, or compressing market. This script's originality lies in the "Regime Consensus" layer built on top of the adaptive trailing band. Six independent, mathematically distinct filters — measuring band stall, linear-regression slope, relative volume, historical range percentile, basis-point velocity, and ADX-based trend strength — are computed every bar. If any single filter flags a "flat" regime, the display direction is held at its last confirmed state instead of flipping, which materially reduces whipsaw signals in ranging conditions. A dedicated breakout override simultaneously monitors for abnormally large single-bar moves (measured in ATR multiples) and forces the flip through regardless of filter status, ensuring the system does not become sluggish during genuine volatility expansion. This combination — adaptive smoothing of the source price, a volatility- and momentum-weighted dynamic band, a multi-factor flat-market veto, and a breakout bypass — is not a simple mashup of stock indicators but an integrated decision layer where each component directly informs whether the others are permitted to act. The trend line, filters, override, and dashboard are not separable add-ons; they operate as a single signal-gating pipeline.
🔬 Methodology and Concepts
● Adaptive Source Smoothing
Before any band math is applied, the script conditions the underlying HL2-style source price using one of two selectable adaptive filters:
Kalman Filter — a recursive estimator that maintains an internal "belief" about the true price and a corresponding uncertainty (error covariance). Each new bar, the filter computes a gain factor from the ratio of predicted uncertainty to total uncertainty (predicted plus measurement noise, set by the Kalman R input) and blends the new price observation into its estimate proportionally. A higher Kalman Q input allows the estimate to adapt faster to new prices; a higher Kalman R input makes the filter trust new observations less, producing a smoother but slower-reacting line.
LLAMA (an adaptive-length moving average inspired by Kaufman's Efficiency Ratio concept) — measures how efficiently price has moved over the lookback window by comparing net directional change to the sum of all bar-to-bar movement (an efficiency ratio between 0 and 1). This ratio is squared into a smoothing constant that continuously shifts the moving average's responsiveness between a fast EMA-like constant and a slow EMA-like constant, so the average tightens to price during clean directional runs and widens during choppy conditions.
• Dynamic Volatility Band
The core trailing band's half-width is not a fixed ATR multiple. It is calculated from three weighted components: a base multiplier, an ATR-based term scaled by the ATR Weight input, and a normalized recent-price-movement term (capped at its own 95th percentile to prevent single outlier bars from distorting the band) scaled by the Move Weight input. This composite value is then multiplied by the current ATR and smoothed with an exponential moving average (controlled by the Smooth Len input) to prevent the band width itself from jumping erratically bar to bar.
• Trailing Trend Line Construction
The trend line follows classic chandelier-style trailing logic: while price remains above the trend line, the line can only ratchet upward (never retreating below its prior value even if the lower band momentarily dips beneath it); while price remains below the trend line, the line can only ratchet downward. A flip only occurs when confirmed prior-bar closing price crosses to the opposite side of the line.
• Six-Factor Regime Consensus Filter
Before a directional flip is permitted to display, up to six independent conditions are checked. If any active filter flags the market as "flat," the displayed direction holds at its previous confirmed state rather than flipping:
Stall Filter — flags when the trend line's bar-to-bar movement is smaller than a fraction (Flatness input) of current ATR, indicating the line itself has gone quiet.
Slope Filter — runs a short linear regression across recent trend-line values, measures the resulting slope, normalizes it against ATR, and flags when that normalized slope falls below the Slope Thr input.
Volume Filter — flags when confirmed volume falls at or below its own moving average, treating below-average participation as unreliable for a fresh directional call.
Range Filter — flags when the current bar's high-low range falls within the lower percentile band (Range Pct input) of its historical distribution over the Pctile Len lookback, identifying range compression.
BPS Filter — converts the trend line's bar-to-bar movement into basis points relative to price and flags when that figure falls under the Min BPS input, catching moves too small to be economically meaningful.
ADX Filter — computes a standard Directional Movement Index reading and flags when it sits below the ADX Thr input, indicating weak underlying trend strength.
• Breakout Override
Running in parallel to the consensus filters, this component measures the absolute prior-bar price change against a multiple of ATR (Ovr ATR Mult input). If that threshold is exceeded, the override forces the flip through immediately, bypassing every flat-market filter above. This prevents the filter layer from muting the system's response to genuine volatility expansion or breakout conditions.
🎨 Visual Guide
Trend Line — a stepped line plotted along the confirmed trailing band value. It renders in the Bull color when the confirmed direction is up and the Bear color when down; both colors are fully customizable in the Colors group.
Gradient Candles / Bar Coloring — when enabled, chart candles and bars are recolored on a gradient between the Neutral color and the active directional color, with gradient intensity scaled by how far confirmed price has extended from the trend line relative to ATR (capped at 3x ATR for full saturation). A muted candle indicates price sitting close to the trend line; a fully saturated candle indicates an extended move.
Cloud Fill — a semi-transparent fill (opacity set by Cloud Transp) rendered between the trend line and a short moving average of HLC3 (length set by Cloud MA Len), tinted in the active directional color to visually reinforce which side of the trend the market currently occupies.
Bull / Bear Signal Labels — a "Bull" label appears below price the bar a confirmed flip to the up-regime occurs, and a "Bear" label above price on a confirmed flip to the down-regime, provided the Regime Consensus Filter did not veto the flip and Lock Signal is not engaged.
Trade Level Lines and Labels (optional, enabled via Show Trade Levels) — on each new confirmed signal, five lines are drawn forward from the signal bar: an Entry line (at prior confirmed close), a Stop Loss line, and three Take Profit lines (TP1, TP2, TP3), each offset from entry by ATR multiples set in the Trade Tools group. A shaded risk zone connects Entry to Stop Loss, and a shaded reward zone connects Entry to the furthest take-profit line. Each line carries a right-aligned label showing its exact price.
Live Dashboard (optional, position configurable via Dash X / Dash Y) — a compact table summarizing current symbol/timeframe, signal lock state, active direction, current signal status, regime classification (Flat/Trending), breakout override status, active adaptive filter type, current trend-line and ATR values, a visual progress bar for trend strength, and individual on/off/flat status readouts for each of the six regime filters.
Non-Standard Chart Warning — a red-bordered table automatically appears in the top-left corner if the script detects it is being run on a Heikin Ashi, Renko, Line Break, Kagi, or Point & Figure chart, warning that signal reliability is compromised on synthetic chart types.
📖 How to Use
A "Bull" label with the trend line switching to the Bull color signals a confirmed transition to an up-regime that has passed all active consensus filters (or was pushed through by the breakout override).
A "Bear" label with the trend line switching to the Bear color signals the equivalent confirmed down-regime transition.
Because flips are gated by the consensus filter, the absence of a new signal during a period of price consolidation is intentional — the script is treating the move as noise rather than a lack of function. Check the dashboard's individual filter rows to see exactly which condition(s) are currently classifying the market as flat.
The dashboard's "Override" row shows "Engaged" when the Breakout Override has just bypassed the filters — useful for distinguishing a filter-confirmed signal from a volatility-forced one.
When Show Trade Levels is active, treat the Entry/SL/TP lines as a reference risk framework tied to current ATR, not a guaranteed execution plan; always verify levels make sense for the instrument and timeframe before acting on them.
Enable Lock Signal to freeze the current signal state on the most recent bar, useful when reviewing historical signal behavior without new signals interrupting the current view.
If the Non-Standard Chart warning appears, switch to a standard candlestick chart type before relying on any signal from this script.
⚙️ Inputs and Settings
ATR Len — lookback period for the underlying ATR calculation that drives band width and multiple filter thresholds. Shorter values make the band more reactive to recent volatility; longer values smooth it out.
Band Mult, ATR Weight, Move Weight — the three components that combine into the dynamic band multiplier. Band Mult sets a base width, ATR Weight scales the contribution of current ATR relative to price, and Move Weight scales the contribution of recent capped price movement.
Smooth Len — the EMA length applied to the calculated band half-width, controlling how quickly the band itself can widen or narrow.
Adaptive Filter / Filter Type — toggles and selects between Kalman and LLAMA smoothing of the source price feeding the trend line.
Kalman Q / Kalman R — process noise and measurement noise inputs for the Kalman filter; higher Q increases responsiveness, higher R increases smoothing.
LLAMA Len — lookback window for the efficiency-ratio calculation driving the LLAMA adaptive average.
Stall Filter / Flatness — enables the stall check and sets the ATR-relative threshold below which trend-line movement is considered stalled.
Slope Filter / Reg Len / Slope Thr — enables the regression-slope check, sets its lookback window, and sets the normalized slope threshold below which the market is considered flat.
Volume Filter / Vol MA Len — enables the volume check and sets the moving-average length volume is compared against.
Range Filter / Pctile Len / Range Pct — enables the range-compression check and sets the historical lookback and percentile threshold used to classify current range as compressed.
BPS Filter / Min BPS — enables the basis-point movement check and sets the minimum basis-point threshold for a trend-line move to be considered meaningful.
ADX Filter / ADX Len / ADX Thr — enables the ADX-based trend-strength check and sets its calculation length and minimum threshold.
Breakout Ovr / Ovr ATR Mult — enables the override and sets the ATR multiple of single-bar price change required to force a flip through the filters.
Show Trade Levels / SL, TP1, TP2, TP3 ATR Mult — enables the trade-level drawing tool and sets each level's distance from entry as a multiple of ATR.
Bar Coloring, Bull/Bear Marks, Cloud Fill, Cloud MA Len, Cloud Transp — visual toggles and parameters controlling gradient candles, signal labels, and the cloud fill between trend line and reference average.
Show Dash, Dash X, Dash Y — toggles the dashboard and sets its screen position.
Long/Short/Close Action inputs — customizable text strings inserted into the "action" field of each alert's JSON payload, for direct use with automated webhook execution systems.
Colors group — full color customization for bull/bear/neutral states, label text, warning banner, dashboard theme, gradient candle tiers, and trade-level line colors.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The trailing-band mechanism draws on the same volatility-normalized stop methodology popularized by Chandelier Exit-style systems, which themselves extend J. Welles Wilder's Average True Range concept into an adaptive trailing stop: rather than a fixed price distance, the stop distance breathes with recently realized volatility, tightening in calm markets and widening in turbulent ones.
The Kalman filter option applies a classical state-space estimation technique originally developed for aerospace tracking problems (Rudolf Kálmán, 1960). It treats the "true" price trend as an unobserved state to be estimated from noisy observations, recursively updating a prediction and its uncertainty at each time step and weighting new information by a gain term derived from the relative magnitude of prediction versus measurement uncertainty. Applied to price series, it produces a smoothed estimate that adapts its own responsiveness based on the ongoing balance of signal versus noise.
The LLAMA adaptive average is built on an efficiency-ratio concept in the lineage of Perry Kaufman's Adaptive Moving Average research: the ratio of net directional displacement to total path length over a window quantifies how "efficiently" price has trended, and this ratio is used to interpolate the smoothing constant between fast and slow exponential-average bounds. Markets that trend efficiently receive a fast, responsive average; markets that chop inefficiently receive a slow, heavily smoothed one.
The Slope Filter applies ordinary least squares (OLS) linear regression across a short trend-line window to extract a first-derivative estimate (slope) of the trend line's trajectory, normalizing it by ATR so the threshold behaves consistently across instruments and volatility regimes of different scale.
The ADX Filter is grounded in Wilder's Directional Movement System, which decomposes price movement into positive and negative directional components and derives a smoothed trend-strength oscillator independent of direction — a standard framework for distinguishing trending from ranging conditions.
The Range Filter's use of percentile-rank classification reflects a basic non-parametric statistical approach: rather than assuming a normal distribution of high-low ranges, it empirically ranks the current range against its own recent historical distribution, which is more robust to the fat-tailed, non-normal behavior typically observed in financial return and range series.
Collectively, the six-factor consensus mechanism reflects a general principle from ensemble/multi-condition filtering: requiring independent, structurally uncorrelated confirmations to agree (or, here, requiring none to actively veto) before acting on a signal tends to reduce the false-positive rate relative to any single condition acting alone, at the cost of some responsiveness — a classic precision/recall tradeoff which the Breakout Override is specifically designed to mitigate during high-volatility regimes.
⚠️ 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. We 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

5 Trend Indicators Combo IndicatorThe 5 Trend Indicators Combo with Retest Logic: A Comprehensive Guide
The "5 Trend Indicators Combo Indicator" is an advanced, multi-faceted technical analysis tool built using Pine Script for PulseWire. Its primary purpose is to identify high-probability trend reversals and continuations by aggressively filtering out market noise and minimizing false breakout signals. Instead of relying on a single, isolated metric—which can often be misleading—this script utilizes a robust "confluence" methodology. It systematically evaluates five distinct, highly respected trend-following indicators, aggregating their individual statuses into a unified scoring system. Furthermore, it elevates standard signal generation by incorporating an intelligent pullback (retest) mechanism, explicitly designed to optimize entry prices so that traders do not buy at the absolute top or sell at the bottom of a sudden, volatile price spike. Additionally, it features a built-in graphical dashboard that allows traders to instantly monitor the bullish or bearish status of all five indicators in real-time.
Working Mechanism: How does it detect trading signals?
The core engine of this script evaluates five technical pillars, each contributing a maximum of one point to a total "Bull Score" or "Bear Score":
1. Exponential Moving Average (EMA): Defaulted to a 50-period length, the EMA establishes the chart's baseline directional bias. A bullish point is awarded if the current closing price is strictly above the EMA, and a bearish point is given if it is below.
2. Average Directional Index (ADX) & DMI: This component measures the absolute strength and direction of a trend. To score a point, the ADX value must exceed a specific threshold (defaulted to 20), acting as a strict filter to ensure the market is actually trending rather than chopping in a sideways range. Once this threshold is met, the Directional Indicators dictate the bias: +DI must be greater than -DI for a bullish point, and vice versa for a bearish point.
3. Moving Average Convergence Divergence (MACD): Operating with standard 12, 26, and 9 periods, the MACD assesses momentum shifts. The script requires strict criteria here: for a bullish score, the MACD line must be above the Signal line *and* above the zero baseline. Bearish points require the MACD line to be completely below both.
4. Supertrend:Utilizing a multiplier of 3.0 and an ATR period of 10, the Supertrend acts as a volatility-adjusted trailing stop. It awards a point depending on whether the current trend is mathematically calculated as bullish (direction < 0) or bearish (direction > 0).
5. Ichimoku Cloud (Kumo): The script analyzes the relationship between the closing price and the Kumo (Cloud), which is defined by Senkou Span A and Span B projected 26 periods into the future. A bullish point is granted only if the price has successfully broken out above the top boundary of the cloud, signifying dominant long-term momentum. A bearish point requires a breakdown below the bottom boundary.
Once the overall score is tallied (ranging from 0 to 5), the script compares it against a user-defined "Minimum Confluence Score". When the score crosses this threshold, an initial trend signal is generated. However, the script's standout technical feature is its "Retest / Pullback" logic. Instead of firing the final execution alert immediately upon the breakout, the script enters a "pending" state. It calculates a dynamic retracement target using an Average True Range (ATR) multiplier. For a buy signal, the price must briefly retrace down to `Close - (ATR * Multiplier)`. The script waits for a maximum number of candles (default is 3) for this pullback to occur. If the price successfully touches this retest level, a highly optimized, safe entry is signaled. If the time expires without a retest, the script automatically fires a delayed entry to ensure the trader does not miss a runaway trend.
How to Use: Optimal Settings and Suitable Markets
To deploy this indicator effectively, traders should focus on optimizing the 'Minimum Confluence Score'. A score of 3 is the recommended baseline, offering a healthy balance between trade frequency and signal accuracy. Increasing this to 4 or 5 will result in much stricter, albeit fewer, high-conviction signals. The Retest ATR Multiplier and Max Wait Bars must be adjusted according to the timeframe; faster timeframes might require smaller ATR multipliers to successfully catch brief micro-pullbacks before the timer expires.
Regarding suitable markets, this indicator is exclusively designed for trending environments. It performs exceptionally well in high-liquidity, directional markets such as major Forex pairs (e.g., EUR/USD, GBP/JPY), large-cap cryptocurrencies (Bitcoin, Ethereum), and major stock indices (S&P 500, NASDAQ). Because it relies heavily on trend-following logic and moving averages, it is most appropriate for medium to higher timeframes, particularly the 1-hour, 4-hour, and Daily charts. Using it on extremely low timeframes (like 1-minute or 3-minute charts) may expose it to excessive intraday noise and erratic wicks, though the ADX filter and Retest mechanism will actively attempt to mitigate those risks. Ultimately, this script transforms a standard chart into a highly systematic, rule-based trading system. Indicator

Multi-Confluence Signal Engine [MarkitTick]💡 A confluence-weighted signal engine that scores trend, momentum, volume, and market-structure conditions independently, then blends them into two composite 0–100 readings — a Bull Score and a Bear Score — to identify moments where multiple independent forces align in the same direction. Rather than reacting to one indicator crossing one line, this script asks four different questions about price behavior at once and only flags a signal when the weight of evidence clears a threshold you control.
✨ Originality and Utility
Most confluence or "confirmation" scripts on PulseWire work by checking a fixed list of conditions and requiring all of them, or a majority of them, to be true — a rigid AND/OR gate. This script instead builds four independent sub-scores (Trend, Momentum, Volume, Structure), each internally weighted by the relative importance of its own components, and then combines those four legs using user-defined percentage weights into a single continuous score. The practical difference is that a trader can decide, for example, that market structure matters twice as much as volume for their instrument, and the engine will respect that priority mathematically rather than treating every condition as equally binary.
The engine does not stop at "yes/no." Each leg produces a 0–100 magnitude, visible individually on the dashboard, so a trader can see not just that a signal fired but which of the four legs was doing the heavy lifting. A signal driven primarily by Structure (a break of a swing high with rising highs and lows) has a different character than one driven primarily by Volume (a spike on an up-close candle), even if both produce the same final score. This decomposition is what separates the tool from a simple scoring checklist: the score is diagnostic, not just directional.
On top of scoring, the script layers a full trade-management shell: ATR-based stop placement, three R:R-defined take-profit levels, a minimum-bar-gap cooldown to prevent signal clustering, a minimum score-gap requirement between the bull and bear reading to avoid firing on a coin-flip, an optional higher-timeframe trend filter, and an optional ATR-based volatility filter to suppress signals during dead, choppy conditions. This turns a scoring model into a usable end-to-end signal-and-management framework rather than a standalone oscillator.
🔬 Methodology and Concepts
• Trend Leg
The trend component is built from three EMAs — Fast, Slow, and Macro — calculated with a manual recursive EMA function rather than the built-in, giving explicit control over the smoothing seed. Four conditions are checked: whether the Fast EMA sits above (or below) the Slow EMA, whether price trades above (or below) the Macro EMA, and whether the Fast and Slow EMA slopes (measured as simple rate-of-change over a lookback window) are rising or falling. Each condition contributes a fixed point value toward either the bullish or bearish trend sub-score, weighted so that the Fast/Slow EMA relationship and the price-vs-Macro relationship carry the most influence, with slope direction acting as a secondary confirmation.
• Momentum Leg
Momentum blends RSI positioning relative to a configurable midline, MACD line-vs-signal crossover state, and MACD histogram direction (rising or falling versus the prior bar). Each of the three contributes roughly a third of the momentum sub-score, meaning momentum only reads as strongly bullish or bearish when oscillator position, trigger-line relationship, and histogram acceleration all agree.
• Volume Leg
Volume scoring looks for two things: whether current volume exceeds a multiple of its moving average (a "spike") occurring on a candle that closed in the corresponding direction, and whether volume is simply expanding bar-over-bar in that same direction. A volume spike on a directional candle carries the larger weight, since an expanding-but-unspiked volume reading is a weaker signal of conviction than an outright surge.
• Structure Leg
This is a swing-based market-structure read. Pivot highs and lows are detected with a symmetric lookback window (a bar must be the extreme point within a window of bars on both sides to qualify), and the script tracks the two most recent pivot highs and two most recent pivot lows. A bullish structure state requires both the pivot highs and pivot lows to be printing progressively higher (higher highs, higher lows); a bearish state requires the mirror condition. Separately, the script tracks a "break of structure" — price closing beyond the last confirmed pivot high or low in a direction that differs from the currently tracked structural bias — as an additional, heavier-weighted structural signal.
• Composite Scoring
The four leg scores are combined using a weighted average, where the weights (Trend / Momentum / Volume / Structure) are fully configurable and normalized against their own sum, so the four percentages do not need to add to exactly 100 to remain internally consistent. The result is a Bull Score and a Bear Score, each independently ranging from 0–100, which are then bucketed into Strong, Medium, Weak, or None tiers based on two adjustable thresholds.
• Signal Confirmation Logic
A raw long or short condition requires the relevant score to clear the Medium threshold, the gap between the bull and bear scores to exceed a minimum separation (preventing signals when both sides are nearly tied), an optional higher-timeframe trend agreement check, an optional minimum-volatility check using ATR as a percentage of price, and a minimum bar-count since the last signal in that direction. Signals are only confirmed on a closed bar (barstate.isconfirmed), so the plotted signal state does not repaint on the current, still-forming bar.
• Higher-Timeframe Filter
When enabled, the script requests the prior, fully closed value of price and a slow EMA from a higher timeframe using an offset lookback, which is the standard non-repainting method for pulling higher-timeframe context — it deliberately reads the last confirmed HTF bar rather than the in-progress one, so this filter does not introduce forward-looking bias.
🎨 Visual Guide
• Heatmap Candles
When enabled, candle bodies, wicks, and borders are recolored using the Bull/Bear/Neutral color inputs based on which composite score currently leads and whether it clears the Medium tier — teal-family for a leading bull score at or above Medium, red-family for a leading bear score at or above Medium, and gray for anything below that threshold on both sides.
• EMA Lines
Three plotted lines track the Fast EMA (blue by default), Slow EMA (orange by default), and Macro EMA (purple by default). Their relative position and slope are the visual counterpart of the Trend Leg's underlying math.
• Score Labels
When a long signal fires, a label appears below that bar showing the rounded Bull Score. When a short signal fires, a label appears above that bar showing the rounded Bear Score. These give an at-a-glance read of how strong the triggering signal was without opening the dashboard.
• Trade Levels
On a confirmed signal, the script draws a full set of horizontal levels: a Stop-Loss line (red, with an "✕ SL" label), an Entry line (blue dashed, "▶ Entry" label), and three Take-Profit lines at increasing R:R multiples (teal dashed, "◆ TP1", "✦ TP2", "◆ TP3" labels, with opacity increasing from TP1 to TP3). Shaded fills connect Entry-to-Stop (risk zone) and Entry-to-TP3 (reward zone) so the risk/reward geometry is visible at a glance. These levels extend forward automatically as new bars form and are replaced whenever a fresh signal fires, unless the Lock Signal input is enabled, in which case the current level set is frozen and new signals are suppressed from redrawing them.
• Dashboard
An optional on-chart table (position configurable to any corner) summarizes, per bar: the current lock state, the Bull Score and Bear Score as filled progress bars with a percentage, the Bull Tier and Bear Tier classification, each of the four leg scores as its own progress bar, the current volume ratio versus its moving average, and the current ATR as a percentage of price. The progress bars use a three-color scale (teal / amber / red) based on how far the underlying reading sits from its maximum, giving a quick visual read of leg strength without needing to interpret raw numbers.
📖 How to Use
A long condition is flagged only when the Bull Score clears the Medium threshold, leads the Bear Score by at least the configured minimum gap, and passes whichever optional filters (HTF trend, volatility) are enabled — the mirror logic applies to short conditions. The dashboard's per-leg bars are useful for judging signal quality beyond the headline score: a Strong-tier signal backed by all four legs reading high is generally a more complete confluence than one where the composite score is inflated mostly by a single leg such as Volume.
The Lock Signal input is intended for reviewing a specific historical signal's levels without them being overwritten as price continues to move — enable it to freeze the current Entry/SL/TP level set in place, and disable it to resume normal level updates on the next fresh signal.
Because trade levels are geometric projections from ATR and R:R inputs at the moment of signal, not a guarantee of price reaching those levels, they should be read as a structured reference for planning position size and exits rather than a forecast.
⚙️ Inputs and Settings
• Core Settings
Strong and Medium thresholds define the score tiers; the Minimum Bars Gap enforces a cooldown between signals in the same direction; the Minimum Score Gap requires clear separation between Bull and Bear scores before either can fire; the four Leg Weight inputs control how much each of Trend, Momentum, Volume, and Structure contributes to the composite score.
• Trend Leg
Fast, Slow, and Macro EMA lengths, plus the lookback window used to measure EMA slope direction.
• Momentum Leg
RSI length and midline, plus MACD fast/slow/signal lengths.
• Volume Leg
The moving-average length volume is compared against, and the multiplier that defines a "spike."
• Structure Leg
The symmetric lookback window used to confirm a swing pivot high or low.
• Filters
Optional higher-timeframe trend agreement filter (with selectable timeframe) and an optional ATR-based minimum-volatility filter, each of which can independently suppress signals that would otherwise fire.
• Trade Tools
ATR multiplier for stop distance, R:R multiples for the three take-profit levels, a toggle to show or hide the drawn levels, and the Lock Signal toggle to freeze the current level set.
• Visuals
Toggles for heatmap candle coloring, EMA line visibility, and score labels on signals.
• Dashboard
Toggle to show or hide the on-chart summary table and a dropdown to choose which corner it docks to.
• Alerts
Custom text strings for the long, short, close-long, and close-short alert JSON payloads, letting the alert output be adapted to match the syntax expected by an external webhook or automation endpoint.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
• Trend-Following Theory
The EMA-based trend leg draws on the long-standing empirical observation, formalized in academic momentum and trend-following literature, that asset prices exhibit serial correlation over intermediate horizons — trends, once established, have historically had a higher-than-random probability of persisting over the following period. Dual and triple moving-average crossover systems are among the earliest systematized expressions of this idea, and the slope-of-the-average component reflects the concept of trend "velocity" used in later technical and quantitative trend-strength research.
• Oscillator and Convergence-Divergence Theory
RSI, developed by J. Welles Wilder, is grounded in the idea that the ratio of average gains to average losses over a lookback window reflects the relative strength of buying versus selling pressure, oscillating within bounds that can indicate overbought/oversold conditions or, as used here, simple directional bias relative to a midline. MACD, developed by Gerald Appel, formalizes convergence and divergence between two exponential averages of differing sensitivity; the histogram (the difference between the MACD line and its own signal line) captures acceleration or deceleration in that relationship, which is the specific behavior this script isolates when checking histogram direction.
• Volume-Price Confirmation Theory
The volume leg reflects classical Dow Theory and later volume-price-analysis principles holding that price moves accompanied by above-average volume carry more conviction than moves on thin volume, since volume is treated as a proxy for the degree of market participation and consensus behind a price change.
• Market Structure and Price-Action Theory
The structure leg operationalizes the concept of market structure as used in classical Dow Theory (a sequence of higher highs and higher lows defining an uptrend, and the reverse for a downtrend) and its more recent "break of structure" formalization in price-action and smart-money-concept methodologies, where a close beyond a prior swing point is treated as evidence of a shift in the controlling side of the market.
• Weighted Multi-Factor Aggregation
Combining independently normalized sub-scores via user-adjustable weights mirrors the logic of multi-factor models in quantitative finance, where distinct signal families (trend, momentum, volume, structure/mean-reversion) are each scored on a common scale and then blended, rather than relying on any single factor in isolation — the underlying premise being that signal families with low correlation to one another produce more robust composite readings than any single family alone.
⚠️ 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. We 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

Buy-Sell Signals using Multi-Logic Trading System
📈 Advanced Multi-Logic Trading System with Trend, Momentum, Breakout and Risk Management
The **Buy-Sell Signals using Multi-Logic Trend, Momentum & Breakout System** is a multi-condition trading indicator designed to help traders identify structured trading opportunities across different market environments.
Unlike a conventional indicator that depends on only one moving-average crossover or oscillator, Buy-sell with Multi-logic Trading Sytem combines:
✅ Market structure and EMA alignment
✅ Higher-timeframe trend confirmation
✅ Session VWAP positioning
✅ RSI and MACD momentum
✅ Bollinger Band positioning and volatility
✅ Volume expansion and OBV direction
✅ Range-breakout confirmation
✅ Sideways-market mean reversion
✅ Dynamic stop-loss and target calculations
✅ Signal management and cooldown controls
The objective is not to produce the maximum number of signals.
The objective is to filter market noise and highlight situations where multiple independent conditions support the same directional view.
━━━━━━━━━━━━━━━━━━━━
🧠 How the Indicator Reads the Market
Buy-sell with Multi-logic Trading Sytem continuously classifies the chart into one of four market conditions:
📈 BULLISH TREND
A bullish trend is identified when:
**Price > Fast EMA > Medium EMA > Slow EMA**
With the default settings, this represents:
**Price > EMA 20 > EMA 50 > EMA 200**
This structure indicates that short-term, medium-term and long-term price positioning is aligned in the bullish direction.
------------------------------------------------
📈 BEARISH TREND
A bearish trend is identified when:
**Price < Fast EMA < Medium EMA < Slow EMA**
With the default settings:
**Price < EMA 20 < EMA 50 < EMA 200**
This indicates complete bearish alignment across the three trend layers.
------------------------------------------------
📈 RANGE / SIDEWAYS
The system studies the previous trading range over the selected Range Lookback.
The current candle is excluded from this range calculation. This allows the indicator to identify a genuine close outside the previous range instead of comparing the breakout candle against a range that already includes it.
A market is treated as sideways when:
• The previous range width remains within the selected percentage threshold
• Complete bullish EMA alignment is absent
• Complete bearish EMA alignment is absent
------------------------------------------------
📈 Transition
The Transition condition appears when the market is neither properly trending nor qualifying as a defined range.
This commonly happens when:
• EMAs are crossing or compressing
• Price repeatedly moves around the EMA ribbon
• The previous trend is weakening
• A new trend has not yet become established
• Price is moving between range and trend conditions
Transition is usually the least reliable environment for mechanical signals.
━━━━━━━━━━━━━━━━━━━━
⚙️ The Four Entry Logic Engines
Buy-sell with Multi-logic Trading System contains four separate entry engines.
Each engine is designed for a different type of market behaviour.
📈 1. Trend-Following Logic
Trend-following logic is designed to participate in an already established directional move.
A bullish trend setup requires:
• Bullish EMA alignment
• Minimum bullish confluence score
• Higher-timeframe bullish permission
• Price above session VWAP
A bearish trend setup requires the opposite conditions.
🔷 Bullish confluence score
The bullish score contains six independent components:
1. Bullish EMA trend alignment
2. RSI positioned between 45 and 72
3. MACD above its signal line with a positive histogram
4. Price above the Bollinger Band basis
5. High volume with bullish OBV behaviour
6. A bullish candle closing above the previous structural swing high
🔷 Bearish confluence score
The bearish score also contains six components:
1. Bearish EMA trend alignment
2. RSI positioned between 28 and 55
3. MACD below its signal line with a negative histogram
4. Price below the Bollinger Band basis
5. High volume with bearish OBV behaviour
6. A bearish candle closing below the previous structural swing low
The **Minimum Trend Confluence** setting determines how many of these six conditions must agree.
🔷 When to use Trend-Following Logic
👉Use it when:
• The EMA ribbon is properly expanded
• Price is making higher highs and higher lows in an uptrend
• Price is making lower highs and lower lows in a downtrend
• Pullbacks are respecting the fast or medium EMA
• Price is consistently holding on the correct side of VWAP
• The higher-timeframe trend supports the trade direction
👉 When to avoid it
Avoid relying on trend logic when:
• EMAs are flat or repeatedly crossing
• Price is trapped inside a narrow range
• The market-condition card shows Transition
• A signal appears directly below major resistance
• A signal appears directly above major support
• Price has already completed a large impulsive move without a pullback
━━━━━━━━━━━━━━━━━━━━
📈 2. Momentum Logic
Momentum logic is designed to detect acceleration before complete trend confluence becomes necessary.
🔷For bullish momentum, the indicator looks for:
• Price above the fast EMA
• RSI above 52
• Positive MACD histogram
• MACD histogram increasing from the previous candle
• Bullish OBV positioning
• Volume confirmation when usable volume is available
• Bullish higher-timeframe permission
• Price above VWAP
🔷Bearish momentum uses the opposite conditions.
Momentum logic can respond earlier than full trend logic because it does not require the complete EMA 20–50–200 alignment or the minimum six-part trend score.
👉 When to use Momentum Logic
Momentum logic is most useful when:
• Price is emerging from consolidation
• A fresh intraday directional move is developing
• Volume is expanding with price
• MACD momentum is accelerating
• Price has reclaimed or rejected VWAP decisively
• A pullback is followed by renewed directional strength
• The higher timeframe already supports the intended direction
👉 When to avoid it
Avoid momentum entries when:
• The momentum candle is unusually extended
• Price is entering a major higher-timeframe supply or demand zone
• Volume expansion is caused by a news spike
• MACD is positive but price structure remains weak
• Price repeatedly crosses VWAP
• The chart has unreliable or unavailable volume data
Momentum logic is especially dependent on meaningful volume and OBV behaviour. It is therefore generally better suited to liquid stocks, indices, futures and other actively traded instruments.
━━━━━━━━━━━━━━━━━━━━
📈 3. Range-Breakout Logic
The breakout engine is designed to identify confirmed movement outside a previously established range.
It does not trigger merely because price trades a few ticks outside the range.
A bullish breakout requires:
• The previous market qualified as a range
• Price closes above the previous range high
• The close exceeds the range by the selected ATR buffer
• The previous candle had not already closed above the range
• The breakout candle closes strongly toward its high
• RSI is above 50
• MACD is bullish
• Volume confirms the move when available and required
• Price is above VWAP
The bearish breakout logic uses the opposite conditions.
🔷 Breakout Confirmation Buffer
The ATR buffer prevents the system from treating a marginal move above or below the boundary as a valid breakout.
A value of **0.15 ATR** means price must close beyond the range boundary by an additional 15% of the current ATR.
Increasing this value creates fewer but more selective breakout signals.
🔷 Breakout Candle Close Position
The candle must also close strongly in the breakout direction.
With a value of **0.60**:
• A bullish breakout candle must close in the upper 40% of its total range
• A bearish breakout candle must close in the lower 40% of its total range
This helps reject candles that break a level intrabar but leave a large rejection wick.
🔷 Important HTF behaviour
The higher-timeframe EMA filter directly controls the Trend and Momentum engines.
The Range-Breakout engine instead uses its own range, ATR, candle-strength, RSI, MACD, volume and VWAP confirmation.
Therefore, traders should still manually inspect the higher-timeframe structure before accepting a breakout signal.
👉 When to use Breakout Logic
Use breakout logic when:
• Price has formed a clean and visible range
• Range boundaries have been tested multiple times
• Bollinger Band width has contracted before expansion
• Volume increases during the breakout
• The breakout candle closes outside the level
• There is sufficient room before the next major structure
• VWAP supports the breakout direction
👉 When to avoid it
Avoid breakout entries when:
• The range is poorly defined
• Price is breaking directly into higher-timeframe resistance or support
• The breakout candle leaves a large rejection wick
• Volume is weak or declining
• Price has already moved far beyond the range before entry
• The breakout occurs during an irregular news candle
• The range threshold is set too loosely and ordinary price movement is being classified as consolidation
━━━━━━━━━━━━━━━━━━━━
📈 4. Sideways Mean-Reversion Logic
Mean reversion is disabled by default because it represents a different trading philosophy from trend-following.
Instead of expecting price to continue moving away from fair value, this engine looks for rejection near the outer areas of a sideways range.
The range is divided into zones:
• Lower reversion area near the bottom 20% of the range
• Upper reversion area near the top 20% of the range
A bullish mean-reversion setup requires:
• Mean-reversion logic enabled
• Market classified as sideways
• Range sufficiently wide relative to ATR
• Price testing the lower reversion zone
• Price closing back above that zone
• A bullish rejection candle
• A sufficiently large lower wick
• RSI below 38
• RSI turning upward when the RSI-turn filter is enabled
• Volume permission
A bearish mean-reversion setup requires the opposite conditions near the upper range zone, with RSI above 62 and turning downward.
🔷 Important Mean-Reversion Behaviour
Mean-reversion trades are intentionally based on sideways-market rejection.
They do not use the higher-timeframe trend or VWAP filter in the same way as the Trend and Momentum engines.
This is logical because a range-fading trade may temporarily move against the prevailing higher-timeframe direction.
However, it also means mean-reversion mode should be activated only when the trader has independently confirmed that the market is genuinely balanced and range-bound.
👉 When to use Mean Reversion
Use it when:
• The market has clear horizontal boundaries
• EMA alignment is absent
• Price repeatedly rejects both sides of the range
• The range is wide enough to offer practical reward
• RSI reaches an extreme and begins turning
• The rejection candle closes back inside the range
• No major breakout catalyst is expected
👉 When not to use it
Disable mean reversion when:
• The market is strongly trending
• The EMA ribbon is expanding
• Price is forming one-sided momentum candles
• Volume is increasing near the range boundary
• A breakout is supported by broader-market direction
• Price is repeatedly pressing one boundary without meaningful rejection
Repeated testing of one range boundary can represent pressure accumulation rather than a reversal opportunity.
━━━━━━━━━━━━━━━━━━━━
🔍 Higher-Timeframe Trend Filter
The higher-timeframe filter compares price with an EMA calculated on the selected higher timeframe.
👉When enabled:
• Long Trend and Momentum setups require bullish HTF positioning
• Short Trend and Momentum setups require bearish HTF positioning
The higher-timeframe calculation is designed to use confirmed information rather than future-looking data.
🔷 Suggested timeframe combinations
These are practical starting points and should be tested for each instrument:
• 3-minute chart → 15-minute or 30-minute HTF
• 5-minute chart → 30-minute or 60-minute HTF
• 15-minute chart → 60-minute or 4-hour HTF
• 30-minute chart → 4-hour HTF
• 1-hour chart → 4-hour or Daily HTF
• 4-hour chart → Daily or Weekly HTF
A closer HTF produces more opportunities.
A larger HTF produces fewer but more structurally selective opportunities.
━━━━━━━━━━━━━━━━━━━━
📍 Session VWAP Filter
VWAP acts as the indicator’s intraday fair-value reference.
👉When enabled:
• Long Trend, Momentum and Breakout setups require price above VWAP
• Short Trend, Momentum and Breakout setups require price below VWAP
This reduces situations where a bullish technical setup appears below intraday fair value or a bearish setup appears above it.
👉Keep VWAP enabled when:
• Trading intraday
• Trading indices or liquid stocks
• Trading momentum continuation
• Trading opening-range or consolidation breakouts
• Filtering counter-directional entries
👉 Consider disabling VWAP when:
• Trading higher timeframes where session VWAP has less relevance
• Trading instruments with irregular sessions
• Testing a pure swing-trading model
• Using another manually defined fair-value framework
Disabling VWAP increases flexibility but may also increase counter-directional signals.
━━━━━━━━━━━━━━━━━━━━
📊 Volume and OBV Confirmation
The indicator compares current volume with its moving average.
With the default multiplier of **1.5**, high volume means the current volume is at least 1.5 times the selected average volume.
OBV is then compared with its own moving average to determine whether cumulative volume behaviour supports buyers or sellers.
The system is designed so that missing volume does not automatically block every setup.
However, symbols with reliable exchange volume are preferred, particularly when using Momentum Logic.
🔷 Volume Multiplier Interpretation
• 1.20–1.40: More responsive, but more noise
• 1.50: Balanced default
• 1.70–2.00: Strong expansion required
• Above 2.00: Very selective and mainly suited to exceptional participation
━━━━━━━━━━━━━━━━━━━━
🛡️ Stop-Loss and Target Engine
Every confirmed signal creates an active entry, stop-loss and target.
The indicator provides three stop-loss methods.
🔷 Structure + ATR
👉For a long trade:
The stop is placed below the previous structural swing low with an additional ATR buffer.
👉For a short trade:
The stop is placed above the previous structural swing high with an ATR buffer.
This is generally the preferred method for price-action and structure-based trading.
🔷ATR Stop
The stop is calculated using a fixed ATR multiple from the entry.
This method adapts to current volatility without depending on the location of a previous swing.
It can be useful for:
• Momentum setups
• Instruments with irregular swing structures
• Fast-moving markets
• Systematic risk standardisation
🔷 Fixed Percentage Stop
The stop is placed at a fixed percentage from entry.
This is simple but does not adjust to changing volatility.
It should be used carefully because the same percentage may be too tight in a volatile market and unnecessarily wide in a quiet market.
━━━━━━━━━━━━━━━━━━━━
📈 Target Methods
🔷Risk-to-Reward Target
The target is calculated from the actual distance between entry and stop.
With a 1.5 risk-to-reward ratio, the target is 1.5 times the defined trade risk.
🔷 ATR Target
The target is positioned at a selected ATR multiple from entry.
This can be useful for momentum trades where price expansion is expected.
🔷 Fixed Percentage Target
The target is placed at a fixed percentage from entry.
This is straightforward but less adaptive than ATR or structure-based calculations.
━━━━━━━━━━━━━━━━━━━━
🎯 Preferred Risk Settings
🔷 Structure-Based Intraday Trading
• Stop Method: Structure + ATR
• Structure ATR Buffer: 0.15–0.25
• Target Method: Risk:Reward
• Risk:Reward: 1.5–2.0
🔷 Momentum Trading
• Stop Method: ATR
• Stop ATR Multiplier: 1.2–1.8
• Target Method: ATR or Risk:Reward
• Target ATR Multiplier: 2.0–3.0
🔷 Swing Trading
• Stop Method: Structure + ATR
• Swing Lookback: 10–20
• Structure ATR Buffer: 0.20–0.40
• Target Method: Risk:Reward
• Risk:Reward: 1.5–2.5
🔷 Mean-Reversion Trading
• Stop Method: Structure + ATR or ATR
• Use a stop beyond the rejected range boundary
• Avoid excessively wide targets
• Consider the opposite side or midpoint of the range as practical structure
These values are starting points, not universal settings. Different instruments have different volatility and structural characteristics.
━━━━━━━━━━━━━━━━━━━━
🚦 Signal-Control System
Buy-sell with Multi-logic Trading System includes several controls to prevent repeated or conflicting signals.
👉 Minimum Bars Between Signals
The cooldown prevents the indicator from producing another signal immediately after the previous one.
Default: **5 bars**
Lower values create more frequent signals.
Higher values reduce repeated entries during the same move.
👉 Fresh Setup Only
When enabled, a signal appears only when the complete setup changes from false to true.
It prevents the indicator from repeatedly signalling on every candle while the same condition remains active.
This should normally remain enabled.
👉 Wait for SL or Target Before Next Signal
When enabled, the indicator waits for the active stop or target to be touched before accepting another trade.
This creates a cleaner one-trade-at-a-time workflow.
It is the preferred setting for discretionary traders and alert-based execution.
👉 Allow Opposite Signal
This setting becomes relevant when “Wait for SL/Target” is disabled.
It determines whether an opposite signal can replace the current directional trade before the original levels are completed.
━━━━━━━━━━━━━━━━━━━━
✨ Visual Features
3D Gradient Trend Ribbon
Glow Buy and Sell Markers
Signals are generated after the chart candle is confirmed.
Entry Beam
3D Risk and Reward Zones
VWAP Glow Line
Gradient Candle Coloring
━━━━━━━━━━━━━━━━━━━━
📋 Dashboard Explained
The dashboard provides a summary of current chart conditions.
Market Condition
Bull Score and Bear Score
RSI
ATR Percentage
Volume Ratio
Bollinger Band Width
HTF Trend
VWAP
Active Trade
SL / TP
Win Rate
The dashboard win rate is an internal chart-touch statistic based on whether displayed targets or stops were reached.
For reliable validation, traders should independently review historical trades and conduct proper testing.
━━━━━━━━━━━━━━━━━━━━
🔔 Alert Features
Buy-sell with Multi-logic Trading System provides alert conditions for:
• Confirmed BUY signal
• Confirmed SELL signal
• Active stop-loss touched
• Active target touched
Dynamic BUY and SELL alerts can also include:
• Symbol
• Entry price
• Stop-loss
• Target price
Signals and dynamic alerts are generated once per confirmed candle close.
For PulseWire alerts, select the indicator and choose the required alert condition.
━━━━━━━━━━━━━━━━━━━━
📌 Preferred Logic According to Market View
👉 Strong Bullish Market
Recommended:
• Trend Logic: ON
• Momentum Logic: ON
• Breakout Logic: Optional
• Mean Reversion: OFF
• HTF Filter: ON
• VWAP Filter: ON
• Minimum Confluence: 4 or 5
Focus mainly on long signals, pullbacks and bullish consolidation breakouts.
👉Strong Bearish Market
Recommended:
• Trend Logic: ON
• Momentum Logic: ON
• Breakout Logic: Optional
• Mean Reversion: OFF
• HTF Filter: ON
• VWAP Filter: ON
• Minimum Confluence: 4 or 5
Focus mainly on short signals, failed recoveries and bearish range breakdowns.
👉 Developing Trend
Recommended:
• Trend Logic: ON
• Momentum Logic: ON
• Breakout Logic: ON
• Mean Reversion: OFF
• Minimum Confluence: 4
• Breakout Buffer: 0.10–0.20 ATR
Momentum or breakout logic may identify the move before complete EMA alignment develops.
👉 Established Trend
Recommended:
• Trend Logic: ON
• Momentum Logic: Optional
• Breakout Logic: Optional
• Mean Reversion: OFF
• Minimum Confluence: 4–5
• Structure + ATR stop
Look for continuation after controlled pullbacks rather than chasing extended candles.
👉 Clean Sideways Range
Recommended:
• Trend Logic: OFF or used cautiously
• Momentum Logic: OFF
• Breakout Logic: ON
• Mean Reversion: ON only for confirmed range rejection
• RSI Turn Requirement: ON
• Reversion Wick Ratio: 0.35–0.50
Use either range fading or breakout trading according to price behaviour—but avoid treating both as equally valid at the same moment.
👉 Transition or Choppy Market
Recommended:
• Increase Minimum Confluence
• Increase cooldown bars
• Use HTF and VWAP filters
• Keep Mean Reversion OFF unless a clear range forms
• Wait for structure to become clearer
Sometimes the best setting in a Transition market is simply to avoid trading.
━━━━━━━━━━━━━━━━━━━━
🧩 Suggested Presets
🔶 Balanced Intraday — 5 or 15 Minutes
• EMA: 20 / 50 / 200
• HTF: 60 minutes
• HTF Filter: ON
• VWAP Filter: ON
• Trend Logic: ON
• Momentum Logic: ON
• Breakout Logic: ON
• Mean Reversion: OFF
• Minimum Confluence: 4
• Volume Multiplier: 1.5
• Breakout Buffer: 0.15 ATR
• Breakout Close Position: 0.60
• Stop: Structure + ATR
• Target: 1.5 Risk:Reward
• Cooldown: 5 bars
• Fresh Setup Only: ON
• Wait for Exit: ON
🔶 Precision Intraday
• HTF Filter: ON
• VWAP Filter: ON
• Minimum Confluence: 5
• Volume Multiplier: 1.7–2.0
• Breakout Buffer: 0.20–0.30 ATR
• Breakout Close Position: 0.70–0.80
• Fresh Setup Only: ON
• Wait for Exit: ON
This preset produces fewer signals but demands stronger confirmation.
🔶 Fast Momentum Trading
• Trend Logic: Optional
• Momentum Logic: ON
• Breakout Logic: ON
• Mean Reversion: OFF
• HTF Filter: ON
• VWAP Filter: ON
• Volume Multiplier: 1.3–1.5
• Cooldown: 2–4 bars
• Stop: ATR
• Target: ATR or Risk:Reward
Fast settings should only be used on liquid instruments because they are more sensitive to lower-timeframe noise.
🔶 Range-Breakout Trading
• Trend Logic: Optional
• Momentum Logic: Optional
• Breakout Logic: ON
• Mean Reversion: OFF
• Breakout Buffer: 0.15–0.30 ATR
• Close Position: 0.65–0.80
• Require Breakout Volume: ON
• Volume Multiplier: 1.5–2.0
• VWAP Filter: ON
Manually confirm that sufficient space exists beyond the range.
🔶 Sideways Mean Reversion
• Trend Logic: OFF
• Momentum Logic: OFF
• Breakout Logic: Optional
• Mean Reversion: ON
• Minimum Range Width: 1.0–1.5 ATR
• Rejection Wick Ratio: 0.35–0.50
• RSI Turn Requirement: ON
• Fresh Setup Only: ON
• Wait for Exit: ON
Do not use this preset when the range boundary is being attacked with expanding volume.
🔶 Swing Trading — 1 Hour or 4 Hours
• EMA: 20 / 50 / 200
• HTF: 4 Hour, Daily or Weekly
• HTF Filter: ON
• VWAP Filter: Optional
• Trend Logic: ON
• Momentum Logic: ON
• Breakout Logic: ON
• Mean Reversion: Usually OFF
• Minimum Confluence: 4–5
• Swing Lookback: 10–20
• Stop: Structure + ATR
• Target: Risk:Reward
• Risk:Reward: 1.5–2.5
• Cooldown: 3–5 bars
━━━━━━━━━━━━━━━━━━━━
⛔ When Not to Use the Indicator
Avoid taking signals mechanically when:
• The market-condition card shows an unstable Transition phase
• Price is moving inside a very narrow and noisy area
• A signal is directly facing major higher-timeframe structure
• Price is highly extended from the EMA ribbon or VWAP
• The signal candle is abnormally large
• A major economic event is creating unpredictable volatility
• The selected instrument is illiquid
• Volume data is unreliable
• Bid–ask spreads are unusually wide
• The chart timeframe is too low for the instrument
• There is insufficient reward before the next support or resistance
• The stop required by structure is larger than the trader’s permitted risk
A technically valid signal is not automatically a good trade.
Location, liquidity, market context and risk remain essential.
━━━━━━━━━━━━━━━━━━━━
✅ Recommended Trading Workflow
Step 1 : Identify the market condition
Determine whether the chart is trending, ranging or transitioning.
Step 2 : Check the higher timeframe
Confirm the broader directional structure before using Trend or Momentum signals.
Step 3 : Check VWAP location
For intraday trading, prefer longs above VWAP and shorts below VWAP.
Step 4 : Read the dashboard
Compare:
• Bull and Bear scores
• RSI
• ATR percentage
• Volume ratio
• Bollinger Band width
• Higher-timeframe trend
Step 5 : Identify which logic suits the market
Do not use mean reversion in a strong trend.
Do not depend only on trend logic in an unstructured range.
Step 6 : Check trade location
Identify nearby support, resistance, previous-day levels, liquidity zones and higher-timeframe structure.
Step 7 : Evaluate risk
Check whether the displayed stop is logically placed and whether sufficient reward is available.
Step 8 : Wait for candle confirmation
Avoid anticipating a signal before the candle closes.
━━━━━━━━━━━━━━━━━━━━
⚠️ Important Notes
Buy-sell with Multi-logic Trading System is a decision-support indicator, not an automatic guarantee of profitable trades.
The indicator does not know:
• Your account size
• Your maximum permitted risk
• Whether a market-moving announcement is approaching
• Whether a nearby level is personally significant to your analysis
• Whether an option contract has suitable liquidity, delta or implied volatility
• Whether the displayed trade fits your trading plan
When several logic engines are enabled together, a BUY or SELL signal can originate from Trend, Momentum, Breakout or Mean-Reversion conditions.
The current signal marker does not separately label which internal engine generated it. The market condition, dashboard and surrounding price action should therefore be used to interpret the setup.
Always test the indicator on the intended market and timeframe before using it in live trading.
━━━━━━━━━━━━━━━━━━━━
📈 Final Perspective
Buy-sell with Multi-logic Trading System is designed around one central idea:
**Trade according to the current market regime instead of forcing the same strategy into every market.**
Use Trend Logic when structure is aligned.
Use Momentum Logic when participation and acceleration are increasing.
Use Breakout Logic when price is escaping a well-defined range with confirmation.
Use Mean Reversion only when the market is genuinely balanced and rejecting its boundaries.
The indicator can organise information, filter conditions and define structured risk—but disciplined execution, position sizing and market awareness remain the trader’s responsibility.
------------------------------------------------
**Educational use only. This indicator does not provide financial advice or guarantee future results.**
Indicator

Percentage Price Oscillator Navigator [MarkitTick]💡 A highly multi-dimensional momentum and trend-tracking suite. Rather than relying on singular data points, this comprehensive ecosystem fuses normalized momentum oscillators, dynamic volatility filters, and automated risk-management frameworks into a single, cohesive interface. Designed for meticulous market analysts, it provides a strictly confirmed, non-repainting environment to identify structural shifts, validate trend strength, and project actionable risk-to-reward parameters.
● ✨ Originality and Utility
Standard momentum oscillators often suffer from noise in ranging environments and fail to contextualize signals with prevailing market conditions. This tool distinguishes itself by integrating a robust "Smart Filter" engine directly into the core momentum calculation. By dynamically cross-referencing directional movement strength, average true range expansions, and volume surges, it ensures that momentum shifts are only validated when supported by underlying market participation. Furthermore, the inclusion of a fully automated, dynamic risk-to-reward leveling system transforms a traditional oscillator into a complete trade management overlay, complete with a real-time heads-up display dashboard and fully formatted JSON alert payloads for external automation.
● 🔬 Methodology and Concepts
The foundational logic relies on the proportional divergence between a faster and slower moving average, calculating the percentage difference to create a normalized oscillator. This normalization is critical as it allows for consistent momentum evaluation across diverse asset classes regardless of their nominal price value.
To prevent the common pitfall of reverse-engineering and to protect the underlying intellectual architecture, the internal mathematical sequences remain fully abstracted. The methodology employs a cascading verification process:
First, the core normalized divergence is measured against its own smoothed signal line to identify baseline directional shifts.
Second, a Multi-Timeframe (MTF) confirmation engine evaluates the macro trend. This utilizes a strict, offset historical data request architecture, ensuring zero future-data leakage or repainting artifacts.
Third, the Smart Filter engine evaluates atmospheric market conditions. It demands that background volatility, average directional strength, and volume participation meet minimum threshold requirements before validating any structural momentum shift.
Finally, the system utilizes strict bar-close confirmation logic. Signals are exclusively generated when the evaluation bar has permanently closed, ensuring unalterable historical accuracy.
● 🎨 Visual Guide
The visual interface is engineered to maximize data delivery while maintaining chart clarity.
• Oscillator Elements
PPO Line (Solid Blue): Represents the primary normalized momentum metric.
Signal Line (Solid Orange): A smoothed derivative of the primary momentum, acting as the baseline for crossover events.
Histogram Columns: Visualizes the spread between the PPO and Signal lines. Rising positive momentum is colored in solid teal, while weakening positive momentum fades to a transparent teal. Conversely, expanding negative momentum is solid red, fading to transparent red as bearish momentum wanes.
Zero Line (Gray): The equilibrium point delineating macro bullish versus bearish environments.
• Chart Overlay Elements
Heatmap Candles: The main chart candles are dynamically colored (Teal for positive momentum, Red for negative momentum) based directly on the histogram's state, instantly aligning price action with underlying momentum.
Signal Markers: Small, precise triangles appear at the exact bar of a confirmed momentum crossover (Teal triangle pointing up for bullish, Red pointing down for bearish).
Risk Management Levels: Upon a confirmed signal, the tool draws horizontal projections. The Stop Loss is a thick solid red line. The Entry is a dashed blue line. Take Profit targets (TP1, TP2, TP3) are plotted as dashed teal lines of varying opacity. Colored background fills visually represent the geometric risk and reward zones.
• Heads-Up Dashboard
A fixed tabular dashboard provides a real-time diagnostic readout of all internal states, including current momentum values, moving average gap percentages (visualized as a progress bar), higher-timeframe alignment, and the active positional status with exact level coordinates.
● 📖 How to Use
This tool is designed to act as a primary navigational compass for market structure. Traders should observe the histogram for early signs of momentum deceleration (indicated by fading column colors). A validated setup occurs when the primary momentum line crosses the signal line, strictly accompanied by a visual marker on the chart.
Because the system employs strict bar-close confirmation, traders must wait for the bar to finalize before interpreting a signal as valid. Once a signal fires, the risk management levels automatically project onto the chart. The user can utilize the "Lock Signal" feature to freeze these specific entry and exit levels on the chart, preventing the system from calculating subsequent, potentially conflicting signals while a trade is actively being managed. The comprehensive JSON alerts can be mapped directly to external execution platforms, utilizing the dynamically generated Entry, Stop Loss, and Take Profit price coordinates embedded within the payload.
● ⚙️ Inputs and Settings
The configuration panel is highly modular, categorized logically for precise tuning:
• Core
Defines the lookback periods for the fast, slow, and signal moving averages, as well as the calculation type (SMA or EMA) and the source price data.
• Filters
The gatekeeper settings. Users can toggle and tune the Higher Timeframe confirmation, ADX strength threshold, ATR volatility multiplier, and Volume moving average requirements. A histogram slope confirmation can also be activated to ensure structural momentum is moving in the correct direction.
• Trade Tools
Controls the geometric risk overlay. Users define the Stop Loss distance via an ATR multiplier and set precise Risk:Reward ratios for all three Take Profit targets. The "Lock Signal" toggle is located here, allowing users to freeze the active projection.
• Visuals & Dashboard
Comprehensive toggles to enable or disable specific UI elements such as the histogram, heatmap candles, chart signals, and the diagnostic dashboard, allowing for a fully customized workspace.
• Alerts
Input fields to define custom JSON action tags for integration with third-party webhooks, ensuring seamless connectivity with external systems.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The theoretical foundation of this evaluation suite rests on the synthesis of structural momentum analysis and statistical variance gating. In traditional financial modeling, momentum is frequently quantified as the first derivative of price relative to time. However, absolute price changes suffer from scalar distortion; a ten-point move in a high-valuation asset is mathematically insignificant compared to a ten-point move in a low-valuation asset. By utilizing a normalized percentage differential between dual moving averages, the tool mathematically standardizes momentum, allowing for robust, scale-invariant analysis.
Furthermore, the integration of the Smart Filter engine elevates the framework from simple linear smoothing to a multidimensional evaluation model. The inclusion of the Average Directional Index (ADX) introduces a non-directional vector strength requirement, ensuring that momentum shifts are occurring within an established trend environment rather than a stochastic mean-reversion chop. The Volatility filter, utilizing the Average True Range (ATR), acts as a statistical variance gate. It postulates that significant structural shifts require an expansion in price distribution variance; if a momentum crossover occurs during a period of localized volatility contraction, it is statistically more likely to be a false positive generated by noise rather than a genuine shift in market consensus.
Finally, the dynamic risk leveling system applies principles of geometric expectancy. By anchoring the invalidation point (Stop Loss) to the ATR, the system ensures that risk parameters are continuously adjusted to the current statistical distribution of price movement, rather than relying on arbitrary, static percentages. This creates a mathematically sound, expectancy-positive projection model that adapts fluidly to expanding and contracting market environments, enforcing a rigorous, quantitative approach to trade management.
⚠️ 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. We 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

OBV Signal Confluence [MarkitTick]💡 This advanced technical utility provides a comprehensive evaluation of market momentum by synthesizing cumulative volume flow with structural trend dynamics and dynamic support levels. Designed for rigorous market analysis, it evaluates directional shifts by demanding strict confluence across multiple dimensions, including momentum divergence, historical trend validation, and volatility expansion. Rather than relying on isolated price action, this tool builds a holistic profile of market participation, delivering a complete framework for structured trade management and robust signal verification.
● ✨ Originality and Utility
Most traditional momentum oscillators evaluate price velocity in a vacuum, completely ignoring the underlying participation required to sustain a trend. This utility stands apart by merging volume-weighted momentum with strict filtering mechanisms to evaluate the true strength of a market move. By integrating a multi-tiered filtration system, it effectively isolates high-probability directional shifts while filtering out low-participation market noise.
The utility is entirely self-contained, projecting dynamic trade management levels directly onto the chart when momentum alignment is confirmed. It seamlessly bridges the gap between raw data analysis and actionable trade management. By establishing precise entry, invalidation, and multiple target zones based on current market volatility, it transforms raw volume data into a structured operational blueprint.
Furthermore, the inclusion of a comprehensive heads-up display ensures that all underlying metrics—from momentum strength to historical trend states—are continuously aggregated and visually accessible, allowing for rapid contextual assessment without cluttering the primary analytical workspace.
● 🔬 Methodology and Concepts
This tool operates on a sophisticated, multi-layered evaluative engine. To protect the integrity of the underlying architecture, the methodology is described conceptually:
Cumulative Volume Flow: The primary engine evaluates the continuous flow of market volume, categorizing buying and selling pressure based on specific price action thresholds. This cumulative data is then smoothed against a dynamic, user-selectable baseline to establish the core momentum trajectory.
Higher Timeframe Confluence: To prevent acting on insignificant intraday fluctuations, the engine references the structural momentum of a higher timeframe. Signals are strictly gated unless the localized momentum aligns with this broader, macro-level directional bias.
Momentum Divergence Detection: The utility continuously scans for structural discrepancies between price pivot extremes and the corresponding extremes in the volume flow. When price establishes new structural boundaries without validating volume participation, the system flags these areas as potential exhaustion or reversal zones.
Volatility and Participation Filters: Trend strength and volume ratios are continuously measured against established historical averages. The engine requires both a minimum threshold of directional strength and a surge in relative volume participation to validate any momentum shift, ensuring that structural breaks are supported by actual market activity.
Dynamic Risk Profiling: Upon signal confirmation, the tool automatically calculates an invalidation level utilizing a multiplier of the underlying asset's average true volatility. Profit targets are then extrapolated from this established risk parameter, ensuring that every projected setup adheres to strict, predefined risk-to-reward ratios.
● 🎨 Visual Guide
The visual interface is designed to provide immediate contextual awareness while maintaining a clean charting environment:
Momentum Histogram: Plotted as columns, this visualizes the delta between the cumulative volume flow and its dynamic baseline. Color intensity shifts dynamically to reflect both the direction and the immediate acceleration or deceleration of the momentum.
Heat Candles: When enabled, this feature overrides the native chart candles, painting the price action to match the underlying volume momentum state, allowing for rapid visual confirmation of the current trend environment.
Divergence Markers: Distinct upward and downward triangular shapes are plotted directly on the chart to indicate areas where structural price action has diverged from the supporting volume flow.
Trade Management Levels: Upon a confirmed momentum shift, dashed horizontal lines appear to project the Entry, Stop Loss (SL), and three tiered Take Profit (TP) zones.
Risk/Reward Shading: Shaded background zones visually map the risk parameters, contrasting the invalidation zone against the projected reward territory to provide an immediate assessment of the trade's structural viability.
Heads-Up Dashboard: A customizable table anchored to the chart corner. It provides a real-time aggregate readout of all critical internal metrics, including current trend state, raw momentum values, divergence status, participation ratios, and active trade progression percentages.
● 📖 How to Use
Establish Context: Monitor the Heads-Up Dashboard to evaluate the current macro trend state and participation ratios. Wait for the dashboard to indicate alignment between directional momentum, volume participation, and trend strength.
Identify Confluence: Look for structural momentum shifts indicated by the histogram crossing its zero-line, strictly validated by the alignment of the Heat Candles. Divergence markers appearing prior to these shifts serve as early warning signs of an impending structural rotation.
Signal Confirmation: Wait for the current bar to close. The utility is engineered to execute calculations on confirmed data to ensure structural stability. A confirmed signal will instantly plot the dynamic trade management levels.
Execute and Manage: Utilize the projected Entry, Stop Loss, and Take Profit levels to structure your position. The Risk/Reward shading and the progress tracker on the dashboard will provide continuous feedback as the price action develops toward the established targets.
Alert Integration: For automated tracking, configure the built-in alert conditions which generate structured data payloads for long entries, short entries, position closures, and individual target strikes.
● ⚙️ Inputs and Settings
Core: Define the source data for momentum calculations and select the preferred baseline calculation method and lookback length. This also includes the pivot length for divergence detection.
Filters: Activate and calibrate the higher timeframe alignment constraints. Set the specific lengths and minimum thresholds for directional strength and volume participation multipliers to strictly define what constitutes a valid breakout.
Trade: Toggle the visibility of the dynamic management levels. Adjust the volatility lookback, the invalidation multiplier, and customize the exact risk-to-reward ratios for all three projected profit targets.
Vis: Control the visual clutter by toggling the histogram, zero line, divergence signals, and heat candles on or off according to personal preference.
Dash: Enable or disable the Heads-Up Dashboard and anchor it to any of the four chart corners for optimal workspace organization.
Alerts: Define custom action strings and dynamic payload identifiers to integrate seamlessly with external execution engines or tracking software.
Colors: Fully customize the aesthetic profile of the indicator. Modify the specific hex values and opacities for the histogram states, trade levels, risk shading, divergence markers, and the internal dashboard elements to match your charting theme.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The foundation of this utility is deeply rooted in the principles of Auction Market Theory and the Law of Effort versus Result. In any financial market, price discovery is driven by the continuous auction process between buyers and sellers. However, price alone is a one-dimensional metric. Volume represents the actual energy or "effort" expended to move that price. By systematically analyzing the relationship between price displacement and volume flow, this tool effectively maps the true liquidity absorption within the market.
When a market establishes a new structural price extreme, fundamental market mechanics dictate that this move must be supported by an equivalent expansion in volume participation. If the aggregate volume flow begins to decelerate while price continues to advance, a structural divergence is formed. This indicates a severe lack of liquidity supporting the current auction, highlighting an area where the prevailing trend is highly vulnerable to mean reversion or a complete structural failure.
Furthermore, the integration of volatility-based risk profiling adheres to established quantitative risk management principles. Market volatility is not static; it constantly expands and contracts in cyclical phases. By anchoring invalidation levels to a dynamic multiplier of average true volatility, the utility ensures that risk parameters adapt to the current market environment. This prevents premature invalidation during periods of high liquidity expansion while maintaining tight structural constraints during periods of market consolidation.
⚠️ 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. We 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

Volatility Squeeze Ignition [MarkitTick]💡 A multi-dimensional analytical engine designed to detect periods of extreme market consolidation and validate the subsequent directional expansion. By measuring the mathematical relationship between standard deviation and average true range, this tool identifies equilibrium zones where price action compresses and stores kinetic energy. Rather than reacting blindly to every volatility spike, the script employs a sophisticated filtration matrix that evaluates underlying volume delta, higher timeframe macro-trend alignment, directional movement strength, and immediate candlestick morphology. This creates a rigorous framework that authenticates breakout signals, ensuring that traders only focus on high-probability momentum ignitions supported by definitive market conviction.
✨ Originality and Utility
Standard volatility indicators often generate breakout signals without providing any insight into the underlying market participation or the structural validity of the move. This system distinguishes itself by integrating a state-tracking memory engine that monitors the cumulative buying and selling volume specifically during the compression phase. This continuous volume delta tracking allows the system to pre-assess the directional bias before the actual breakout materializes. Furthermore, it incorporates a dynamic risk-to-reward projection matrix mapped directly onto the chart. It calculates stop-loss zones and sequential take-profit levels based on the exact width of the preceding volatility squeeze. This creates a completely self-contained analytical environment that bridges the critical gap between signal generation and precise trade management, eliminating the need for discretionary target plotting and manual risk calculations.
🔬 Methodology and Concepts
● The Volatility Squeeze Engine
The core mechanics rely on the precise interplay between Bollinger Bands and Keltner Channels. A squeeze state is formally activated when the Bollinger Bands contract entirely within the boundaries of the Keltner Channels. This condition signifies that the market's standard deviation has fallen below its historical true range, indicating a profound period of low volatility and liquidity resting. The system mathematically locks in the exact width of the bands at the onset of this compression. An ignition signal is mathematically validated only when the price decisively breaks outside the Bollinger Bands, provided the bands have begun to expand.
● Volume Delta Profiling
While the squeeze state is active, the script meticulously aggregates the volume of up-closing bars versus down-closing bars. This builds a cumulative delta sum. When a breakout triggers, the system references this stored delta to ensure that the directional break is fully supported by the actual volume flow accumulated during the consolidation phase, preventing false breakouts engineered by low-liquidity spikes.
● Multi-Dimensional Filtering
The breakout validation process is governed by a rigorous confluence matrix:
Higher Timeframe Alignment: Evaluates a simple moving average on a higher resolution chart to ensure the breakout trades strictly in the direction of the macro trend, utilizing a secure, non-repainting data referencing architecture.
Trend Strength Evaluation: Integrates the Average Directional Index to demand a minimum trend strength threshold, actively filtering out choppy, sideways market noise.
Candlestick Morphology: Evaluates immediate, candle-by-candle price and momentum interaction. The real body of the breakout candle must constitute a specific percentage of the total high-to-low range, confirming definitive and immediate market conviction rather than relying on lagging divergences.
Volatility Expansion: Compares the current channel width against the locked width from the start of the squeeze, ensuring the breakout is accompanied by a genuine expansion in market volatility.
🎨 Visual Guide
● Chart Overlays
Active Squeeze Background: A subtle blue vertical background highlight appears when the volatility squeeze is actively compressing.
Breakout Backgrounds: A vibrant teal background signals a confirmed bullish squeeze ignition, while a vivid crimson background highlights a bearish squeeze ignition.
BB Basis Line: A solid blue line representing the central moving average of the standard deviation channel.
KC Lines: Muted, semi-transparent lines mapping the upper and lower boundaries of the true range channel.
● Trade Management UI
Entry Line: A dashed blue line marking the exact closing price of the validated breakout candle, accompanied by a dynamic price label.
Stop Loss (SL) Line: A solid, thick crimson line indicating the invalidation level. Depending on user settings, this is positioned either at the opposite channel edge or calculated via an ATR multiplier. A red translucent fill connects the Entry to the SL, visualizing the exact risk zone.
Take Profit (TP) Lines: Three distinct dashed teal lines representing sequential profit targets, derived from Fibonacci extensions of the locked squeeze width. A green translucent fill highlights the total reward zone from the Entry to TP3.
● Information Dashboard
A comprehensive heads-up display anchored to the chart corner providing real-time telemetry on the system's state:
Squeeze Status: Displays whether the compression is currently ACTIVE or OFF, alongside a graphical progress bar.
Sqz Bars: A numerical count of how long the current squeeze has been compressing.
BB Width %: A visual gauge showing the current width of the standard deviation channel relative to its basis.
Delta Bias: Highlights the dominant accumulated volume direction (BULLISH, BEARISH, or NEUTRAL) colored dynamically in teal or crimson.
R:R Metrics: Real-time calculation bars showing the exact risk-to-reward ratios for all three take-profit targets based on the current active signal.
Filter Diagnostics: Individual status readouts for HTF Trend, ADX, Body Strength, and Volume Confirmation, allowing traders to instantly see which filters are passing or failing.
📖 How to Use
● Identifying Setups
Traders should monitor the chart for the appearance of the blue active squeeze background. During this phase, direct your attention to the Dashboard to monitor the "Delta Bias" and "Sqz Bars" count. A longer squeeze accompanied by a strong, building Delta Bias indicates a high-probability impending breakout. Wait for a confirmed candle close that breaks the channel limits, triggering the vibrant teal or crimson background.
● Managing Trades
Once an ignition signal fires, the script automatically projects the entry, stop-loss, and three take-profit levels. Traders can use the SL line to place their initial protective stop. As price approaches TP1, traders may consider scaling out a portion of their position and trailing their stop loss to the Entry line to secure a risk-free trade. The graphical risk and reward fills visually assist in quickly assessing if the projected trade meets your personal risk parameters before execution.
⚙️ Inputs and Settings
● Core Parameters
BB Range: Defines the calculation range for the standard deviation channel.
BB Mult: The standard deviation multiplier determining the width of the outer bands.
KC Range: Defines the calculation range for the average true range channel.
KC Mult: The multiplier dictating the width of the Keltner Channels.
Min Squeeze Bars: The absolute minimum number of consecutive compressed bars required before a valid ignition can be fired.
● Filters
Require Volume Confirmation: Toggles the volume delta tracking engine.
HTF Trend Filter: Activates the macro-trend alignment requirement, preventing counter-trend breakout signals.
ADX Trend Strength Filter: Enables a strict momentum threshold requiring the market to be actively trending.
Candle Body Strength Filter: Enforces a structural rule where the breakout candle's body must meet a minimum size relative to its wicks.
● Trade Tools & Alerts
SL Mode: Allows traders to select between a structural stop loss at the opposite channel edge or a volatility-based ATR stop.
TP1, TP2, TP3 Fib: Customizable Fibonacci multipliers that project the profit targets based on the original width of the market squeeze.
Dashboard Settings: Toggles the visibility and positional anchoring of the telemetry table.
Alert Actions: Advanced JSON-formatted string inputs allowing traders to define precise webhook payloads for entries, exits, and target hits, enabling seamless automated execution.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Volatility Compression Theory
The fundamental architecture of this script is rooted in the cyclical nature of market volatility, which oscillates continuously between periods of extreme contraction and aggressive expansion. By cross-referencing standard deviation against an absolute measure of true range, the algorithm quantitatively identifies the inflection points where liquidity providers pull back and the market reaches a state of unnatural equilibrium. The mathematical locking of the channel width captures the precise kinetic energy stored during this phase, applying principles of mean reversion and standard deviation expansion to project the statistical probability of the ensuing vector move.
● Order Flow and Delta Mechanics
To move beyond simple price derivatives, the system incorporates an approximated order flow model through its volume delta profiling. By segmenting traded volume into up-closing and down-closing aggregates during the compression state, the script builds a proxy for aggressive market participation. This mechanism relies on Auction Market Theory, assessing the imbalance between aggressive buyers lifting the offer and aggressive sellers hitting the bid. When the mathematical breakout aligns with the underlying delta accumulation, the script confirms that the price displacement is driven by genuine institutional or macroscopic participation, significantly reducing the statistical likelihood of a mean-reverting liquidity sweep.
⚠️ 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. We 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

HalfTrend Long/Short Signal Engine [BigBeluga]HalfTrend Long/Short Signal Engine is an institutional-grade trend tracking toolkit built for PulseWire. It filters out minor market noise to deliver definitive, non-repainting long and short entry signals based on asset volatility and structural swing pivots.
Instead of displaying standard lag-heavy moving averages, this system uses an adaptive directional engine to lock onto clean trend lines and overlay automatic risk-management matrices directly onto your chart. It calculates real-time win rates and scans multiple assets simultaneously so you can trade with systematic statistical backup.
🔵 MAIN ENGINE & MARKET CALCULATION MECHANICS
1. Pure HalfTrend Price Filter Matrix
Swing Pivot Trackers: The engine scans local high and low data using an adjustable lookback filter ( Amplitude ) to find actual structural swing points rather than temporary price spikes.
Volatility-Adjusted Bands: It establishes dynamic outer channel boundaries using a 100-period Average True Range calculation divided by two ( ATR/2 ). The total channel width automatically scales using your custom risk buffer parameter ( Channel Deviation ).
Regime Flip Architecture: The system locks into a Bullish Regime when price crosses above structural highs, shifting the main tracking baseline to Green. When price slips below structural lows, it forces a Bearish Regime and changes the tracking baseline to Red.
2. Automated Risk Matrix & Multi-Asset Scanner
Algorithmic Trade Execution: The moment a new trend regime initializes, the engine projects a strict trade tracking matrix showcasing an entry line, a clear stop-loss boundary, and three tiered profit targets (TP1, TP2, and TP3).
Live Performance Dashboard: An integrated on-screen table calculates real-time historical metrics, tracking active wins, losses, current target risk-to-reward ratios ($1:3$), and overall system win rate percentages.
Screener Security Matrix: The background engine leverages real-time multi-asset queries to stream concurrent trend statuses for five separate configurable symbols directly into a secondary visual dashboard.
// Automated Trade Risk & Multi-Asset Tracking Snippet
if buySignal
float dist = atr2 * baseRiskMult
activeSL := close - dist
activeTP1 := close + dist
activeTP2 := close + (dist * 2)
activeTP3 := close + (dist * 3)
tradeState := 1
entryPx := close
t1 = request.security(sym1, timeframe.period, trend)
🔵 WHY IT IS USEFUL
Elimination of Market Noise: Standard moving averages constantly whip back and forth during consolidations. The HalfTrend calculation filters out minor intraday fluctuations, only shifting when a definitive structural high or low is broken.
Mathematical Execution Blueprint: It takes the emotion out of trade management. Every signal comes equipped with dynamic, visually mapped stop losses and a $1:3$ risk-reward profit map that fills with real-time gradient paths.
Macro Market Synchronicity: The multi-asset side-panel allows you to keep an eye on major market drivers (like BTC, ETH, Gold, or major FX pairs) simultaneously, ensuring your trades line up with broader institutional market direction.
🔵 HOW TO USE THE SYSTEM
Trading Long Breakouts: When the system transitions from a bearish regime into a bullish regime, a Green LONG label will print beneath the breakout candle. Execute your position at the white entry line, setting your dynamic stop-loss boundary inside the red risk gradient.
Trading Short Breakdowns: Monitor the system for a shift into a bearish regime, indicated by a Red SHORT label appearing above the asset price. Execute short orders relative to the entry line and utilize the upper red gradient zone to map your protective risk ceiling.
Managing Exits and Targets: Take partial profits sequentially as the asset price moves through the Green target lines (TP1, TP2, and TP3). If a sudden trend reversal prints an opposing signal before your final targets are satisfied, the script automatically triggers a reversal exit rule to preserve accumulated gains.
Streamline your trade execution, manage portfolio risk systematically, and screen multiple sectors at once with the HalfTrend Long/Short Signal Engine workspace. Indicator

Williams VIX Fix Elite [MarkitTick]💡 The Williams VIX Fix Elite is a comprehensive, overlay-based technical analysis system designed to bring the powerful volatility-tracking properties of the traditional Williams VIX Fix directly onto the main price chart. By synthesizing statistical volatility extremes with an array of multi-timeframe trend filters, volume confirmation parameters, and dynamic risk management plotting, this tool transcends basic observation. It provides traders with a complete, structured methodology for identifying high-probability exhaustion zones and potential market reversals while strictly managing risk.
✨ Originality and Utility
Standard volatility indicators are almost exclusively relegated to separate oscillator panes at the bottom of the chart. This traditional placement forces the user to constantly shift their visual focus, often leading to a disconnect between volatility metrics and actual price action. This indicator resolves that friction by mapping volatility exhaustion directly onto the candlesticks themselves through an intuitive color-coded heatmap.
Furthermore, the utility of this script lies in its holistic approach to signal generation. Rather than providing isolated volatility alerts, it acts as a confluence engine. It mandates that a volatility spike must be corroborated by higher timeframe trend alignment, adequate localized volume, directional momentum, and specific standard deviation thresholds before generating an actionable signal. This transforms a simple oscillator concept into a robust, chart-integrated trading framework complete with dynamically calculated risk-to-reward parameters, rendering it highly useful for both discretionary analysis and automated alert integrations.
🔬 Methodology and Concepts
● The Volatility Engine
• Williams VIX Fix (WVF)
At its core, the script calculates the Williams VIX Fix. It does this by measuring the percentage drawdown of the current bar's low from the highest closing price over a user-defined lookback period. This mathematical approach creates a synthetic volatility index that mirrors the behavioral characteristics of the CBOE VIX, where high values indicate market fear and potential bottoms.
• Statistical Bounds
To determine when the WVF has reached a statistically significant extreme, the script applies Bollinger Bands to the WVF data. It calculates a Simple Moving Average (SMA) of the WVF and plots standard deviation bands around it. A "Spike" is registered when the WVF value breaches the upper Bollinger Band or a percentile-based historical high threshold.
● Confluence Filtering
• Higher Timeframe (HTF) Alignment
The script extracts moving average data from a user-selected higher timeframe. It assesses whether the higher timeframe's closing price and dual-period EMAs exhibit a bullish or bearish hierarchy, ensuring signals are not taken against the macro-directional flow.
• Volatility and Volume Validation
A signal is only considered valid if the localized volatility, measured by the Average True Range (ATR), exceeds its historical average multiplied by a strict threshold. Additionally, the localized volume must exceed its moving average, confirming that the reversal is backed by market participation.
• Signal Execution and Risk Logic
When all conditions align (a volatility spike followed by a directional reversal candle, validated by all filters), the script locks in the signal upon the bar's close. It immediately calculates a Stop Loss utilizing an ATR multiplier and projects three Take Profit levels mathematically derived from user-defined Risk-to-Reward (R:R) ratios.
🎨 Visual Guide
● Chart Overlay Elements
• Candlestick Heatmap
The indicator repaints the standard chart candles to reflect the immediate signal bias. A confirmed Long signal colors the candlestick body, borders, and wicks in a distinct bullish hue (default teal). Conversely, a confirmed Short signal paints the candle in a bearish hue (default red). Neutral periods retain a standard gray tone.
• Dynamic Trade Levels
Upon signal confirmation, the script automatically plots horizontal lines detailing the trade parameters:
Stop Loss Line: A solid, thick line plotted below (for longs) or above (for shorts) the entry price, acting as the primary risk invalidation level.
Entry Line: A dashed line marking the exact closing price of the signal candle.
Take Profit Lines: Three sequential dashed lines representing TP1, TP2, and TP3, mapping out the reward targets.
The space between the Stop Loss and Entry is highlighted with a semi-transparent risk linefill, while the space extending toward the Take Profit targets is highlighted with a reward linefill, visually contrasting the risk against the potential payout.
● The Interactive Dashboard
A dedicated data panel is rendered on the chart (default top-right) providing real-time telemetry of the script's internal calculations.
WVF Value & Spike Level: Displays the raw volatility index number alongside a visual progress bar indicating how close the current value is to the historical threshold.
HTF & Trend Bias: Textually confirms the current macro and localized trend alignment (Bullish/Bearish).
Volume & ATR: Confirms whether current volume is above or below average and displays the exact ATR value.
R:R Ratio: A visual gauge of the current signal's risk-to-reward structure.
Cooldown Status: Displays the remaining bars before a new signal can be generated, preventing over-signaling during congested price action.
📖 How to Use
● Execution Protocol
• Step 1: Signal Identification
Wait for a colored signal candle to print on the chart. A teal candle signifies a Long opportunity, while a red candle signifies a Short opportunity. Always wait for the candle to fully close, as signals are only validated upon bar confirmation to ensure accuracy.
• Step 2: Dashboard Verification
Consult the on-chart dashboard. Ensure that the "Spike Level" gauge was heavily filled prior to the signal, and visually confirm that the "HTF Bias" and "Trend Bias" align with your intended trade direction. Verify that the "Volume" metric indicates "Above Avg" for optimal setup quality.
• Step 3: Risk Assessment
Observe the plotted trade levels. The visual linefills will immediately show you the required risk (the distance from the dashed Entry line to the solid Stop Loss line). Assess whether this required risk fits within your personal account parameters. If the ATR has expanded too aggressively, the stop loss may be too wide, and the setup should be skipped.
• Step 4: Trade Management
If the trade is entered, utilize the plotted TP1, TP2, and TP3 lines as scaling-out points. The script also includes automated JSON alert outputs designed for third-party execution platforms, allowing users to fully automate the Long, Short, and Take Profit hit actions.
⚙️ Inputs and Settings
● Core Settings
• WVF Lookback: Defines the historical period used to find the highest close for the volatility drawdown calculation.
• BB Length & BB Mult: Controls the Simple Moving Average length and the standard deviation multiplier applied to the WVF. Lowering the multiplier increases sensitivity to volatility spikes.
• Percentile HH Lookback & High % Threshold: An alternative absolute-threshold filter based on a percentage of the highest historical WVF values.
● Filters
• HTF Resolution: Select the specific higher timeframe used for the macro trend validation.
• ATR Length & Min Mult: Defines the lookback for the Average True Range and the multiplier required to validate adequate localized volatility.
• Min Spike Above BB %: A Z-score threshold ensuring the volatility spike is mathematically severe before triggering a signal.
• Volume Avg Length & Min Mult: Dictates the volume moving average parameters required for trade confirmation.
• Cooldown Bars: The mandatory resting period (in bars) between valid signals to eliminate redundant alerts.
● Trade Tools & Alerts
• SL ATR Mult: The multiplier applied to the current ATR to calculate the Stop Loss distance from the entry price.
• TP1, TP2, TP3 R-Multiple: Dictates the reward distance for target lines relative to the calculated Stop Loss risk.
• Alert Actions: String inputs allowing the user to customize the JSON payload commands sent to automated webhook services.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Behavioral Finance and Volatility Asymmetry
The underlying architecture of this indicator is deeply rooted in the academic principles of behavioral finance, specifically the asymmetry of market participant reactions. Financial markets typically exhibit a "stealth" characteristic during uptrends (low volatility, steady buying) and a "panic" characteristic during downtrends (high volatility, aggressive selling). The Williams VIX Fix capitalizes on this behavioral asymmetry by focusing exclusively on drawdowns from peak closes. By quantifying this localized panic, the script provides a mathematical representation of capitulation—a state where sell-side liquidity is exhausted, and rational market equilibrium is poised to return.
● Gaussian Distribution and Standard Deviation Anomalies
To objectively define an "exhaustion point," the script relies on the statistical concept of normal distribution. By applying a Simple Moving Average to the raw volatility data, it establishes a baseline mean of market stress. The inclusion of Standard Deviation bands (Bollinger Bands) allows the system to measure dispersion from this mean. When the volatility index breaches the upper band, it represents an anomaly—an event occurring outside the expected standard deviation threshold. Statistically, extreme deviations from the mean are unsustainable, implying an imminent reversion. This indicator isolates these rare deviations to time market entries.
● The Role of True Range in Risk Normalization
Risk management within the script is governed by the Average True Range (ATR), a concept introduced by J. Welles Wilder. The True Range accounts for absolute price movement, including gap openings, providing a more comprehensive measure of market kinetic energy than standard percentage changes. By tying the Stop Loss and Take Profit levels dynamically to the ATR, the script automatically normalizes risk across different market environments. In a highly volatile state, the ATR expands, naturally widening the stop loss to avoid premature invalidation from market noise. In a compressed state, the ATR contracts, tightening the risk parameters. This dynamic adaptation ensures that the statistical risk profile of each trade setup remains proportional to the current localized market geometry.
⚠️ 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. We 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

Dynamic MSS Navigator [MarkitTick]💡 An advanced technical analysis tool engineered to automatically identify localized market structure, validate structural shifts, and dynamically generate risk-to-reward parameters. Built for systematic traders, it continuously scans price action to pinpoint candidate highs and lows based on user-defined lookback periods. Rather than relying on subjective charting, this indicator applies stringent mathematical logic—incorporating Average True Range (ATR) buffers, volume participation, and higher timeframe (HTF) alignment—to filter out market noise and present high-probability structural breaks. Once a valid break occurs, the indicator seamlessly transitions into trade management mode, drawing precise entry, stop-loss, and multiple take-profit levels directly onto the chart, accompanied by a comprehensive real-time data dashboard.
✨ Originality and Utility
● Automated Market Structure Mapping
The core utility of this indicator lies in its ability to remove human bias from market structure analysis. Traders often struggle with defining which highs and lows are structurally significant. This script mathematically defines them, tracking the absolute highest highs and lowest lows over a rolling window, and only recognizing a structural shift when a mathematically validated threshold is breached.
● Dynamic Risk-to-Reward Modeling
Unlike standard indicators that only print buy or sell arrows, this tool instantly calculates the exact risk parameter upon signal generation. By anchoring the stop-loss to the structural pivot with a built-in volatility buffer, it sizes the risk logically. It then extrapolates multiple take-profit targets based on fixed risk-to-reward ratios, providing a complete trade framework from inception to completion.
● Multi-Dimensional Filtering Mashup
This script operates as a highly cohesive mashup of distinct technical methodologies. It combines Donchian-style localized pivot detection for structure, Wilder’s Average True Range for volatility-based breakout validation, Simple Moving Averages of volume for participation measurement, and multi-timeframe security requests for overarching trend alignment. This combination ensures that a signal is only fired when price action, volatility, volume, and higher timeframe momentum are in total agreement.
🔬 Methodology and Concepts
● Localized Pivot Identification
The script continuously monitors the highest highs and lowest lows over a defined lookback period. When a new top is formed, it identifies the lowest point of that peak structure as the "Candidate Top Low." Conversely, when a new bottom forms, it marks the highest point of that valley structure as the "Candidate Bottom High." These form the immediate structural floors and ceilings.
● ATR-Buffered Breakout Logic
To confirm a shift, price must do more than just tick past the candidate line. The indicator requires price to breach the candidate level by an additional margin, calculated as a fraction of the current ATR. This ensures that only shifts with statistically significant momentum trigger a signal, heavily reducing false positives (fake-outs) during low-volatility chop.
● Composite Strength Scoring
Upon signal generation, the algorithm calculates a proprietary "Strength Score" from 0 to 100. This score is a weighted aggregate of three factors:
The distance of the closing price beyond the breakout threshold (measuring immediate momentum).
The current volume relative to its moving average (measuring market participation).
The alignment of the localized pivot with the higher timeframe pivot (measuring macro confluence).
● Dynamic Bias Tracking
The indicator tracks the ongoing market bias, classifying it as bullish, bearish, or neutral. A bullish bias is initiated upon a valid bottom break and remains intact until price breaches the newly established stop-loss level, at which point the bias flips or neutralizing protocols take over.
🎨 Visual Guide
● Chart Elements
• Candidate Lines
Dashed Red Lines indicate the support floor of a localized top. Dashed Green Lines indicate the resistance ceiling of a localized bottom. These project forward to show the exact price level that must be broken.
• Signal Markers
When a structural shift is validated, a solid Red Triangle appears above the bar for a bearish shift (labeled "BEAR"), and a solid Green Triangle appears below the bar for a bullish shift (labeled "BULL"). Small "+" cross icons appear for continuation signals where the trend is reinforced.
• Trade Projection Lines
A solid Red Line marks the calculated Stop Loss level. A dashed Blue Line marks the exact Entry Price. Dashed Teal Lines of varying opacities mark Take Profit 1 (TP1), Take Profit 2 (TP2), and Take Profit 3 (TP3).
• Zonal Fills
A semi-transparent Red Background fill connects the Entry line to the Stop Loss line, visually representing the initial capital risk. A semi-transparent Green Background fill connects the Entry line to the final TP3 line, representing the total projected reward zone.
• Heatmap Candles
The indicator takes control of the underlying candlestick colors to reflect the current structural bias. Deep Teal candles indicate an active bullish trend, Deep Red candles indicate an active bearish trend, and Gray candles indicate a neutral market state where structural direction is unresolved.
● Dashboard Readouts
A highly detailed heads-up display is rendered on the chart, featuring a dark background with bright, contrasting text. It provides rows of vital data including:
Last Signal and Trend State (e.g., HH-HL Up).
Candle Bias and a visual bar chart representing the Strength Score.
Confirmed Signal Count and Bars Since the Last Signal.
Active Position status, Entry Price, and Stop Loss Price.
Dynamic tick boxes for TP1, TP2, and TP3 displaying price levels and completion checkmarks.
Real-time Floating P/L (Profit/Loss) expressed in 'R' multiples.
Current ATR values and Volume vs Average visual bar meters.
Current state of Session and HTF filters.
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
● Signal Execution
Traders should monitor the formation of the dashed candidate lines. When a breakout occurs, do not act prematurely; wait for the candle to close (if "Confirm by Close" is active) and ensure the primary signal triangle prints. This confirms that all volume and volatility parameters have been met.
● Assessing Trade Quality
Immediately consult the dashboard's "Strength Score." Higher scores (e.g., above 75%) indicate robust volume participation and excellent higher timeframe alignment, making them higher probability setups. Lower scores may warrant reduced position sizing or skipping the setup entirely.
● Trade Management
Utilize the dynamically plotted lines to set limit orders and stop losses in your execution platform. As price reaches TP1 and TP2 (indicated by checkmarks on the dashboard), consider trailing the stop loss to breakeven or the next logical structure point. If the candle heatmap shifts to gray (neutral) before reaching targets, it may be a prudent early exit warning.
⚙️ Inputs and Settings
● Core Settings
Lookback: Defines the number of bars used to identify localized tops and bottoms. Higher values find macro structures; lower values find micro structures.
Confirm by Close: Toggles whether the breakout must be confirmed by the candle's closing price or just the wick.
ATR Len & ATR Break Mult: Controls the volatility buffer required to validate a breakout.
● Filters
Volume Confirm: Requires breakout volume to exceed the moving average multiplied by the "Vol Spike Mult".
HTF Confluence: Restricts signals to those that align with the high/low structure of the user-defined Higher Timeframe.
Session Filter: Restricts signal generation to a specific daily time window (e.g., standard market hours).
● Trade Tools
TP1, TP2, TP3 R:R: Defines the static Risk-to-Reward multipliers for the take profit targets.
SL ATR Buffer: Adds additional breathing room to the stop loss beyond the absolute structural pivot.
● Visuals & Dashboard
Allows the user to toggle the display of candidate lines, heatmaps, and the main data dashboard, as well as reposition the dashboard to any corner of the screen.
● Alerts
Customizable string inputs for JSON payload generation, allowing traders to map long, short, close, trail, and target-hit actions directly to automated execution systems.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Dow Theory and Structural Extremes
The foundational logic of this script is rooted in classical Dow Theory, which posits that a trend is defined by a sequence of higher highs and higher lows (bullish) or lower highs and lower lows (bearish). By mathematically indexing `highestbars` and `lowestbars`, the script algorithmically isolates these fractal extremes, stripping away subjective human interpretation of market swings.
● Volatility-Normalized Breakout Thresholds
Financial markets are noisy, characterized by frequent false breaks (liquidity sweeps). This indicator employs Average True Range (ATR), a metric developed by J. Welles Wilder, to normalize the breakout threshold against current market volatility. By requiring price to exceed a structural level by a factor of the ATR, the algorithm relies on statistical significance—demanding that the breakout possesses enough standard deviations of momentum to be classified as a genuine shift in supply and demand, rather than random market drift.
● Volume Participation Theory
Drawing on Volume Price Trend (VPT) mechanics, the algorithm recognizes that price movement without volume is highly suspect. The implementation of a volume moving average filter ensures that structural breaks are validated by a true influx of market participation, confirming that the imbalance between buyers and sellers is robust enough to sustain a new directional vector.
● Automated Expected Value (EV) Projection
By mechanically tying the entry price to a mathematically defined stop-loss, and extrapolating predetermined Risk-to-Reward targets, the script enforces strict expected value mechanics. This removes emotional profit-taking, ensuring that winning trades scale out at mathematically optimal R-multiples (e.g., 1R, 2R, 3R), aligning the trader's execution with positive expectancy mathematical models over a large sample size of trades.
⚠️ 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. We 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

Liquidity Entry Signals [MarkitTick]💡 A comprehensive, multi-faceted approach to identifying potential market reversals based on classic liquidity sweep mechanics. By scanning for instances where price briefly breaches a significant structural high or low before immediately rejecting and closing back within the range, this tool highlights areas where trap-based price dynamics may be in play. It is designed to offer a complete trading framework rather than just a simple signal, integrating dynamic stop-loss and take-profit plotting, real-time advanced dashboard analytics, and comprehensive alert payloads. This indicator assists in bridging the gap between raw price action analysis and structured trade management.
● ✨ Originality and Utility
Many basic technical indicators simply look for higher highs or lower lows without assessing the quality of the rejection. This script elevates that concept by requiring strict closing conditions to validate a sweep. What truly sets it apart is its integration of multiple intelligent filters. Rather than relying on price action alone, users can mandate that sweeps align with the prevailing trend, occur during periods of sufficient volatility, and are backed by relative volume strength.
Additionally, the built-in risk management visualizations automatically calculate position risk parameters right on the chart. By projecting stop-loss and take-profit levels based on current volatility, it transforms a static signal into an actionable trade plan. The inclusion of dynamic JSON payload generation for alerts also makes this an incredibly versatile tool for those looking to automate their execution through third-party platforms.
● 🔬 Methodology and Concepts
The core logic of this script is built around the concept of a liquidity sweep, verified through price action closes, and filtered through statistical market conditions.
Bullish Sweep: The script continuously calculates the lowest low over a user-defined lookback window. A valid bullish signal occurs when the current bar's lowest price penetrates this recent low, but the closing price decisively reclaims it by closing higher than the structural low and higher than its own open.
Bearish Sweep: Conversely, the script identifies the highest high over the recent lookback period. If the current bar's high breaches this level, but the close falls below the recent high and below its own open, a short signal is triggered.
Trend Filtration: The indicator uses a Simple Moving Average (SMA) on both the current chart and a selected higher timeframe to establish a directional bias. Signals that conflict with these moving average baselines are suppressed to prevent counter-trend trading.
Volatility and Volume Analysis: The script evaluates the Average True Range (ATR) as a percentage of the current closing price to ensure sufficient market movement is present. It also compares the current volume to a standard moving average of volume, filtering out setups that lack participation.
● 🎨 Visual Guide
The script draws extensive visual overlays to assist in real-time decision-making and trade management.
• Signal Labels
When a valid sweep occurs, an "LS" label is plotted. Green labels positioned below the candle indicate bullish setups, while red labels above indicate bearish setups.
• Trade Execution Lines
Upon a signal, the indicator projects trade management lines directly on the chart for the next 50 bars.
Entry Line: A dashed blue line marking the closing price of the signal bar.
Stop Loss (SL): A solid red line placed away from the entry, calculated based on the ATR multiplied by the user's risk factor.
Take Profit (TP): Three dashed teal lines representing Take Profit 1, 2, and 3. These are calculated using specific Risk-to-Reward multiples of the stop-loss distance.
• Risk and Reward Zones
Semi-transparent colored fills visually separate the trade zones. A red fill highlights the risk zone between the entry and the stop loss, while a teal fill highlights the reward zone extending from the entry to the final take-profit level.
• Advanced Dashboard
A multi-row informational table appears in the selected corner of the chart. This dashboard provides a real-time status check of the prevailing trend bias, the number of bars since the last signal, exact entry/SL/TP price levels, current ATR, and visual progress bars for volatility and signal cooldown periods.
● 📖 How to Use
Traders can utilize this script as a complete top-down methodology for analyzing market structure. First, observe the dashboard to confirm that the current market environment aligns with your desired filters (e.g., ensuring the higher timeframe trend is supportive and volume thresholds are met).
When a valid "LS" label appears on the chart, immediately note the projected Entry, Stop Loss, and Take Profit lines. The dashed blue line serves as your reference for a potential entry point. You can calculate your position sizing based on the fixed distance between this blue Entry line and the solid red Stop Loss line.
The three Take Profit levels allow for a tiered approach to trade management, enabling partial profit-taking as the price advances in your favor. Advanced users can configure the custom string inputs to send highly detailed webhook payloads directly to execution platforms, passing the exact dynamically calculated price levels directly to their broker.
● ⚙️ Inputs and Settings
The script is highly customizable through categorized input groups, allowing adaptation to any asset class or timeframe.
• SMC Settings
Sweep Lookback: Defines the number of historical bars used to calculate the structural high and low points.
• Smart Filters
Trend Filter: Enables an SMA condition to dictate the allowed signal direction.
Volatility Filter: Requires the ATR to be a minimum percentage of the asset's price before a signal can fire.
Volume Filter: Demands that the current bar's volume exceeds a defined multiple of the volume moving average.
HTF Timeframe: Selects the specific higher timeframe used for long-term trend alignment.
Signal Cooldown: Prevents consecutive signals within a specified number of bars to reduce chart noise during extended consolidations.
• Trade Tools
SL ATR Mult: Determines the distance of the Stop Loss based on the current ATR, adjusting risk based on market volatility.
TP1 / TP2 / TP3 RR: Sets the specific Risk-to-Reward multiples for the three profit targets.
• Alerts
Action Strings: Customizable fields to inject specific commands into the JSON alert payloads for entries, exits, and partial take-profits.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
From a market microstructure perspective, liquidity sweeps represent a temporary imbalance in supply and demand. In auction market theory, price frequently probes beyond established boundaries to test for the presence of resting orders. When price penetrates a historical extreme but fails to sustain value there—evidenced by the immediate reversal and closing within the prior range—it indicates an absorption of liquidity by counter-trend market participants. This exhaustion of directional momentum is a well-documented phenomenon in order flow analysis.
To normalize these price extensions, the indicator applies the Average True Range (ATR). Developed by J. Welles Wilder, the ATR provides a robust statistical measure of absolute price volatility, capturing gaps and limit moves that standard standard-deviation metrics might underrepresent. By tying the Stop Loss logic directly to the ATR, the indicator adapts to heteroskedasticity, which is the changing variance of asset returns over time. This ensures that risk parameters dynamically widen during highly volatile periods to prevent premature stop-outs, and contract during quiet phases to optimize capital efficiency.
Furthermore, the reliance on moving averages for trend and volume filtration applies fundamental time-series smoothing. This inherently mitigates the noise of high-frequency price fluctuations, ensuring that the localized microstructure event (the sweep) is aligned with the macro directional drift of the broader dataset.
⚠️ 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. We 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

NLMS Volatility Trail [BackQuant]NLMS Volatility Trail
Overview
NLMS Volatility Trail is an adaptive trend-following overlay that combines a machine-learning style adaptive filter with a volatility-based trailing structure. It is built around the Normalized Least Mean Squares (NLMS) algorithm, then converts that adaptive estimate into an ATR-based trailing line designed to follow directional regimes while filtering out minor noise.
The indicator has two core layers:
An NLMS adaptive filter , which learns a dynamic price estimate from prior bars.
An ATR volatility trail , which converts that learned estimate into a step-like directional trailing structure.
The goal is to produce a trend line that is more adaptive than a traditional moving average and more structured than a raw adaptive filter. The NLMS engine learns the underlying price path, while the ATR trail adds volatility-aware confirmation so trend shifts only occur when the adaptive estimate moves meaningfully.
Core idea
Most trend filters use fixed smoothing rules. An EMA, SMA, WMA, or HMA always applies the same mathematical weighting scheme regardless of whether the market is trending, ranging, expanding, or compressing.
NLMS is different. It continuously updates its internal weights based on prediction error.
This means the filter is not just averaging price. It is constantly asking:
How well did the previous weighting structure predict the current bar?
How large was the error?
How should the weights adjust to reduce future error?
The second layer then takes that adaptive estimate and applies an ATR-based trailing mechanism around it. This creates a volatility-adjusted trend trail that reacts to confirmed shifts while ignoring smaller movements that do not exceed the range structure.
What NLMS is
NLMS stands for Normalized Least Mean Squares . It is an adaptive filtering algorithm from digital signal processing. It is closely related to the original LMS algorithm developed by Bernard Widrow and Ted Hoff, which became one of the foundational online learning methods used in adaptive systems.
Adaptive filters have historically been used in:
Noise cancellation
Echo cancellation
Telecommunications
Radar and sonar processing
Signal prediction
Control systems
The basic purpose is to estimate or predict a signal while continuously adapting to changing conditions.
In trading terms, this indicator uses NLMS to build a learned estimate of price from prior bars.
How the NLMS filter works
The filter uses a set of historical inputs called taps .
If taps = 72, the model uses the previous 72 bars:
source
source
source
...
source
Each tap has a learned weight.
The prediction is calculated as:
prediction = w1 × source + w2 × source + ... + wM × source
The filter then compares the prediction to the actual current source:
error = source - prediction
That error drives the weight update.
If the prediction was poor, the weights adjust more.
If the prediction was accurate, the weights adjust less.
This creates an adaptive estimate that evolves with market behavior.
Why it is normalized
The normal LMS algorithm updates weights based on the raw input and prediction error. The issue is that if the input signal becomes large or volatile, updates can become unstable.
NLMS solves this by dividing the update by the input power:
power = sum(source ²)
The update becomes:
w = w + (μ / (ε + power)) × error × input
This normalization makes the learning process more stable across different volatility environments.
When the input power is high:
Updates are scaled down.
The filter avoids overreacting.
When the input power is low:
Updates are allowed to remain meaningful.
This is why NLMS is better suited to markets than a basic adaptive filter. Markets constantly shift between quiet and volatile regimes.
Weight initialization
The script initializes all weights equally:
weight = 1 / M
This means the filter starts with an SMA-like prior. Before learning begins, every historical bar contributes equally.
Over time, the filter adapts away from that equal-weight baseline and learns its own weighting structure.
Inputs that control the NLMS engine
Filter Taps (M)
Controls how many historical bars the model learns from.
Higher taps:
More memory
Smoother adaptive estimate
Slower response to regime change
Lower taps:
Less memory
Faster reaction
More noise sensitivity
Step Size (μ)
Controls the learning rate.
Lower μ:
Slower learning
Smoother output
More stable
Higher μ:
Faster learning
More responsive
Can become noisy if too aggressive
This is one of the most important settings. It controls how quickly the model changes its internal weights.
Regularization (ε)
Prevents instability when input power is very low.
It acts as a stabilizer in the denominator:
ε + power
Higher values make updates more conservative.
Lower values allow stronger adaptation but can become less stable in quiet conditions.
From adaptive filter to volatility trail
The raw NLMS output is not plotted directly as the main trend line. Instead, it is passed into a volatility trailing structure.
The script builds an ATR band around the NLMS estimate:
Upper band = NLMS output + ATR × factor
Lower band = NLMS output - ATR × factor
Then it creates a trailing value that only updates when the NLMS band structure forces it to move.
This creates a trail that behaves similarly to a volatility stop, but the center is not price or hl2. It is the learned NLMS estimate .
ATR volatility trail logic
The trail starts from the NLMS output, then carries forward its previous value:
nlmsAtr := previous nlmsAtr
Then:
If lower band rises above the trail, the trail moves up.
If upper band falls below the trail, the trail moves down.
This creates a directional trailing structure:
In bullish regimes, the trail ratchets upward.
In bearish regimes, the trail ratchets downward.
It filters out small movements because price must move enough relative to ATR and the adaptive estimate to change the trail direction.
Why combine NLMS with ATR
NLMS alone gives an adaptive estimate, but it can still wiggle as the model learns.
ATR alone gives volatility structure, but it is usually tied to raw price and fixed smoothing.
Combining them gives:
Adaptive intelligence from NLMS.
Volatility confirmation from ATR.
Cleaner trend state transitions.
Less dependence on fixed moving-average assumptions.
The NLMS model learns the underlying price behavior, while ATR decides whether movement is large enough to matter.
Trend direction
Trend flips are detected from the trail itself:
Bullish when nlmsAtr crosses above its previous value.
Bearish when nlmsAtr crosses below its previous value.
This means signals are generated when the volatility trail changes direction, not when price simply crosses the line.
That is important because:
The trail must structurally move.
The signal is tied to confirmed trail direction.
Noise around the line does not automatically create a flip.
Visual design
The indicator includes several visual layers.
Main trail line
The central plotted line is the NLMS ATR trail. It changes color based on the current trend state:
Green for bullish trail direction.
Red for bearish trail direction.
Gray before a trend state is established.
Gradient fill
The script fills the space between price and the trail:
If price is above the trail, bullish fill is shown.
If price is below the trail, bearish fill is shown.
The fill is stronger near the trail and fades toward price, making the trail feel like the active structural reference.
Trail glow
A soft glow is drawn around the trail using a small ATR offset:
glow = ATR(14) × 0.06
This highlights the trail visually without cluttering the chart.
Trend candles
Candles are colored by trend state:
Bullish trend = bullish candles.
Bearish trend = bearish candles.
This allows the script to function as a complete regime overlay.
How to interpret the indicator
Bullish state
A bullish state occurs when the NLMS volatility trail turns upward.
This suggests:
The adaptive filter is shifting higher.
The ATR trail has confirmed upward structure.
Trend pressure has turned bullish.
Bearish state
A bearish state occurs when the NLMS volatility trail turns downward.
This suggests:
The adaptive estimate is shifting lower.
The volatility trail has confirmed downside structure.
Trend pressure has turned bearish.
Price above the trail
Generally indicates bullish structure.
Price below the trail
Generally indicates bearish structure.
But the most important signal is the direction of the trail itself, not every price touch.
How to use it in practice
1) Trend following
Use the trail direction as the primary bias:
Favor longs when the trail is bullish.
Favor shorts when the trail is bearish.
2) Dynamic support/resistance
The trail can act like a dynamic structural level:
In uptrends, pullbacks toward the trail can act as support.
In downtrends, rallies toward the trail can act as resistance.
3) Trade management
The trail can be used as:
A trailing stop guide.
A regime invalidation level.
A trend continuation reference.
4) Regime filtering
Because the line adapts using NLMS and only flips when the volatility trail turns, it can be used to filter other entries:
Take only long setups during bullish trail regimes.
Take only short setups during bearish trail regimes.
Avoid countertrend trades when the trail is strongly directional.
Difference from normal Supertrend or ATR trails
A normal ATR trail is usually built directly from price or hl2.
This indicator is different because the trail is built around an adaptive learned estimate.
That means:
The centerline is not raw price.
It is not a fixed moving average.
It is a continuously learned NLMS estimate.
So the trail has a different character:
More adaptive than a standard moving average trail.
More stable than a raw price-based ATR stop.
More responsive to changing market structure than fixed filters.
Difference from the NLMS Adaptive Trend Filter
The NLMS Adaptive Trend Filter plots the learned estimate directly and reads trend from its slope.
NLMS Volatility Trail goes one step further:
It uses the learned estimate as the base.
Then wraps it with ATR structure.
Then turns that into a trailing regime line.
So this version is more structure-oriented and better suited for trailing trend behavior.
Parameter tuning
Taps
Use higher taps for smoother trend structure.
Use lower taps for faster adaptation.
Step Size
Use lower step size for stability.
Use higher step size for responsiveness.
Regularization
Use higher regularization when the filter feels unstable.
Use lower regularization when the filter is too sluggish.
ATR Period
Controls volatility estimate:
Shorter = more reactive trail.
Longer = smoother trail.
ATR Factor
Controls band width:
Higher factor = wider trail, fewer flips.
Lower factor = tighter trail, more flips.
Strengths
Combines adaptive filtering with volatility trailing logic.
Learns from market structure instead of using fixed weights.
Uses ATR to reduce noise and confirm meaningful movement.
Good for trend following and trailing stop frameworks.
Visually clean with gradient fill and candle coloring.
Limitations
Still reactive, not predictive.
Can lag during violent reversals.
High learning rates may create noise.
Low ATR factors may cause whipsaws.
Requires tuning for timeframe and asset volatility.
Summary
NLMS Volatility Trail combines an adaptive NLMS predictor with an ATR-based trailing structure. The NLMS layer continuously learns a dynamic estimate of price from historical bars, while the ATR trail converts that estimate into a cleaner directional regime line. This makes the indicator more adaptive than a traditional moving average and more structured than a raw adaptive filter. It is best used as a trend-following overlay, dynamic support/resistance guide, and volatility-aware trailing framework.
Indicator

Delta Volume Profile ProDelta Volume Profile Pro is a volume profile indicator built upon the quadrant structure originally introduced by BigBeluga in the Quadro Volume Profile script. Full credit for the original concept and core logic goes to BigBeluga.
🔍 What it does
This indicator divides the visible price range into four quadrants relative to the current price and distributes volume across price bins, revealing where the most significant buying and selling activity has occurred above and below the market.
Each quadrant displays:
Upper Sell Quad — sell volume concentrated above the current price
Upper Buy Quad — buy volume concentrated above the current price
Lower Buy Quad — buy volume concentrated below the current price
Lower Sell Quad — sell volume concentrated below the current price
A Point of Control (PoC) dashed line marks the price bin with the highest volume in each quadrant.
Four percentage labels at the current price level show how total volume is distributed across all quadrants, allowing traders to quickly assess the balance between buying and selling pressure on both sides of the market.
⚙️ Original additions over BigBeluga's base
1. Proxy Volume Engine — works on any broker
Many brokers and CFD platforms do not provide usable native volume data. This indicator includes an internal map of 80+ symbols to their most liquid equivalents:
Forex pairs → (tick volume, CFD-compatible scale)
Metals (Gold, Silver, Platinum)
Crypto (BTC, ETH, etc.)
Oil, Gas →
Indices & Futures
The proxy is fetched automatically via request.security. You do not need to change any settings when switching between brokers — the indicator detects the symbol and loads the appropriate volume source.
2. Proxy-First Priority
Unlike a simple fallback system, this indicator uses the proxy as the primary volume source for all mapped symbols. This guarantees consistent, real volume data regardless of the broker you are charting on — whether EasyMarkets, FXCM, or any CFD provider. The native volume is only used if the proxy fails or if you explicitly enable "Force Native Volume" in settings.
3. Daily Session Mode
When enabled, the profile anchors to the start of the current daily session and resets automatically at each new day — useful for intraday traders who want to see only today's volume distribution.
4. Daily VWAP Anchor
An optional Volume Weighted Average Price line anchored to the daily session open, calculated using the same proxy volume logic as the profile for accuracy across all brokers.
📐 How to read the indicator
Profile bars (left and right of the vertical axis):
Left side bars = dominant directional volume per price bin
Right side bars = opposing volume per price bin
Deeper color = higher volume concentration at that price level
Longer bars = more activity at that price — key support/resistance zones
The four labels at current price:
SELL% | BUY%
SELL | BUY
──────────────────── ← current price
BUY% | BUY%
BUY | SELL
Upper left (SELL%) — percentage of total volume that was selling above current price
Upper right (BUY%) — percentage of total volume that was buying above current price
Lower left (BUY%) — percentage of total volume that was buying below current price
Lower right (SELL%) — percentage of total volume that was selling below current price
Point of Control (PoC) — dashed line:
Marks the single price level with the highest volume in each quadrant
Strong reference for support and resistance
📊 How to interpret the percentages
Example from chart — USDCAD 15M:
Upper: SELL 2.90% | BUY 3.75%
Lower: BUY 51.79% | SELL 41.57%
Reading:
51.79% of all volume below price was buying → strong buy accumulation below
41.57% of all volume below price was selling → significant sell pressure also present
Only 2.90% + 3.75% above price → very little activity above current price
Interpretation: price is near the top of the range with most activity below
General rules:
Large BUY% below + small SELL% above → bullish bias, buyers in control
Large SELL% above + small BUY% below → bearish bias, sellers in control
Balanced percentages on both sides → price in equilibrium, expect breakout
PoC line in lower quad with high BUY volume → strong support level
PoC line in upper quad with high SELL volume → strong resistance level
⚠️ Important notes
This indicator is a visual analysis tool. It does not generate buy or sell signals.
Past volume distribution does not guarantee future price behavior.
The proxy volume reflects tick volume from the mapped exchange, not actual traded notional value.
On weekends or when markets are closed, volume may be incomplete, affecting the profile.
⚙️ Settings reference
ParameterDefaultDescriptionUse Daily Session ModeOFFON: resets profile each day. OFF: fixed lookbackLookback Period200Bars used when Session Mode is OFFForce Native VolumeOFFON: uses chart's native volume instead of proxyPrice Bins60Number of horizontal price levelsProfile Offset60Distance from last bar (in bars)Upper/Lower QuadsONShow/hide each profile sectionPoCON/OFFShow/hide Point of Control per quadrantShow Daily VWAPONPlots the session VWAP lineBuy ColorGreenProfile buy side colorSell ColorRedProfile sell side colorVWAP ColorWhiteVWAP line color
🙏 Credits
Original quadrant volume profile concept and core structure:
BigBeluga — Quadro Volume Profile
www.pulsewire.com
Released under Mozilla Public License 2.0
mozilla.org Indicator

Indicator

Adaptive Trend Ribbon [Alpha Extract]A sophisticated adaptive trend-following framework that combines volatility-responsive moving averages, ribbon stack analysis, ATR-based trend rails, ADX confirmation, pullback continuation signals, and a real-time confidence dashboard into one complete market regime tool. The indicator is designed to identify bullish and bearish trend environments, filter weak conditions, highlight confirmed trend flips, and provide structured stop guidance through an adaptive ATR rail. By adjusting ribbon sensitivity based on current volatility, the system aims to stay responsive during expansion phases while remaining smoother during quieter market conditions.
🔶 Adaptive Volatility-Based Ribbon Engine
Implements a multi-layer adaptive EMA ribbon that automatically modifies its effective moving-average lengths based on current volatility conditions. When volatility expands, the ribbon becomes more responsive by shortening its dynamic length. When volatility contracts, the ribbon lengthens to reduce noise and avoid unnecessary whipsaw.
volRatioRaw = atrAverage > 0 ? atr / atrAverage : 1.0
volRatio = clamp(volRatioRaw, 0.35, 2.75)
emaFast = adaptiveEma(src, baseFast, volRatio, adaptStrength)
This creates a trend ribbon that adapts to the market environment instead of relying on fixed moving-average behaviour across all conditions.
🔶 Six-Layer Trend Structure
Uses six adaptive moving averages ranging from fast to anchor length to define market structure across multiple trend speeds. The ribbon includes fast, mid, slow, and anchor components, allowing traders to see whether short-term momentum is aligned with broader trend direction.
A clean bullish trend forms when the ribbon is stacked from fastest above slowest, while a clean bearish trend forms when the ribbon is stacked from fastest below slowest. Mixed ribbon conditions indicate compression, transition, or weaker directional conviction.
🔶 Bullish & Bearish Stack Detection
Identifies strong directional alignment through full ribbon stack confirmation. Bullish stack conditions require every faster ribbon layer to sit above the slower layer beneath it, while bearish stack conditions require the opposite alignment.
This gives traders a simple way to distinguish clean trend environments from sideways or indecisive price action.
🔶 ATR Trend Rail System
Features a built-in ATR-based trend stop that acts as the main regime rail. The rail flips direction when price breaks through the active stop level, creating a clear bullish or bearish trend state.
longCandidateStop = railBasis - atr * atrMult
shortCandidateStop = railBasis + atr * atrMult
railDirection := close < trendStop ? -1 : 1
The stop can be based on the ribbon midline, close, or HL2, giving traders flexibility in how the trend rail is anchored.
🔶 Regime Flip Signal Logic
Generates long and short signals when the trend rail flips direction and the confirmation conditions are satisfied. A bullish signal occurs when the regime flips into bullish structure, while a bearish signal occurs when the regime flips into bearish structure.
Signals are filtered through ADX and directional movement confirmation when enabled, helping reduce low-quality flips during weak or choppy market conditions.
🔶 ADX & Directional Movement Confirmation
Integrates ADX confirmation to measure whether the market has enough directional strength to justify a trend signal. The system also checks directional movement by comparing +DI and -DI, allowing bullish regimes to favour positive directional pressure and bearish regimes to favour negative directional pressure.
This confirmation layer helps separate true trend expansion from random price movement.
🔶 Pullback Continuation Alerts
Includes optional pullback continuation logic designed to identify trend resumption after price interacts with the adaptive ribbon. When price pulls into the ribbon area and then closes back in the trend direction, the system can trigger continuation alerts.
This is useful for traders who prefer entering after a trend has already been established rather than only trading the initial regime flip.
🔶 Confidence Scoring Framework
Calculates a real-time trend confidence score by combining multiple components of trend quality, including ribbon stack alignment, price position relative to the ATR rail, ADX strength, directional movement, and spread between fast and anchor ribbon layers.
The score provides a quick snapshot of how strong and confirmed the current trend environment is.
🔶 Dynamic Trend Coloring System
Uses adaptive color logic to visually represent bullish, bearish, and neutral/mixed conditions. Candles, ribbon lines, fills, the ATR stop rail, and the status panel all update according to the current regime.
When ADX confirmation is enabled but the filter has not passed, the system fades the trend color to show that the regime exists but confirmation is weaker.
🔶 Real-Time Status Panel
Features a compact dashboard that displays the most important trend information directly on the chart. The panel includes:
• Current regime
• Confidence percentage
• Confirmation status
• ADX value
• Volatility ratio
• Ribbon stack condition
• Active stop level
This allows traders to quickly assess whether the market is bullish, bearish, filtered, mixed, or entering a stronger trend phase.
🔶 Flexible Risk Rail Basis
Allows the ATR stop rail to be calculated from different price references depending on the trader’s preferred style. Ribbon Mid creates a smoother institutional-style trend rail, Close makes the rail more reactive, and HL2 provides a balanced price reference.
This flexibility makes the indicator suitable for both faster trend-following styles and slower swing-trend systems.
🔶 Clean Overlay Visual Design
Displays the full adaptive ribbon directly on price with optional candle coloring, background regime shading, trend stop plotting, and signal markers. The ribbon uses layered transparency to maintain chart readability while still showing the strength and direction of the trend structure.
The result is a clean visual layout that can be used as a primary trend framework or as a confirmation layer alongside other systems.
🔶 Comprehensive Alert System
Includes alerts for the most important trend events:
• Adaptive Ribbon Long
• Adaptive Ribbon Short
• Bullish Pullback Continuation
• Bearish Pullback Continuation
• Long Trend Exit
• Short Trend Exit
These alerts allow traders to monitor trend flips, pullback continuations, and invalidation events without needing to constantly watch the chart.
🔶 Why Choose Adaptive Trend Ribbon ?
This indicator provides a complete adaptive trend-following environment by combining responsive moving-average structure, volatility-adjusted behaviour, ATR-based trend rails, ADX confirmation, continuation logic, and live confidence scoring. Instead of relying on a single moving average or fixed trend signal, it evaluates multiple layers of trend quality before confirming direction.
The adaptive ribbon helps traders understand whether the market is strongly aligned, weakening, transitioning, or mixed. The ATR rail provides a clear trend invalidation reference, while the confidence panel gives immediate context on whether the trend has enough structure and strength behind it. Perfect for trend-following traders, swing traders, momentum traders, and systematic traders who want a cleaner way to identify confirmed bullish and bearish regimes with built-in risk guidance. Indicator

Indicator

Darvas Box Theory [Alpha Extract]A sophisticated momentum breakout and trend-continuation framework based on Nicolas Darvas’ classic box theory, rebuilt with modern confirmation filters, adaptive risk management, and real-time trade-state tracking. This indicator identifies consolidation ranges, validates breakout conditions through volume and trend confirmation, manages long-side breakout entries, trails stops through higher boxes, and displays a live status dashboard for complete market structure awareness. By combining box compression, volatility filtering, breakout validation, and structured stop logic, the system provides a clean and disciplined framework for trading momentum expansion after consolidation.
🔶 Advanced Darvas Box Detection Engine
Implements a dynamic Darvas box construction model that identifies price consolidation ranges using configurable confirmation bars. The system continuously scans recent market structure, defines the highest high as the box ceiling, the lowest low as the box floor, and validates the range only when the box meets minimum volatility-adjusted height requirements.
candidateTop = ta.highest(high, boxLen)
candidateBottom = ta.lowest(low, boxLen)
heightOk = (candidateTop - candidateBottom) >= atr * minBoxAtr
This ensures boxes are not created from meaningless low-range noise and instead represent tradable compression zones with enough structure to support breakout analysis.
🔶 ATR-Filtered Box Quality Control
Features an adaptive box validation system using Average True Range to measure whether a box has enough height relative to current market volatility. Traders can adjust the Minimum Box Height setting to control how selective the indicator becomes.
A lower ATR threshold creates more boxes and more frequent signals, while a higher threshold filters out weak consolidations and focuses only on larger, cleaner market structures.
🔶 Optional Rising Box Requirement
Includes an optional rising-box filter designed for classic Darvas-style momentum trading. When enabled, the system only accepts new boxes if their ceiling is higher than the previous box top, helping traders focus on progressive bullish structure and avoid lower-quality sideways chop.
This is useful for traders who want to trade continuation setups only when the market is forming higher price ranges.
🔶 Breakout Confirmation Framework
Provides flexible breakout detection using either candle close confirmation or wick-based confirmation. Close mode requires price to close beyond the box boundary for stronger confirmation, while Wick mode reacts as soon as price trades beyond the box level for faster but more aggressive signals.
upBreakRaw = boxReady and (breakoutMode == "Close" ? close > boxTop : high > boxTop)
longSignal = breakoutUp and volumeOk and trendOk
This allows traders to choose between conservative confirmation and faster momentum detection depending on their strategy style.
🔶 Volume Breakout Validation
Integrates volume confirmation to help filter weak breakouts and highlight expansion moves supported by stronger market participation. The system compares current volume against a moving average baseline and requires breakout volume to exceed a configurable multiplier.
This helps identify breakouts with real participation rather than low-volume fakeouts.
🔶 Trend Filter Integration
Uses a configurable EMA trend filter to align breakout signals with the broader market direction. When enabled, long breakout signals are only accepted when price is trading above the selected trend EMA.
This keeps the system focused on momentum continuation setups rather than counter-trend breakouts with weaker follow-through potential.
🔶 Automated Darvas Trade State Engine
Transforms box breakouts into a structured trade-management framework. When price breaks above a completed box with valid trend and volume confirmation, the system enters a long trade state, stores the entry price, initializes the stop level, and begins live trade tracking.
The indicator then monitors whether price continues into higher boxes, generates add signals, or exits when the stop or downside breakdown condition is triggered.
🔶 Add Signal & Higher Box Continuation Logic
Features higher-box continuation logic that identifies additional momentum opportunities while already in a long position. If a new confirmed breakout occurs above the original entry price while the trade is active, the system generates an Add signal and updates the trade structure.
This helps traders scale into trending moves as the market builds new Darvas boxes above the previous structure.
🔶 Adaptive Stop Management System
Provides three different stop modes for flexible risk management:
• Box Floor — places the stop at the bottom of the Darvas box.
• Breached Ceiling — uses the breakout ceiling as the protective reference.
• ATR — applies a volatility-adjusted trailing stop based on ATR.
baseStop = stopMode == "Breached Ceiling" ? boxTop : stopMode == "ATR" ? src - atr * atrStopMult : boxBottom
exitSignal := tradeState == 1 and (src < trailStop or breakoutDown)
This allows traders to choose between structural, breakout-level, or volatility-based protection depending on their trading approach.
🔶 Trail Stop To Higher Boxes
Includes automatic stop advancement as price confirms higher boxes. When enabled, the stop trails upward with stronger box structures, helping lock in gains while allowing the trend to continue.
This creates a disciplined trend-following system that protects profits without exiting too early during strong momentum phases.
🔶 Breakdown & Exit Logic
Implements clean exit handling when price falls below the active trailing stop or breaks down through the box floor. This gives the system a defined invalidation structure and prevents trades from remaining active after momentum has failed.
Exit markers are displayed directly on the chart for fast visual confirmation.
🔶 Real-Time Status Dashboard
Features a compact live dashboard displaying the most important Darvas trade and box information in real time. The table shows:
• Current trade state
• Box top
• Box floor
• Volume ratio
• Trend filter status
• Distance to breakout
• Box height relative to ATR
• Open R multiple
This gives traders an immediate overview of whether the market is forming a box, preparing for breakout, actively in a trade, or filtered by trend/volume conditions.
🔶 Clean Visual Box Architecture
Creates a clear visual representation of forming and completed Darvas boxes using configurable colors, transparency, top and bottom level lines, breakout markers, exit markers, and optional grey candle overlay. Forming boxes are displayed separately from completed bullish or bearish boxes, making it easy to distinguish live consolidation from confirmed breakout structure.
The system also manages historical box limits automatically to keep charts clean and prevent visual overload.
🔶 Performance Optimization & Historical Box Management
Uses efficient array-based storage and automatic cleanup logic to manage historical boxes, lines, and chart objects. Traders can control how many completed boxes remain visible, allowing the indicator to preserve historical context while maintaining smooth PulseWire performance.
This makes the tool suitable for both short-term and long-term chart analysis.
🔶 Comprehensive Alert System
Includes alert conditions for the most important Darvas events:
• Darvas Box Buy
• Darvas Box Add
• Darvas Box Exit
These alerts allow traders to monitor breakout opportunities, continuation setups, and invalidation events without watching the chart constantly.
🔶 Why Choose Darvas Box Theory ?
This indicator modernizes the classic Darvas Box strategy by combining traditional breakout structure with advanced confirmation logic, volatility filtering, dynamic stop management, and real-time trade monitoring. Instead of simply drawing static boxes, the system evaluates whether each range has enough volatility, confirms whether breakouts are backed by volume, checks whether price is aligned with the broader trend, and then manages the trade through structured stop logic.
The result is a clean momentum trading framework designed to help traders identify compression, wait for confirmed expansion, manage entries with discipline, scale into higher-box continuation, and exit when the structure fails. Perfect for trend-following traders, breakout traders, swing traders, and systematic momentum traders looking for a more complete version of the classic Darvas Box methodology.
Indicator

Order Block Matrix Trade Engine [Alpha Extract]A sophisticated institutional-grade order block ecosystem combining advanced liquidity mapping, dynamic volume-distribution visualization, and fully integrated automated trade-engine logic into a unified execution framework. The system identifies high-probability bullish and bearish order blocks through adaptive breadth analysis, overlays volumetric mountain profiling to visualize liquidity concentration inside each block, and automatically converts qualified reactions into fully managed trade setups with real-time performance analytics. By integrating smart mitigation handling, ATR-adaptive risk management, rejection-based confirmations, and live statistical tracking, the indicator delivers a complete order flow trading environment designed for precision execution across trending and ranging markets.
🔶 Advanced Institutional Order Block Detection Engine
Implements a sophisticated order block discovery framework using multi-candle structure analysis combined with ATR-adjusted breadth logic to isolate high-quality institutional accumulation and distribution zones. The system scans for bullish and bearish displacement structures, validates directional intent through sequential candle confirmation, and dynamically defines order block boundaries using either Full Candle mode or Breadth mode for adaptive precision.
= checkObCondition(obLookback)
if is_bullish
topValue = high
botValue = low
if is_bearish
topValue = high
botValue = low
🔶 Liquidity Mountain Volume Profiling System
Features a unique volumetric “mountain” rendering engine that visualizes liquidity density inside each order block through dynamically generated layered volume structures. Instead of traditional flat rectangles, the system creates evolving liquidity formations representing volume concentration and order flow intensity across the zone. Each mountain adapts in real-time based on relative block strength versus average market participation.
The engine applies multiple gaussian distribution curves combined with sinusoidal ridge modulation to simulate realistic institutional liquidity concentration, creating an intuitive representation of where absorption and participation occurred inside the order block.
🔶 Smart Order Block Strength Classification
Calculates dynamic order block strength using relative volume normalization against rolling market participation averages. Each block receives a live strength multiplier representing institutional conviction.
strength = ta.sma(volume, 20) > 0 ? block.totalVolume / ta.sma(volume, 20) : na
Higher strength blocks represent stronger participation and receive enhanced trade priority within the trade engine. This allows traders to isolate high-conviction zones instead of treating all order blocks equally.
🔶 Adaptive Mitigation & Invalidity Framework
Implements intelligent mitigation handling to continuously maintain chart cleanliness and signal quality. The system automatically removes invalidated order blocks once price fully breaches the defined risk boundary using configurable Close or Wick mitigation logic.
Close-based mitigation waits for candle body confirmation beyond the zone, while Wick-based mitigation aggressively removes invalidated structures immediately upon liquidity sweep. This flexibility allows adaptation between conservative and aggressive execution styles.
🔶 Automated Order Block Trade Engine
Transforms passive order block analysis into a complete semi-automated execution framework. Once price interacts with a qualified order block, the system automatically generates trade entries, calculates stop-loss placement, projects take-profit targets, and tracks the trade lifecycle in real time.
The engine supports both:
• Touch Entries — executes immediately when price enters the order block.
• Rejection Entries — waits for confirmation rejection before triggering.
triggered = trade_triggerMode == "Touch" ? inside : rejected
This allows traders to adapt between aggressive front-running entries and more conservative confirmation-based execution.
🔶 Dynamic Risk-to-Reward Projection System
Features fully automated risk management architecture calculating stop-loss and take-profit placement immediately upon entry. The system supports both:
• Block Edge Stops — uses structural order block invalidation.
• ATR Stops — volatility-adjusted dynamic stop placement.
Take-profit targets are generated through configurable risk-to-reward multipliers.
risk = math.abs(obEntry - obSL)
obTP := obEntry + risk * trade_rr
This creates standardized trade management across all setups while maintaining volatility awareness.
🔶 Real-Time Trade Lifecycle Tracking
Provides comprehensive active trade monitoring with live entry, stop-loss, take-profit, floating R-multiple, timer tracking, and duration analytics directly on the chart.
The system continuously tracks:
• Live R performance
• Bars held
• Time in trade
• Strength of originating order block
• Trade direction
• Open trade status
All statistics update in real time without repainting.
🔶 Institutional Performance Analytics Dashboard
Features a fully integrated professional trade statistics panel providing institutional-level strategy analytics directly inside PulseWire.
The framework tracks:
• Total trades
• Win rate
• Net R
• Average R
• Profit factor
• Buy vs sell performance
• Best and worst trades
• Average holding duration
• Winning and losing streaks
profitFactor = obSumLossR > 0 ? obSumWinR / obSumLossR : na
avgR = obTotalTrades > 0 ? obNetR / obTotalTrades : na
This transforms the indicator into a fully self-monitoring execution environment rather than a simple visual overlay.
🔶 Advanced Visual Architecture
Creates an institutional-quality visual experience through layered transparency systems, dynamic border rendering, volumetric liquidity structures, and adaptive color gradients.
Bullish order blocks use deep liquidity teal structures while bearish blocks utilize aggressive distribution crimson tones. Volume badges dynamically update with:
• Total order block volume
• Relative strength multiplier
• Block direction
The system maintains full visual clarity even during high-density market conditions.
🔶 Smart Block Overlap Resolution
Implements automatic overlapping order block resolution preventing redundant liquidity zones from cluttering the chart. When new blocks intersect existing structures, the framework intelligently prioritizes the latest active institutional zone and removes obsolete overlapping regions.
This creates significantly cleaner market structure visualization compared to traditional order block indicators.
🔶 Window-Based Performance Optimization
Features advanced processing optimization using configurable historical windowing to reduce unnecessary rendering overhead while maintaining full historical integrity.
This allows smooth performance even on lower timeframes with dense historical data.
🔶 Non-Repainting Confirmation Logic
Built using fully confirmed bar-state logic ensuring all order blocks, entries, exits, and statistical calculations remain stable after candle close. The framework avoids intrabar repainting behaviour commonly found in lower-quality order block systems.
This guarantees consistent backtesting behaviour and reliable live-market execution.
🔶 Comprehensive Alert Ecosystem
Provides a complete professional alert infrastructure supporting both discretionary traders and automated webhook systems.
Alerts include:
• New Bullish Order Block
• New Bearish Order Block
• Bullish Rejection Confirmation
• Bearish Rejection Confirmation
• Buy Entry Trigger
• Sell Entry Trigger
• Take Profit Hit
• Stop Loss Hit
Webhook-ready JSON payloads enable direct integration into external automation systems and execution infrastructure.
🔶 Why Choose Order Block Matrix Trade Engine ?
This indicator goes far beyond traditional order block visualization by combining institutional liquidity mapping, volumetric participation analysis, automated execution logic, and professional-grade statistical tracking into one unified framework. Rather than simply drawing supply and demand zones, the system actively interprets order flow quality, measures participation strength, filters low-conviction setups, and transforms reactions into fully managed trade structures with integrated risk management. Indicator

Market Structure Trend Matrix [BigBeluga]Market Structure Trend Matrix is a comprehensive technical analysis framework engineered for traders who demand precision in identifying market regimes and trend expansions. By integrating automated Market Structure (MS) detection with volatility-adjusted risk parameters, this indicator provides a systematic roadmap for navigating complex price action.
The tool focuses on the Change of Character (ChoCh) —the critical moment when a previous trend structure breaks and a new directional bias begins.
🔵 ARCHITECTURE & CORE LOGIC
Automated Structure Mapping: The engine uses a sophisticated pivot-detection algorithm (MS Length) to scan for institutional-grade swing highs and lows. It ignores minor retail noise, drawing structural lines only when significant supply or demand zones are breached.
The ChoCh Engine: When price crosses a recent pivot high or low, the indicator prints a "ChoCh" label. This represents a fundamental shift in market sentiment, signaling that the current trend has likely terminated and a new cycle has begun.
Infinite Expansion Targets: One of the most advanced features of the Matrix is its ability to project sequential, infinite targets. These levels are not static; they are calculated using Average True Range (ATR) multipliers, meaning they expand and contract based on current market volatility.
Volatility-Anchored Trailing Stop: To ensure professional-grade risk management, the indicator plots a dynamic ATR Trailing Stop . This line acts as a "ratchet" mechanism—it moves closer to price during the trend expansion but stays firm during minor pullbacks, providing a clear exit point if the trend truly fails.
🔵 ADVANCED FEATURES & UPDATES
Target History Control: This latest version includes a Show History toggle. You can choose to keep the chart clean by only displaying the Active Target , or you can enable history to see a visual record of every target hit during the trend, complete with historical percentage labels.
Dynamic Trailing Stop Visibility: The Show Trailing Stop feature allows you to toggle the visibility of the ATR stop line and its associated background fill, giving you full control over the visual "weight" on your workspace.
Percentage Profit Labels: Every time price reaches an expansion target, the script automatically plots a label showing the percentage gain from the initial ChoCh entry point.
Volatility-Adjusted Spacing: Both the trailing stop and the target steps use ATR-based calculations. This ensures that the indicator remains effective across all asset classes—from volatile Cryptocurrencies to stable Forex pairs.
🔵 HOW TO INTERPRET THE MATRIX
Bullish State (Green Matrix): Activated when price breaks above a major Pivot High. The indicator projects upward expansion targets and maintains a trailing stop below the price.
Bearish State (Pink Matrix): Activated when price breaks below a major Pivot Low. The indicator projects downward targets and maintains a trailing stop above the price.
The Target Cascade: As price hits a target, the indicator instantly projects the next level. If price continues to expand, you will see a "cascade" of dashed lines, each representing a deeper extension into the trend.
🔵 APPLICATION IN TRADING
Scalping & Day Trading: Set the Market Structure Length to a lower value (e.g., 5-8) to capture fast intraday pivots and expansion moves on 1m or 5m charts.
Swing Trading: Use a higher length (e.g., 15-20) to identify macro structure shifts on Daily or H4 timeframes, allowing the ATR targets to guide your long-term profit-taking.
Risk-Reward Management: The distance between the ChoCh Entry and the ATR Trailing Stop provides an objective risk measurement, while the sequential targets provide clear reward milestones.
Filtering False Breaks: By using an ATR Multiplier for the trailing stop, the Matrix avoids many of the common "whipsaws" found in standard trend-following systems.
🔵 CONCLUSION
Market Structure Trend Matrix is more than a signal tool; it is a visual framework for objective decision-making. By anchoring your trading to structural pivots and volatility-based targets, you remove the guesswork from trend following. Whether you are looking for a clean "ChoCh" entry or a systematic way to trail your profits during a massive expansion, the Trend Matrix provides the data and clarity required to trade like a professional. Indicator

Indicator

Ultimate Confluence Engine Synapse v6Ultimate Confluence Engine v6
Description:
Ultimate Confluence Engine v6 is a multi-layer signal confluence system that combines seven independent analytical engines into a single, unified buy/sell framework. A signal fires only when all active filters agree — dramatically reducing noise and false positives compared to single-indicator approaches.
How It Works
The indicator stacks seven confirmation layers. Every active layer must pass before a signal label appears on the chart.
① Evasive SuperTrend A volatility-adaptive SuperTrend that adjusts its multiplier dynamically using ATR, volume weight, and trend correlation strength. A noise threshold prevents premature flips during sideways chop; an expansion alpha gently repositions the band during consolidation rather than snapping aggressively.
② KNN Machine Learning Filter A K-Nearest Neighbors classifier trained on four normalized features: RSI momentum, price deviation from its moving average, RSI signal divergence, and a Choppiness Index component. The model evaluates the current bar against up to 500 historical samples, weights neighbors by Gaussian distance, and outputs a directional probability. Signals pass only when the bullish or bearish probability exceeds a configurable threshold (default 0.65).
③ Cumulative Volume Delta (CVD) Intrabar buying and selling pressure is estimated from the high-low-close relationship and accumulated into a running CVD. A moving average of CVD acts as a trend filter — buy signals require CVD above its MA, sell signals require the opposite.
④ VWAP Bands Session VWAP is computed from cumulative volume-weighted prices. Standard deviation bands (±1σ, ±2σ) are plotted. The filter confirms directional bias: long signals require price above VWAP, short signals require price below.
⑤ Candlestick Pattern Recognition Five bullish reversal patterns are scored per bar: Bullish Engulfing, Hammer, Morning Star, Bullish Harami, and Three Rising Soldiers. A minimum pattern count threshold (default 1) gates the signal. The score and matched pattern names appear in the signal tooltip.
⑥ Volume Spike Confirmation A volume multiplier threshold (default 1.3×) relative to a rolling average filters out low-conviction bars. Volume ratio also dynamically adjusts ribbon opacity — higher volume produces a more vivid ribbon.
⑦ Multi-Timeframe ADX Trend Alignment Optional MTF filter queries ADX trend direction across 1h, 4h, and daily timeframes. A minimum count of aligned bullish or bearish timeframes (configurable) must be met. Disabled by default for performance; enable when trend alignment context matters.
Quality Score
Each signal receives a quality rating (WEAK / GOOD / STRONG / EXCELLENT) based on volume spike magnitude and ATR expansion. The score is displayed in the dashboard and in the signal tooltip.
Trend Duration Prediction
After each SuperTrend flip, the indicator samples historical durations of the same trend direction, computes an exponentially-weighted average (EWA) and median, and projects a predicted trend length as a fading box sequence. Box opacity decreases over time to represent declining probability. Probability percentages (85% / 50% / 20% / 5%) are marked along the projection. Prediction length is adjusted by trading style multiplier, asset type multiplier, and current ATR context.
Trading Style Presets
Auto-detection maps the current timeframe to Scalping, Day Trading, Swing, or Position. Each preset adjusts SuperTrend ATR length, multiplier, and prediction weighting automatically. A Custom mode exposes all parameters manually.
Visuals
15-layer gradient ribbon between close and SuperTrend band, color-coded bull/bear, opacity modulated by volume
SuperTrend line rendered as solid, dotted (noisy zone), or circle (flip bar)
VWAP with ±1σ and ±2σ bands
KNN confidence expressed as per-bar color gradient
Buy/Sell labels placed at flip bars only — not on every bar
Bottom-right dashboard showing all filter states, quality score, and trend bar count
How to Use
Add to any chart. Style auto-detects from your timeframe.
A Buy label marks confirmed bullish SuperTrend flips where all active filters agree. A Sell label marks confirmed bearish flips with the same requirement.
Hover the label tooltip for full signal breakdown: ML probability, CVD direction, VWAP position, volume ratio, MTF alignment, pattern matches, and quality score.
Use the prediction box to estimate approximate trend duration — treat it as a probabilistic guide, not a target.
Disable any filter layer independently via the input groups if your setup or timeframe does not require it.
Set alerts using the four built-in alert conditions: Ultimate BUY, Ultimate SELL, ST → Bull, ST → Bear.
Settings Overview
Group
Key Inputs
Trading Style
Auto / Scalping / Day Trading / Swing / Position / Custom
Evasive SuperTrend
ATR Length, Multiplier, Noise Threshold, Adaptive toggle
KNN ML
K-Neighbors, Sample Window, Stride, Probability Threshold
CVD
Enable toggle, MA Length
VWAP
Enable toggle, Show toggle, Band multipliers
Patterns
Minimum pattern count (0 = disabled)
Volume + MTF
Volume multiplier, MTF toggle, Min bullish TFs
Prediction
Mode (Simple / Standard / Advanced), Asset Type, EWA Decay
Notes
Signals appear on confirmed bars only (barstate.isconfirmed) — no repainting on close.
KNN recalculates every 3 bars to preserve chart performance.
MTF filter uses lookahead_on on historical data; disable if strict no-lookahead compliance is required for your workflow.
Past signal accuracy does not guarantee future results. Use in conjunction with your own risk management framework. Indicator

Indicator

Indicator
