Adaptive SuperTrend AI - Regime-Tuned [Dots3Red]📈 ADAPTIVE SUPERTREND AI — REGIME-TUNED
Classic SuperTrend uses one fixed ATR multiplier forever. That single number is a compromise: tight enough to track trends closely, it whipsaws during ranges; wide enough to survive ranges, it lags badly once a real trend starts. This script replaces the fixed multiplier with one that changes based on what kind of market is actually happening, using the same regime-detection engine shared across the Dots3Red catalog.
🧠 THE REGIME ENGINE
Every bar is classified into one of four states using ADX and the Choppiness Index together:
• 📈 TRENDING — ADX confirms directional strength and Choppiness confirms low chop
• 🔁 RANGING — the opposite: weak directional strength, high chop
• ⚡ VOLATILE — current ATR has expanded well beyond its baseline, regardless of direction or chop
• ❔ UNCERTAIN — none of the above conditions are clearly met
The raw regime reading is smoothed by taking the most frequent classification over a short lookback window, so a single noisy bar can't flip the regime label back and forth.
🤔 WHY RANGING GETS THE WIDEST BAND, NOT TRENDING
This is the part that looks backwards at first glance, so it's worth explaining directly. A ranging market chops back and forth around a mean — if the band were narrow here, ordinary noise would cross it constantly, causing false flips. So RANGING gets the widest multiplier (default 3.5×), letting normal chop stay inside the band. A TRENDING market is moving with genuine conviction, so a moderate multiplier (default 2.5×) tracks the move closely without giving back excessive profit before flipping on an actual reversal. VOLATILE conditions get the widest multiplier of all (default 4.5×) as a purely defensive setting, since sudden expansion is unpredictable by nature.
When the regime changes, the active multiplier doesn't jump to its new value instantly — it glides toward it over a configurable number of bars. This prevents the band from visibly teleporting on a regime transition, which would otherwise look jarring and could itself trigger a false flip right at the transition point.
The underlying band mechanics — the ratcheting upper/lower band logic, and a flip only when price closes beyond the active band — are the same as classic SuperTrend. Only the multiplier driving the band width is dynamic.
✅ THE CONFIDENCE LAYER
A SuperTrend flip is a single binary event: price crossed the band, direction changed. This script adds a secondary read on how convincing that flip actually is, using 8 independent checks against the new direction:
1. Close vs. a trend moving average
2. MACD histogram sign
3. Recent higher-high / lower-low structure
4. Close vs. the SuperTrend's own midline (hl2)
5. RSI side of 50
6. +DI vs. -DI dominance
7. Volume above its moving average on a trend-direction bar
8. Whether the regime is currently TRENDING
Every confirmed flip shows this count directly on its label — "▲ 6/8" means 6 of the 8 checks currently agree with the new uptrend. A flip with 7/8 agreement and one with 3/8 are treated identically by the raw band mechanics, but this layer gives a way to distinguish a well-supported flip from a marginal one at a glance.
🎯 FLIP WIN-RATE TRACKING
Each flip is graded once the following flip occurs: did price actually finish above the flip price (for an up-flip) or below it (for a down-flip) by the time direction changed again? This produces a running win rate — for example "58% (n=34)" — shown in the dashboard. It is a simple, honest measure of how the flips on this specific chart have actually played out, not a backtest or a promise about future flips.
🔒 NON-REPAINTING
Flips, confidence readings, and labels are all evaluated only on confirmed (closed) bars. A flip that appears on the chart will not later disappear or move to a different bar as new price data arrives.
🎨 VISUALS AND CUSTOMIZATION
The SuperTrend line and gradient fill are colored by current direction. Flip labels appear directly on confirmed flip bars with their confidence count. An optional background tint can shade the chart by current regime. All four core colors (bullish, bearish, volatile/warning, and uncertain/neutral) are fully customizable in settings, independent of the script's default palette.
The dashboard (position configurable) shows: current direction, current regime, the active ATR multiplier, the confidence count with a progress bar, the running flip win rate, and the raw ADX, Choppiness, and ATR ratio readings behind the regime classification.
🧭 HOW TO USE
👀 Reading the line and fill — the colored line and gradient fill show current direction at a glance. This is the same information classic SuperTrend gives you; the difference here is in how the band width behind that line was chosen.
🧠 Check the regime before trusting the band width — the dashboard's Regime row tells you why the band is currently as wide (or narrow) as it is. A band that looks unusually wide isn't a bug — it likely means the engine has classified the market as RANGING or VOLATILE and widened defensively. Knowing the current regime helps set expectations for how the band will behave if conditions stay the same.
✅ Use the confidence count to gauge flip quality, not to filter flips — every flip is real and non-repainting regardless of its confidence count. The count is a lens for judging how broadly supported a given flip is, not a gate that decides whether one occurs. A "▲ 7/8" flip and a "▲ 3/8" flip both mean the band was crossed; the number tells you how much independent agreement existed at that moment, which is useful context when deciding how much weight to put on that particular signal versus your own analysis.
🎯 Watch the flip win rate as a running self-check on this chart — because it only starts once flips have accumulated and been graded, treat an early or low-sample win rate as inconclusive rather than a verdict. It becomes more informative the longer the script runs on a given symbol and timeframe.
🔔 Regime changes are themselves informative — the alert for a regime change fires independently of any flip. A shift from RANGING to TRENDING, for example, can be useful context on its own, since it signals the band is about to glide toward a different multiplier even before any flip occurs.
🚫 This script describes band behavior, not entries or exits — it does not tell you when to open or close a position. Use it as one input alongside price action, structure, and whatever other analysis you already rely on.
⚙️ SETTINGS
📈 SuperTrend Core
• ATR Length
• Factor — Trending / Ranging / Volatile / Uncertain — the four regime-driven multipliers
• Factor Transition (bars) — how gradually the multiplier glides between regimes
🧠 Regime Engine
• ADX Length, Choppiness Length, ATR Baseline Period
• Trending / Ranging Thresholds — where the combined ADX+Choppiness score is classified
• Volatile ATR Multiple — how far above baseline ATR counts as volatility expansion
• Regime Smoothing — lookback window for the majority-vote smoothing
✅ Confidence Layer
• Trend MA Length, RSI Length, Structure Lookback — parameters for the 8 confidence checks
🎨 Visualization
• Gradient Fill, Flip Labels, Regime Background Tint — each toggleable independently
• Full color customization for all four regime/direction colors
🖥️ Dashboard
• Show/hide, position
📝 NOTES
The regime engine needs a short warm-up period before its smoothing window is fully populated; early bars on a fresh chart may show less stable regime labels than bars further along. The flip win rate starts empty and only becomes meaningful after several flips have occurred and been graded.
⚠️ DISCLAIMER
This is an analytical and visualization tool. It does not generate trade signals and does not constitute financial advice. Historical flip win rate does not guarantee future performance. אינדיקטור

Volume Forge█ OVERVIEW
Volume Forge is a modular volume flow analysis panel designed to assess the quality and direction of market activity by combining several complementary volume analysis methods.
Most volume tools answer only one question. Delta shows buying and selling pressure. RVOL indicates whether volume is above average. CMF measures capital flow. Weis Wave determines the direction of the dominant wave, while volume efficiency analysis helps detect absorption. Each of these tools is valuable, but when analyzed separately they present only a fragment of the market picture.
Volume Forge was designed as a modular system because a single volume indicator does not allow the market to be evaluated from a broader perspective. High volume does not yet mean buyer dominance. Positive delta does not necessarily mean capital inflow. Strong money flow does not always translate into an efficient price move. Only the mutual agreement of several independent methods makes it possible to determine whether the observed impulse is truly supported by volume.
Each module analyzes a different aspect of the same phenomenon, while the central element of the indicator is Flow Confluence – a weighted scoring system that compares the results of all components and evaluates the degree of their agreement. Instead of manually analyzing several separate indicators, the user receives one coherent panel that shows both the details of individual metrics and their final assessment.
The result is a tool that allows multidimensional volume analysis – from short-term buying and selling pressure, through relative market activity strength and capital flow, to the evaluation of signal agreement and the detection of potential signs of trend exhaustion.
█ CONCEPTS
Delta Oscillator
Delta Oscillator is the main module of the indicator and is responsible for assessing the direction of buying and selling pressure. Instead of using real delta from the futures market, it uses approximate directional volume calculated from the relationship between the candle's open and close, scaled by the candle's total range. The values are then accumulated and smoothed, creating an oscillator that shows the dominance of one side of the market.
Delta primarily answers the question:
Is buying or selling pressure currently dominant?
Relative Volume (RVOL)
RVOL compares current volume with its historical average, showing whether market activity is average, elevated or extreme.
The direction of a price move alone says little without information about the strength of market participation. RVOL allows impulses supported by high activity to be distinguished from moves that occur on low volume.
RVOL answers the question:
Is the current move taking place on sufficiently high volume?
Chaikin Money Flow (CMF)
CMF analyzes capital flow by taking into account both volume and the position of the close within the candle’s range.
Unlike Delta, which measures short-term directional pressure, CMF shows whether capital is actually flowing into or out of the instrument. This allows it to confirm or challenge signals generated by the other modules.
CMF answers the question:
Is money actually flowing into the market?
Volume Efficiency / Climax
High volume does not always lead to a large price move. Sometimes the market generates very high activity while the price remains almost motionless.
The Volume Efficiency module identifies exactly these situations by comparing the size of the price move with volume and filtering them relative to ATR. High volume with low efficiency may indicate absorption or the final phase of an impulse.
This is an informational module that provides additional context but does not affect the final Flow Confluence score.
Weis Wave
Weis Wave presents the direction of the dominant market wave instead of analyzing individual candles.
The module uses ATR-based volatility to determine moments of direction change and displays a subtle background that shows the currently dominant wave.
It answers the question:
What is the broader direction of market movement?
Flow Confluence
Flow Confluence is the most important element of the entire indicator.
It is not another oscillator, but analyzes the agreement of all the remaining modules. Delta, Delta direction, RVOL, CMF level, CMF direction and Weis Wave cast votes for the buying or selling side. Each component has its own weight, so the user can decide which elements should have the greatest importance.
The Flow Confluence table shows both the number of agreeing modules and the final point score. Signals appear only when the obtained score exceeds the defined threshold.
Flow Confluence answers the question:
Do all volume analysis methods point in the same direction?
Divergence Detection
The final layer is the analysis of divergences between price and the Delta oscillator.
If price makes a new extreme while Delta does not confirm the move, this may indicate weakening pressure from one side of the market and increase the probability of a correction or trend reversal.
Divergences serve a warning function and provide additional context when interpreting the other modules.
Why combine multiple volume tools?
Each method analyzes a different aspect of volume flow:
• Delta → Who currently dominates – buyers or sellers?
• RVOL → Is market activity high enough?
• CMF → Is capital actually flowing in or out?
• Volume Efficiency → Does volume translate into price movement, or is it being absorbed?
• Weis Wave → What is the dominant direction of the broader wave?
• Flow Confluence → Do all modules confirm the same scenario?
• Divergences → Is price starting to diverge from volume?
█ FEATURES
Oscillator Settings
• Show Delta Oscillator – displays the main Delta oscillator together with gradient fill. Hiding the oscillator does not disable its calculations – the module continues to participate in the Flow Confluence scoring.
• Cumulative Delta Length – number of bars used to calculate cumulative directional volume.
• Smoothing Length (EMA) – length of the EMA that smooths the Delta oscillator. Higher values produce a smoother but slower-reacting oscillator.
• Delta Area Gradient Transparency – sets the transparency of the fill between the Delta oscillator and the zero level.
RVOL Settings
• Show RVOL Histogram – displays the Relative Volume histogram. Hiding the histogram does not disable calculations – RVOL continues to feed the Climax and Flow Confluence modules.
• RVOL Average Length – number of bars used to calculate the average reference volume.
• Threshold – Weak – level above which volume is considered slightly elevated.
• Threshold – Medium – medium-high volume level. It is also used by the Flow Confluence scoring.
• Threshold – Strong – defines the strong Relative Volume level.
• Threshold – Extreme – defines the exceptionally high volume level used for the strongest histogram highlighting.
CMF Settings
• Show CMF – displays the Chaikin Money Flow wave above the overbought level and below the oversold level.
• CMF Period – number of bars used for Chaikin Money Flow calculations.
• CMF Gradient Transparency – sets the transparency of the CMF wave gradient fill.
Volume Efficiency
• Show Climax / Absorption Markers – displays markers on candles where very high volume did not translate into a correspondingly large price move, which may indicate absorption or culmination of activity.
• Efficiency Normalization Period – number of bars used to normalize volume efficiency.
• RVOL Threshold for Climax / Absorption – minimum Relative Volume required to classify a candle as potential absorption.
• Max Normalized Efficiency – maximum allowed price move efficiency. Lower values result in more selective absorption detection.
• Max Candle Range relative to ATR – prevents large impulsive candles from being marked as absorption by limiting their maximum range relative to ATR.
Weis Wave – Oscillator Background
• Highlight background by Weis Wave direction – colors the pane background according to the direction of the current Weis Wave.
• ATR Length – ATR period used to determine the minimum move required to change wave direction.
• ATR Multiplier – determines how large a price move is required to reverse the Weis Wave direction.
• Highlight Transparency – transparency of the Weis Wave background.
• Highlight Height – height of the highlighted area above the overbought level or below the oversold level.
Divergence Settings
• Enable Divergence Detection – activates detection of divergences between price and the Delta oscillator.
• Pivot Length (Left / Right) – number of bars required to confirm local pivots used when searching for divergences.
Threshold Levels
• Overbought Threshold – defines the Delta oscillator level considered market overbought.
• Oversold Threshold – defines the Delta oscillator level considered market oversold.
• OB/OS Line Width – thickness of the overbought and oversold level lines.
• OB/OS Gradient Transparency – Close to Level – sets line visibility when the oscillator is near the level.
• OB/OS Gradient Transparency – Far From Level – sets line visibility when the oscillator is far from the level.
Flow Confluence
• Show Flow Confluence Table – displays the table summarizing all modules participating in the scoring.
• Table Position – sets the position of the table on the chart.
• Table Text Size – sets the font size.
Flow Confluence – Weights
Each module can receive its own weight that determines its influence on the final point score.
• Weight: Delta Oscillator – points awarded for the oscillator position relative to the zero level.
• Weight: Delta Direction – points awarded for the rise or fall of the Delta oscillator.
• Weight: RVOL – points awarded when Relative Volume exceeds the medium threshold in line with candle direction.
• Weight: CMF Level – points awarded for confirmation of positive or negative capital flow.
• Weight: CMF Direction – points awarded for accelerating or weakening capital flow.
• Weight: Weis Wave – points awarded for agreement with the direction of the current Weis Wave.
Flow Confluence – Signals
• Enable Flow Confluence Signal – displays BUY and SELL diamonds after the score exceeds the defined threshold.
Signals appear while the candle is still forming, but due to price fluctuations they may also disappear during that time. The signal becomes permanent and does not disappear only after the candle closes.
• Minimum score for a signal – minimum number of points required to generate a signal.
• Signal only on first occurrence – prevents multiple signals from being displayed while the same condition remains active.
• Buy Signal Color – color of the bullish diamonds.
• Sell Signal Color – color of the bearish diamonds.
Colors
• Zero Line – color of the Delta oscillator zero level.
• Bullish Color – main color used by all positive elements of the indicator.
• Bearish Color – main color used by all negative elements of the indicator.
█ APPLICATIONS
Assessing the quality of market moves
The primary use of the indicator is to evaluate whether the current price move is truly supported by volume. By analyzing several independent metrics the user receives a much more complete picture than when using a single volume indicator.
Filtering weak impulses
Not every dynamic price move is backed by adequate volume. Volume Forge helps distinguish impulses supported by real market activity from moves that occur with weak volume confirmation.
Detecting volume absorption
The Climax module identifies situations in which very high volume does not translate into a correspondingly large price move. This may indicate order absorption by larger market participants, profit-taking or gradual exhaustion of the impulse.
Confirming trend direction
Simultaneous analysis of Delta, CMF and Weis Wave makes it possible to determine whether the dominant market direction is confirmed by different aspects of volume flow.
Detecting potential reversals
Divergences between price and the Delta oscillator can signal weakening buying or selling pressure even before a clear trend change appears.
Building a custom volume analysis model
Thanks to the ability to individually weight each module, the user can create their own market assessment model. For example, one trader may place greater emphasis on Delta and RVOL, while another may consider CMF and Weis Wave more important elements of their strategy.
█ NOTES
• Hiding a given module affects only its display. Calculations continue to run in the background and remain available to the Flow Confluence system.
• The Climax / Absorption module is purely informational and does not participate in the final scoring.
• Divergences indicate a discrepancy between price and the Delta oscillator and should be treated as a warning signal, not an automatic reversal signal.
• Flow Confluence signals are best used as a confirming element of market analysis together with structure, price action, support and resistance zones, momentum or other technical analysis tools.
• All module weights are fully configurable, allowing the user to adapt the volume assessment model to their own trading style while retaining the same multi-layered volume flow analysis logic. אינדיקטור

אסטרטגייה

Razor Fractal MirrorHistorical analog projection and market-state intelligence
Razor Fractal Mirror scans the recent history of the current chart for past price structures that resemble what's happening right now, then projects how those historical structures resolved forward in time — as a probabilistic scenario, not a prediction.
What It Does
1. Structure Matching
The indicator normalizes the last Pattern Length bars (log-return or percent-change shape, user's choice) and compares that shape against thousands of historical windows going back up to the configured Historical Search Depth. Each candidate is scored on three components:
• Shape correlation — how closely the normalized price path matches
• Normalized error — RMSE between the current and candidate paths
• Regime compatibility (optional) — whether the candidate occurred in a similar trend/volatility regime, measured via EMA distance and ATR-normalized volatility
These three scores combine into a single composite similarity score, weighted by user-configurable inputs.
2. Analog Selection
The engine keeps the three strongest, non-overlapping matches — minimum spacing is enforced so it isn't just picking adjacent bars of the same move — that clear the minimum similarity threshold.
3. Forward Projection
For each matched analog, the indicator replays what price actually did in the bars after that historical structure, rescaled proportionally to the current price. These are blended into a similarity-weighted consensus path, with the individual analog paths shown as secondary "mirror" lines and a confidence cloud representing the spread between them.
4. Mirror Quality Scoring
A composite 0–100 score (graded A+ through D) built from average similarity, regime match, path stability (agreement between analogs plus cloud compactness), and outcome reliability (historical reward-to-risk and target-hit rates from those same analogs).
5. Decision Layer
Combines Mirror Quality, analog agreement, projected move size (in ATR), and optional multi-timeframe bias fusion (four configurable timeframes) into a state: ACTIONABLE, WATCH, or AVOID. Includes early and confirmation checkpoints plus a calculated invalidation level.
6. Live Lifecycle Tracking
Once a mirror is locked, the indicator tracks price adherence to the projected path bar-by-bar, flags drift or invalidation in real time, and records the eventual outcome into a rolling forecast library. That library feeds an adaptive "analog reputation" score that adjusts future decision scoring based on how this specific setup's projections have actually performed — and reports whether the model is trending IMPROVING, STABLE, or DEGRADING.
7. Projection Anchoring
Three modes control how projections behave once drawn: Locked Snapshot (freezes the projection at capture so it doesn't repaint as price moves), Hybrid (controlled refresh), and Live Projection (recalculates continuously).
Why It's Useful
Most "pattern matching" tools just eyeball similar-looking chart shapes. This engine quantifies similarity mathematically (correlation, error, and regime fit), requires multiple independent historical analogs to agree before calling a setup actionable, and — critically — tracks its own projections against real subsequent price action so traders can see adherence, drift, and invalidation as they happen rather than only in hindsight.
Why It's Unique
• Analog selection uses a three-factor composite score, not simple pattern-shape correlation alone.
• Self-tracking forecasts: locked projections are graded against real outcomes and feed an adaptive reputation score — the tool has a memory of its own track record.
• Snapshot anchoring prevents repainting of the displayed projection, addressing a common criticism of analog and projection-style indicators.
• Multi-timeframe fusion cross-checks the projected direction against bias and confidence readings from four additional timeframes before flagging a setup actionable.
Important Notes
Historical similarity does not guarantee a repeated outcome. Projections are analytical scenarios derived from historical analog behavior, not financial advice or a guarantee of future price action. Always combine with proper risk management and a trade plan.
אינדיקטור

TF: VCMA Trend (VCT)TradingFlow: VCMA Trend (VCT)
TradingFlow: VCMA Trend (VCT) is a trend-visualization indicator built on the Vector Coherence Moving Average (VCMA). It changes speed according to the directional consistency of recent price movement, then adds a confirmed low-coherence state, two display modes, and optional low-coherence visuals. The default Dual VCMA Lines mode shows separate Fast and Slow averages, while VCMA Trend Line mode presents one adaptive line with slope colors.
The purpose of VCMA Trend is to make the adaptive line easier to use as trend context without giving every price shock the same importance as a sustained move. When recent vectors point in a consistent direction and several price changes contribute to that result, the VCMA core becomes more responsive. When the path is irregular, oscillatory, or dominated by too little supporting movement, it slows down. A final WMA softens residual movement before the trend visuals are applied.
How the VCMA Core Is Calculated
1. Delay-Coordinate Price Path
VCMA begins with the bar-to-bar change in the selected Source:
d(t) = Source(t) - Source(t-1)
It then represents price as a point on a two-dimensional delay-coordinate path:
X(t) =
Moving from X(t-1) to X(t) creates the lag vector:
z(t) = X(t) - X(t-1) =
Magnitude(t) = sqrt
This representation contains information about both the current price increment and the immediately preceding increment. Persistent movement tends to produce vectors pointing in a similar direction. Back-and-forth movement produces vectors whose directions disagree and cancel when added together.
2. Vector Coherence
Over the selected Coherence Length, VCMA compares the straight-line displacement of this path with the total distance it traveled. Equivalently, it compares the length of the summed vector with the sum of all individual vector lengths:
Sum Vector =
Vector Coherence (rho) = Length of Sum Vector / Sum Magnitude(t)
In expanded form:
rho = sqrt / Sum sqrt
In this form, rho is a two-dimensional path-efficiency, or straightness, ratio.
The triangle inequality keeps rho between 0 and 1. A reading near 1 means the lag vectors are strongly aligned. A reading near 0 means their directions largely cancel. Because both parts of the ratio scale with price movement, the measurement is scale-free and can be used across instruments with different price levels.
3. Effective-Move Support
A coherence ratio alone can become high after one isolated jump because a single large vector has nothing opposing it. VCMA addresses this with an effective-move calculation based on vector magnitudes:
Effective Moves = (Sum Magnitude)^2 / Sum Magnitude^2
This is an effective sample-size measure, not a literal count of bars. It is low when one move dominates the window and increases when several moves make meaningful contributions.
Support = Clamp
The Effective Moves for Full Speed setting controls the target. With the default value of 3, one dominant move receives little support, while a direction backed by several contributing moves can use the full coherence signal. This reduces the tendency to jump immediately to maximum speed after an isolated gap or wick.
4. Coherence-Adaptive Smoothing
The Fast and Slow periods define VCMA's fastest and slowest available EMA-style responses. If the inputs are reversed, the script automatically treats the shorter period as Fast and the longer period as Slow:
Fast Alpha = 2 / (Fast Period + 1)
Slow Alpha = 2 / (Slow Period + 1)
Speed Gate = rho^Coherence Power x Support
Adaptive Alpha = Slow Alpha + (Fast Alpha - Slow Alpha) x Speed Gate
Raw VCMA = Previous Raw VCMA + Adaptive Alpha x (Source - Previous Raw VCMA)
When vector coherence and support are high, Adaptive Alpha moves toward Fast Alpha. When either component is weak, it remains closer to Slow Alpha. Coherence Power controls how demanding this transition is. Higher values reserve fast responses for stronger coherence.
5. Final Output Smoothing
VCMA applies a weighted moving average to the raw adaptive line:
VCMA = WMA(Raw VCMA, Output WMA Length)
The default 3-period WMA gives more weight to recent values and removes small residual turns with modest added lag. Set Output WMA Length to 1 to use the unsmoothed adaptive output.
6. Low-Coherence State
The chart state uses a supported coherence score:
Coherence Score = rho x Support
The main VCMA enters its low-coherence state when this score falls below the Low-Coherence Threshold. It leaves only after the score rises above Threshold x Exit Multiplier. This hysteresis reduces rapid switching near the boundary. State changes occur on confirmed bars.
This state is always calculated from the main VCMA coherence score, including when Dual VCMA Lines is selected. It controls the optional gray Trend Line color, the gray fill between the Dual VCMA Lines, and background shading in either mode.
The low-coherence state describes the structure of recent price movement. It does not simply mean that a plotted line has zero slope. When gray coloring is enabled, a gray VCMA can still drift while the underlying vector evidence remains weak.
The Mathematical Idea Behind the VCMA Core
VCMA introduces a distinctive adaptive-moving-average construction that extends one-dimensional price-path efficiency into a two-dimensional delay-coordinate path and adds an effective-move gate to reduce acceleration caused by isolated shocks.
The delayed price points X(t) = form a path whose steps are the vectors . The coherence ratio is the path's net displacement divided by its total traveled distance. It therefore measures how straight and directionally consistent the recent delayed path has been. Unlike a one-dimensional ratio, it can also respond to irregular relationships between adjacent price changes, even when those changes share the same sign.
The second part of the design is the effective-move support gate. Vector alignment answers, "Do the recent moves point together?" Effective-move support asks, "Is that alignment backed by several meaningful moves, or mostly by one event?" Alpha accelerates only when both tests provide support.
This produces a causal and bounded adaptive core. Alpha remains between the selected Slow and Fast values, while the final WMA uses positive weights and does not introduce projection-based overshoot. VCMA is still a moving average and therefore retains lag; the goal is to allocate that lag according to the quality of the observed path.
Why Use VCT?
VCMA Trend is designed for traders who want the VCMA mathematics combined with direct chart interpretation. Its practical characteristics include:
• Scale-free measurement of directional vector alignment
• Adaptive speed bounded by interpretable Fast and Slow periods
• Reduced maximum-speed reactions to isolated price shocks
• Smoother output through a short final WMA
• Confirmed low-coherence states with hysteresis
• VCMA Trend Line and Dual VCMA Lines display modes
• Optional low-coherence line color, dual-line fill, and background shading
How to Read VCT
VCMA Trend Line
This mode displays the main VCMA with colors derived from slope and, optionally, its confirmed low-coherence state.
Green Line - Rising VCT
In VCMA Trend Line mode, green means the smoothed VCMA is rising and is not currently in its low-coherence state. Price holding above a rising green VCMA supports a bullish trend interpretation. Pullbacks toward the line may provide an adaptive reference when price structure remains constructive.
Red Line - Falling VCT
Red means the smoothed VCMA is falling and is not currently in its low-coherence state. Price holding below a falling red VCMA supports a bearish trend interpretation. Rallies toward the line may help frame bearish continuation when market structure agrees.
Gray Line - Low Vector Coherence
When Gray Trend Line in Low-Coherence Regimes is enabled, gray means supported vector coherence is below the active threshold. This commonly appears during sideways movement, irregular transitions, compression, or periods where a recent move lacks broader participation. Gray is a warning that directional evidence is weak; it is not automatically a reversal signal.
Slope, Price Position, and Distance
A steeper VCMA indicates that its adaptive baseline is changing more quickly. A flattening line suggests that directional progress is weakening. Price staying on one side of a consistently sloped VCMA is more informative than a single touch or crossover.
A rapidly widening distance between price and VCMA can reflect strong momentum, but it can also indicate extension from the adaptive baseline. Repeated crossings usually point to unsettled or range-bound conditions.
Price Crossings as Entry and Exit References
During an established trend, a confirmed crossing between price and the VCMA Trend Line, or between price and the Fast VCMA in Dual VCMA Lines mode, can provide a rule-based entry or exit reference. In a rising trend, price reclaiming the line after a pullback can mark an entry or re-entry, while a confirmed cross below it can mark a reduction or exit. In a falling trend, the interpretation is reversed: price falling back below the line after a rally can mark an entry or re-entry, while a confirmed cross above it can mark a reduction or exit.
Dual VCMA Lines
This mode replaces the color-changing Trend Line with two clean reference lines:
• Cyan - Fast VCMA
• Orange - Slow VCMA
Fast VCMA above Slow VCMA indicates that the shorter adaptive structure is leading the longer one. Fast below Slow indicates the opposite. Expanding separation suggests strengthening directional structure; convergence suggests that the difference between short- and longer-horizon estimates is narrowing. Crossovers mark a change in their relative ordering, not a complete trade signal by themselves.
When Fill Between Dual Lines in Low-Coherence Regimes is enabled, a light transparent gray fill appears between the two lines during the confirmed low-coherence state. The fill is based on the main VCMA coherence score, not on a separate low-coherence calculation for the Fast or Slow line.
Data Window Diagnostics
VCMA Trend exposes four values from its underlying VCMA core in TradingView's Data Window:
• VCMA Coherence Score - raw coherence multiplied by effective-move support
• VCMA Raw Vector Coherence - vector alignment before the support gate
• VCMA Effective-Move Support - how broadly recent vector magnitude is distributed
• VCMA Adaptive Alpha - the smoothing coefficient used by the raw VCMA core
These values help explain why the adaptive core is moving quickly, slowly, or entering its low-coherence state. For example, high raw coherence with low support often means that one dominant move has not yet received enough confirmation from other moves.
Understanding the Settings
Mode
Selects Dual VCMA Lines or VCMA Trend Line. The default is Dual VCMA Lines.
Low-Coherence Display Options
• Fill Between Dual Lines in Low-Coherence Regimes - enabled by default and visible only in Dual VCMA Lines mode
• Gray Trend Line in Low-Coherence Regimes - enabled by default and visible only in VCMA Trend Line mode
• Shade Background in Low-Coherence Regimes - disabled by default and available in either mode
All three options use the same confirmed low-coherence state derived from the main VCMA coherence score.
Source
Selects the price series used by all VCMA calculations. The default is Close.
Coherence Length
The Coherence Length under VCMA Trend Line controls the main VCMA and the low-coherence state used by all display options. Shorter values respond more quickly to changes in vector alignment. Longer values evaluate the path over a broader sample and usually change more gradually. Fast VCMA and Slow VCMA have separate Coherence Length settings under Dual VCMA Lines.
Fast Period and Slow Period
Define the fastest and slowest EMA-style responses available to the adaptive core. Shorter Fast values increase maximum responsiveness. Longer Slow values make VCMA more conservative when coherence or support is weak.
Coherence Power
Shapes how raw coherence affects speed. Higher values suppress medium coherence more strongly and require rho to move closer to 1 before alpha accelerates substantially. Lower values create a softer and earlier response.
Effective Moves for Full Speed
Controls how much participation is required before the support gate reaches 1. Higher values demand broader support and reject isolated movement more strongly, but they can delay acceleration at the beginning of a genuine trend.
Output WMA Length
Controls final line smoothing. Higher values create a steadier line with more lag. A value of 1 disables this stage.
Low-Coherence Threshold and Exit Multiplier
The threshold determines when the main VCMA enters its low-coherence state. The multiplier sets the higher level required to leave it. A larger gap between the entry and exit levels produces more stable but slower regime transitions.
Alerts
VCMA Trend Line mode provides confirmed-bar alerts for VCT turning up, turning down, entering low coherence, and leaving low coherence. Dual VCMA Lines mode is intended as a visual fast/slow framework and does not issue those main-line alerts.
Practical Use
VCMA Trend can be used as a directional-bias filter, an adaptive pullback reference, a trend-management baseline, or a way to separate coherent movement from less organized price action. It is most useful when read together with price structure, support and resistance, volatility, volume, and higher-timeframe context.
---
TradingFlow:VCMA Trend (VCT)
TradingFlow:VCMA Trend (VCT) 是以向量一致性移動平均線 ( VCMA ) 為核心的趨勢視覺指標。它會根據近期價格移動的方向一致性調整反應速度,再加入經確認的低一致性狀態、兩種顯示模式,以及可選的低一致性視覺效果。預設的 Dual VCMA Lines 模式會顯示獨立的 Fast 與 Slow 平均線;VCMA Trend Line 模式則以斜率顏色顯示一條自適應線。
VCMA Trend 的用途,是把自適應數學轉化成較容易閱讀的趨勢背景,同時避免把單一價格衝擊誤當成已獲持續支持的走勢。當近期向量方向一致,而且有多個價格變化共同支持該結果時,VCMA 核心會提高反應速度;當路徑反覆、雜亂,或主要由少數變化主導時,它會放慢。最後一層 WMA 先整理細微波動,然後才套用趨勢視覺。
VCMA 核心如何計算
1. 延遲座標價格路徑
VCMA 先計算所選 Source 每根 K 線的價格變化:
d(t) = Source(t) - Source(t-1)
然後把價格表示為二維延遲座標路徑上的一個點:
X(t) =
由 X(t-1) 移動至 X(t) 時,便會形成滯後向量:
z(t) = X(t) - X(t-1) =
Magnitude(t) = sqrt
持續的方向移動通常會產生方向相近的向量。來回震盪時,向量方向互相矛盾,相加後便會抵消。
2. 向量一致性
在 Coherence Length 所設定的週期內,VCMA 比較這條路徑的直線位移與實際行走總距離。等價地說,就是比較「向量總和的長度」與「所有個別向量長度的總和」:
Sum Vector =
Vector Coherence(rho)= Sum Vector 的長度 / Sum Magnitude(t)
完整公式為:
rho = sqrt / Sum sqrt
以這種形式理解,rho 就是二維路徑效率,亦即路徑直線度的比率。
根據三角不等式,rho 會保持在 0 至 1 之間。接近 1 表示滯後向量大致朝向相同方向;接近 0 表示它們大部分互相抵消。分子與分母都會隨價格變化幅度按比例改變,因此這個比率不受商品價格尺度影響。
3. 有效移動支持度
單靠一致性比率仍有一個問題:如果視窗內只有一次孤立的大幅移動,由於沒有其他向量與它抵消,rho 也可能偏高。VCMA 使用向量幅度計算有效移動數,以減少這種情況:
Effective Moves = (Sum Magnitude)^2 / Sum Magnitude^2
這是有效樣本數的概念,不是 K 線數量的直接計數。當一個移動佔據大部分向量幅度時,數值會偏低;當多個移動都有實質貢獻時,數值便會上升。
Support = Clamp
Effective Moves for Full Speed 設定支持度達到 1 所需的目標。預設值為 3,因此單一主導移動只會得到有限支持;當同一方向獲得多個價格變化配合後,完整的一致性訊號才會投入速度計算。這可減少 VCMA 因單一裂口或影線而立即切換至最高速度的情況。
4. 一致性自適應平滑
Fast 與 Slow 週期定義 VCMA 可使用的最快及最慢 EMA 式反應。即使輸入次序相反,程式仍會把較短週期視為 Fast,較長週期視為 Slow:
Fast Alpha = 2 / (Fast Period + 1)
Slow Alpha = 2 / (Slow Period + 1)
Speed Gate = rho^Coherence Power x Support
Adaptive Alpha = Slow Alpha + (Fast Alpha - Slow Alpha) x Speed Gate
Raw VCMA = Previous Raw VCMA + Adaptive Alpha x (Source - Previous Raw VCMA)
當向量一致性與支持度同時偏高,Adaptive Alpha 會接近 Fast Alpha;任何一項偏弱,Alpha 便會靠近 Slow Alpha。Coherence Power 控制速度轉換的要求。數值越高,VCMA 越需要接近完整一致性才會明顯加速。
5. 最終輸出平滑
VCMA 會對原始自適應線套用一層加權移動平均:
VCMA = WMA(Raw VCMA, Output WMA Length)
預設的 3 週期 WMA 對近期數值給予較高權重,可減少細微轉折,同時只增加有限延遲。把 Output WMA Length 設為 1,即可停用這層平滑。
6. 低一致性狀態
圖表狀態使用經支持度調整的一致性分數:
Coherence Score = rho x Support
當分數低於 Low-Coherence Threshold,主 VCMA 會進入低一致性狀態。分數其後必須升穿 Threshold x Exit Multiplier,低一致性狀態才會結束。兩個不同門檻形成遲滯,可減少狀態在邊界附近反覆切換。狀態只會在 K 線確認後更新。
即使選擇 Dual VCMA Lines,這個狀態仍然由主 VCMA 的一致性分數計算。它會控制可選的 Trend Line 灰色顯示、Dual VCMA Lines 之間的灰色填充,以及兩種模式都可使用的背景陰影。
低一致性描述的是近期價格路徑結構,不等於圖表線條的斜率必須為零。啟用灰色顯示後,灰色 VCMA 仍可能緩慢上升或下降,但其背後的向量證據仍然偏弱。
VCMA 核心的數學設計
VCMA 採用一種具辨識度的自適應移動平均線結構:把一維價格路徑效率延伸為二維延遲座標路徑,並加入有效移動閘門,以降低孤立價格衝擊造成的加速。
延遲價格點 X(t) = 形成一條路徑,而 就是路徑上的每一步。向量一致性比率等於路徑的淨位移除以實際行走總距離,因此可衡量近期延遲路徑有多筆直,以及方向有多一致。與一維比率不同,即使價格變化方向相同,若相鄰變化之間的關係反覆而不規則,這個二維比率仍可作出區分。
第二部分是有效移動支持閘門。向量一致性回答「近期移動是否大致朝向同一方向」;有效移動支持度則判斷「這個結果是否有多個具實質幅度的移動支持,還是主要來自單一事件」。只有兩項條件同時成立,Alpha 才會明顯提高。
這個自適應核心只使用當前及過往資料,而且 Alpha 保持在所選的 Slow 與 Fast 範圍內。最後的 WMA 只使用正權重,不會加入價格投射造成的過衝。VCMA 仍然是移動平均線,因此一定存在延遲;它的目標是根據已觀察到的路徑品質分配反應速度。
為何使用 VCT?
VCMA Trend 適合希望把 VCMA 數學與直接圖表判讀結合的交易者。它有以下實用特點:
• 以不受價格尺度影響的比率衡量向量方向一致性
• 反應速度受具體的 Fast 與 Slow 週期限制
• 降低單一價格衝擊觸發最高速度的機會
• 使用短週期 WMA 整理最終輸出
• 以確認 K 線及遲滯機制管理低一致性狀態
• 提供 VCMA Trend Line 與 Dual VCMA Lines 兩種顯示模式
• 可選用低一致性線條顏色、雙線填充及背景陰影
如何閱讀 VCT
VCMA Trend Line
此模式會顯示主 VCMA,線條顏色由斜率及可選的經確認低一致性狀態決定。
綠線 - VCT 上升
在 VCMA Trend Line 模式下,綠色表示平滑後的 VCMA 正在上升,而且目前不處於低一致性狀態。價格維持在上升綠線之上,可支持多頭趨勢判斷。若價格結構仍然穩健,回調至 VCMA 附近可作為觀察趨勢延續的自適應參考。
紅線 - VCT 下跌
紅色表示平滑後的 VCMA 正在下降,而且目前不處於低一致性狀態。價格維持在下降紅線之下,可支持空頭趨勢判斷。若市場結構同樣偏弱,反彈至 VCMA 附近可作為觀察空頭延續的參考。
灰線 - 向量一致性偏低
啟用 Gray Trend Line in Low-Coherence Regimes 後,灰色表示經支持度調整的向量一致性低於有效門檻。這種情況常見於橫行、方向轉換、波幅壓縮,或近期移動尚未得到較廣泛支持的階段。灰色代表方向證據偏弱,並不等於趨勢必然反轉。
斜率、價格位置與距離
VCMA 越陡,表示自適應基準變化越快;線條逐漸走平,則代表方向進展正在減弱。相比一次觸碰或穿越,價格持續位於有明確斜率的 VCMA 同一側更具參考價值。
價格與 VCMA 的距離快速擴大,可能反映動能增強,也可能表示價格已偏離自適應基準。價格反覆穿越 VCMA,通常代表市況仍然反覆或缺乏穩定方向。
價格交叉作為進出場依據
在趨勢已建立時,價格與 VCMA Trend Line 的確認交叉,或在 Dual VCMA Lines 模式下價格與 Fast VCMA 的確認交叉,可作為規則化的進出場依據。在上升趨勢中,價格回調後重新升穿線條,可視為入場或重新入場參考;確認跌穿線條,則可作為減倉或離場依據。在下跌趨勢中,邏輯相反:價格反彈後重新跌穿線條,可作為入場或重新入場參考;確認升穿線條,則可作為減倉或離場依據。
Dual VCMA Lines
此模式會以兩條固定顏色的參考線取代會轉色的 Trend Line:
• 青色 - Fast VCMA
• 橙色 - Slow VCMA
Fast VCMA 位於 Slow VCMA 之上,表示較短期的自適應結構領先較長期結構;Fast 位於 Slow 之下則相反。兩線距離擴大,代表短期與較長期估算的方向差異正在增強;兩線收窄,代表差異正在減少。交叉只表示兩者的相對次序改變,不能單獨視為完整交易訊號。
啟用 Fill Between Dual Lines in Low-Coherence Regimes 後,在經確認的低一致性狀態期間,兩線之間會出現淺灰色半透明填充。填充以主 VCMA 的一致性分數為基礎,不會分別根據 Fast 或 Slow 線計算低一致性狀態。
Data Window 診斷數值
VCMA Trend 在 TradingView 的 Data Window 提供四項底層 VCMA 核心數值:
• VCMA Coherence Score - 原始一致性乘以有效移動支持度
• VCMA Raw Vector Coherence - 未加入支持閘門前的向量一致性
• VCMA Effective-Move Support - 近期向量幅度的分布廣度
• VCMA Adaptive Alpha - 原始 VCMA 核心實際使用的平滑係數
這些數值可解釋自適應核心為何加快、減慢或進入低一致性狀態。例如,Raw Vector Coherence 偏高但 Support 偏低,通常代表一次主導移動尚未獲得其他移動充分配合。
設定說明
Mode
選擇 Dual VCMA Lines 或 VCMA Trend Line。預設為 Dual VCMA Lines。
低一致性顯示選項
• Fill Between Dual Lines in Low-Coherence Regimes - 預設啟用,只會在 Dual VCMA Lines 模式顯示
• Gray Trend Line in Low-Coherence Regimes - 預設啟用,只會在 VCMA Trend Line 模式顯示
• Shade Background in Low-Coherence Regimes - 預設停用,兩種模式都可使用
三個選項均使用主 VCMA 一致性分數所產生的同一個經確認低一致性狀態。
Source
選擇所有 VCMA 計算使用的價格序列,預設為 Close。
Coherence Length
VCMA Trend Line 下的 Coherence Length 會控制主 VCMA,以及所有顯示選項使用的低一致性狀態。較短數值能更快反映向量方向變化;較長數值會在較廣的樣本內評估價格路徑,變化通常較慢。Fast VCMA 與 Slow VCMA 在 Dual VCMA Lines 下各有獨立的 Coherence Length 設定。
Fast Period 與 Slow Period
定義自適應核心可使用的最快及最慢 EMA 式反應。較短的 Fast Period 會提高最大靈敏度;較長的 Slow Period 則會在一致性或支持度偏弱時令 VCMA 更保守。
Coherence Power
控制原始一致性如何影響速度。較高數值會更強地壓低中等一致性的作用,要求 rho 更接近 1 才明顯加速;較低數值則會較早及較平順地提高反應速度。
Effective Moves for Full Speed
控制支持度達到 1 所需的參與程度。較高數值要求更廣泛支持,能更強地抑制孤立移動,但也可能延遲真實趨勢初段的加速。
Output WMA Length
控制最終線條的平滑程度。數值越高,線條越穩定,但延遲亦會增加。設為 1 可停用這一層。
Low-Coherence Threshold 與 Exit Multiplier
Threshold 決定主 VCMA 何時進入低一致性狀態;Multiplier 設定離開該狀態所需的較高門檻。進出門檻距離越大,狀態越穩定,但轉換也會較慢。
警報功能
VCMA Trend Line 模式提供 K 線確認後的警報,包括 VCT 轉為上升、轉為下降、進入低一致性,以及離開低一致性。Dual VCMA Lines 模式主要用作快慢線視覺框架,不會發出上述主線警報。
實際應用
VCMA Trend 可作為方向偏向過濾器、自適應回調參考、趨勢管理基準,亦可協助區分方向一致的走勢與較欠組織的價格行為。使用時可配合價格結構、支撐阻力、波動性、成交量及較高時間週期背景。
אינדיקטור

אינדיקטור

Market Structure Trend [QuantAlgo]🟢 Overview
The Market Structure Trend tracks the dominant directional bias of price by detecting confirmed swing highs and lows and maintaining an active structure level that only flips on a genuine break of that level. Rather than reacting to every minor high or low, it waits for a pivot to lock in after a defined number of bars on either side, then holds the resulting structure until price closes beyond it by an optional confirmation buffer. The result is a clean, non-repainting structure line that stays aligned with the prevailing market structure while filtering out stop hunts and marginal pokes through key levels. This makes the prevailing bias readable at a glance across any instrument or timeframe.
🟢 How It Works
The indicator begins by identifying pivot highs and pivot lows using the selected left and right structure bars. These pivots become the swing points that define market structure:
pivot_high = ta.pivothigh(high, left_bars, right_bars)
pivot_low = ta.pivotlow(low, left_bars, right_bars)
When a new pivot is confirmed, the corresponding swing high or swing low is updated. The active structure range is calculated as the absolute distance between the current swing high and swing low, and a confirmation buffer is derived as a percentage of that range:
structure_range = math.abs(swing_high - swing_low)
confirm_buffer = structure_range * buffer_pct / 100.0
Break levels are then offset by this buffer so that a downside break sits below the swing low and an upside break sits above the swing high. On every confirmed bar the script checks whether the chosen source (or the high or low when Break On Wick is enabled) has crossed the relevant break level. A successful cross reverses structure direction and reassigns the structure level to the opposite swing. If no break occurs, the structure level simply continues to track the swing consistent with the current direction.
Structure direction is seeded on the first ready bar by comparing price to the midpoint of the swing range, establishing an initial bias. From that point forward flips are gated strictly by confirmed breaks, so the state never repaints or changes mid-bar.
The structure level is drawn as a continuous line with a soft glow underneath. When radial layering is enabled, four concentric fills are drawn between the structure level and the bar midpoint, with transparency increasing outward. This produces a stepped radial field that visually maps distance from the active structure boundary rather than a single flat zone.
🟢 Signal Interpretation
▶ Bullish Structure (Structure Line at Swing Low with Bullish Color): When structure direction is bullish the line sits at the most recent confirmed swing low. Price is considered to remain in an uptrend structure as long as it stays above the buffered downside break level. The bullish state holds until a confirmed downside break occurs, at which point the line moves to the swing high and the color transitions.
▶ Bearish Structure (Structure Line at Swing High with Bearish Color): When structure direction is bearish the line sits at the most recent confirmed swing high. Price remains in a downtrend structure until a confirmed upside break flips the state. The bearish state persists through subsequent bars until an upside break is registered.
🟢 Features
▶ Preconfigured Presets: Three parameter sets cover a range of trading styles and timeframes. Default uses the manual Left Structure Bars, Right Structure Bars, and Confirmation Buffer values and is balanced for swing trading on 1-hour and daily charts. Fast Response shortens the structure legs for scalping and intraday use on 1-minute to 1-hour charts, registering minor swings so the structure trend flips earlier. Smooth Trend lengthens the legs for position trading on daily and weekly charts, tracking only major swings and holding through pullbacks with the confirmation buffer.
▶ Built-in Alerts: Three alert conditions support automated monitoring of structure flips. Bullish Structure Shift fires on the first bar that structure direction changes from bearish to bullish. Bearish Structure Shift fires on the opposite transition. Any Structure Shift triggers on either flip for traders who prefer a single unified alert. All messages include the exchange, ticker, and timeframe for immediate context.
▶ Visual Customization: Six color presets (Classic, Aqua, Cosmic, Cyber, Neon, and Custom) supply coordinated bullish and bearish color pairings suited to different chart themes. Selecting Custom unlocks independent color pickers for full manual control. Optional bar coloring tints each candle with the active structure color at a configurable transparency, and optional background coloring extends the same tint across the full chart pane. Radial layering, structure shift markers, and the structure line itself all inherit the active color pair so the entire visual system remains consistent.
אינדיקטור

Trend Continuation Momentum Detector TCMD v3 — Trend Continuation Momentum Detector
Core Concept
TCMD is a weighted multi-factor momentum scoring system built on Heiken Ashi candles. Instead of one signal triggering everything, it blends five independent measurements of "how strong is this move" into a composite Momentum Score (0–100), then layers state logic, filters, and risk levels on top.
The five scoring factors
Body Expansion (30% weight) — Is this candle's body unusually large? Calculated as HA body / 20-bar avg body, scaled to 0–100.
Wick Quality (25% weight) — Is the move "clean" (no rejection)? The wick opposing the candle's direction is measured as a % of body size — a small opposing wick scores high.
Trend Slope (20% weight) — Is the EMA of HA close actually rising/falling with conviction? EMA slope over slopeLookback bars, normalized by ATR, then multiplied by a sensitivity factor.
Volume (15% weight) — Is volume confirming the move? volume / 20-bar avg volume, scaled.
Z-Score / distance from mean (10% weight) — Is price extended from its own EMA in a statistically meaningful (but not extreme) way? (HA close − EMA) / stdev, scored with a bell-shaped curve peaking around 0.5–2.0 SD and decaying past 3 SD (overextended).
These combine into a weighted average (weights auto-normalize even if they don't sum to 100) to produce momentumScore.
Why Heiken Ashi
HA smooths noise so body size/wick logic reflects sustained pressure rather than single-tick noise — important since body expansion and wick quality are core inputs.
Signal Logic — 5-State Machine
Each confirmed bar is classified as:
STRONG BUY — momentumScore > threshold (default 75) AND bullish HA candle AND clean wick AND body > average AND HA close above EMA AND (optional) close above VWAP AND (optional) delta positive
STRONG SELL — mirror conditions to the downside
BUY / SELL (bias) — looser: HA close vs EMA + VWAP direction + momentumScore ≥ 50, no wick/body purity required
NEUTRAL — none of the above
This state drives everything downstream: candle coloring, markers, warnings, and TP/SL.
"One-Shot + EMA Reset" Entry Logic
The key anti-spam mechanism: a Strong Buy/Sell marker fires once per cycle, then locks. It won't fire again until price pulls back and touches the EMA (low touches EMA resets buy-side, high touches EMA resets sell-side). This stops multiple entry signals stacking up during one continuous trending move — you get one entry, then must wait for a retest before the next is valid.
Warning System
Light Warning (diamond) — Strong Buy/Sell degrades to plain Buy/Sell, same direction, losing steam
Heavy Warning (x-cross) — Strong Buy/Sell degrades to Neutral or flips to the opposite bias — reversal risk
These are degradation alerts for managing an existing position, not new directional entries.
VWAP & Delta as Confirmation Filters
VWAP filter — Strong signals optionally require price on the "correct" side of session VWAP. Most meaningful intraday since VWAP resets each session.
Delta filter — pulls real buy/sell volume from a lower timeframe (default 1-min) and requires it to agree with signal direction. Falls back to candle direction (close vs open) when lower-timeframe data isn't available in deep history.
Mean Reversion (MR) Signal — separate counter-trend logic
MR looks for momentum exhaustion at a statistical extreme, the opposite philosophy from the trend signals. It fires when:
Price is ≥ mrSdThreshold VWAP standard deviations away (default 1.8 ≈ near the 2SD band)
Momentum Score is weak (< mrMomentumMax) and optionally fading vs the prior bar
The current HA body is small (neutral) and its real high/low engulfs the previous candle's body — a rejection pattern
Session warm-up (mrMinBars) and minimum VWAP SD width (mrMinSdPct) guards are satisfied so it doesn't fire on noisy early bars
MR has its own optional dotted TP/SL lines and alerts, independent of trend-following TP/SL.
TP / SL Levels
When a fresh Strong Buy/Sell fires, TP1/TP2/SL are calculated from the signal candle's HA range (high−low), drawn from the next bar's real open:
Long: TP1 = entry + 2×range, TP2 = entry + 4×range, SL = entry − 1.5×range
Short: mirrored
An "Active SL" is tracked internally; if close crosses through it, an SL-hit marker/alert fires and clears the level.
How to Use It in Practice
Check the current state first — Strong Buy/Sell, Buy/Sell, or Neutral — as your top-line read.
Strong Buy/Sell circle = entry trigger. TP/SL lines (if enabled) auto-draw on the next bar's open.
Diamond (light warning) = start thinking about trimming/tightening — momentum easing, direction unchanged.
X-cross (heavy warning) = treat as an exit signal for the prior position, not a new entry.
Consecutive strong bars = move is extended, higher risk of a sharp mean-reversion snap — cross-check against MR triangles.
VWAP Z-Score / SD bands — gauge how stretched price is; MR triangles are your explicit counter-trend cue at extremes.
ATR — elevated/high readings mean volatility regime has shifted; sanity-check your TP/SL multiples still fit the current range.
Delta — cross-check real order flow agrees with the HA/EMA-based signal, useful for scalping confirmation beyond price action alone.
One thing worth flagging for your GC/NQ intraday use: the VWAP filter and MR signal are most meaningful on session-based intraday timeframes given the session-reset VWAP — on higher timeframes or across sessions, those two features lose some of their intended meaning. אינדיקטור

Trend Bias TableTrend Bias Table — Indicator Description
Type: Overlay indicator (displays directly on the price chart, top-right corner)
What It Does
Trend Bias Table shows a multi-timeframe directional bias panel — Day, 4 Hour, 1 Hour, and 15 Minute — without using any moving averages. Each timeframe is scored independently as Bullish, Bearish, or Neutral based on pure price action.
How the Bias Is Calculated
For each timeframe, three independent factors are scored:
Market Structure — Detects swing pivot highs/lows (via ta.pivothigh / ta.pivotlow) and compares the two most recent pivots:
Higher High + Higher Low → bullish structure
Lower High + Lower Low → bearish structure
Momentum — A Rate of Change (ROC) calculation measures whether price has moved up or down over a smoothing period, with no lag-inducing moving average involved.
Price vs. Open — Checks whether the current close is trading above or below that timeframe's opening price.
Each factor contributes one point to either a bullish or bearish score. Whichever score is higher determines that timeframe's bias; a tie results in Neutral.
What's Displayed
A clean 2-column, 5-row table pinned to the top-right of the chart:
TIMEFRAME BIAS
Day ▲ BULL / ▼ BEAR / ● NEUT
4 Hour ▲ BULL / ▼ BEAR / ● NEUT
1 Hour ▲ BULL / ▼ BEAR / ● NEUT
15 Min ▲ BULL / ▼ BEAR / ● NEUT
Teal = Bullish
Red = Bearish
Grey = Neutral
Inputs
Swing Pivot Length (default 5) — sensitivity of pivot detection for structure analysis
ROC Smoothing (default 3) — lookback period for the momentum calculation
Use Case
Gives traders a fast, at-a-glance read on trend alignment across timeframes — useful for confirming whether a lower-timeframe setup agrees with the higher-timeframe trend, without cluttering the chart with moving average lines. אינדיקטור

Supertrend + RSI Filter (Advanced TP/SL)OverviewThe Supertrend + RSI Filter (Advanced TP/SL) is a comprehensive trend-following indicator designed for TradingView (Pine Script v5). It combines the trend-detection power of the Supertrend with a dynamic RSI Momentum Filter to eliminate low-probability setups in overbought or oversold conditions.Unlike standard indicators that clear historical lines upon new signals, this script implements a Pine Script v5 Custom Type & Array-based Position Management System. It tracks every trade independently, drawing dynamic Entry, Take Profit (TP), and Stop Loss (SL) lines with centered price labels. Position lines persist on the chart and are ONLY removed when price action officially hits the TP or SL level.
Comprehensive Feature List
Supertrend Trend Detection:
Utilizes Average True Range (ATR) to measure volatility and establish dynamic trailing stop bands for precise trend-direction identification.
RSI Momentum Filtering:
- Buy Filter: Suppresses BUY signals when RSI exceeds the overbought threshold (Default: >70) to prevent buying at local tops.
- Sell Filter: Suppresses SELL signals when RSI drops below the oversold threshold (Default: <30) to prevent selling at local bottoms.
Can be toggled ON/OFF in the settings menu.
Multi-Position Tracking Arrays:
- Employs custom data structures () stored in an to track multiple open trades concurrently. type Position array
- Persistent Lines: Entry (Solid Gray), Take Profit (Dashed Green), and Stop Loss (Dashed Red) lines remain on the chart through opposite trend changes until hit. - Centered Price Labels: Displays label text (, , ) dynamically anchored at the midpoint of each active position line. Entry: XTP: YSL: Z
- Individual Removal: When a specific trade hits its TP or SL target, its corresponding lines and labels are erased immediately without affecting other active trades.
On-Chart Performance Dashboard:
- Displays an updated summary table in the top-left corner of the chart.
- Metrics Included:
Win Rate (%): Percentage of closed trades hitting TP.
Total Trades: Total number of completed historical signals.
Winning & Losing Trades: Count of successful vs. failed setups.
Total Profit (Pips): Cumulative net profit/loss expressed in pips.
RSI Filter Status: Visual indicator showing whether the filter is active ( / ).ONOFF
Dynamic & Multi-Parameter Alert System:
Uses Pine Script’s function to output real-time formatted text messages containing key execution metrics: alert()
Symbol / Ticker
Timeframe
Exact Entry Price
Target Take Profit Price
Target Stop Loss Price
including warnings. alertcondition()
Trading & Exit Logic
1. BUY Setup
Trigger: Supertrend flips from Bearish (Red) to Bullish (Green).
Filter Condition: $\text{RSI} \le \text{Overbought Threshold}$ (or RSI Filter disabled).
Entry: Closing price of the signal bar.
Stop Loss: $\text{Entry} - (\text{ATR} \times \text{SL Multiplier})$
Take Profit: $\text{Entry} + (\text{ATR} \times \text{TP Multiplier})$
2. SELL Setup
Trigger: Supertrend flips from Bullish (Green) to Bearish (Red).
Filter Condition: $\text{RSI} \ge \text{Oversold Threshold}$ (or RSI Filter disabled).
Entry: Closing price of the signal bar.
Stop Loss: $\text{Entry} + (\text{ATR} \times \text{SL Multiplier})$
Take Profit: $\text{Entry} - (\text{ATR} \times \text{TP Multiplier})$
3. Exit & Removal Logic
On every historical and real-time bar, the script checks if or crosses the target levels: High Low
BUY Hit TP: $\text{High} \ge \text{TP Price}$
BUY Hit SL: $\text{Low} \le \text{SL Price}$
SELL Hit TP: $\text{Low} \le \text{TP Price}$
SELL Hit SL: $\text{High} \ge \text{SL Price}$
Upon trigger, the specific position is logged into the performance table, and its lines/labels are deleted.
Settings & Inputs
How to Set Up Dynamic Alerts
Apply the indicator to your desired chart.
Click the Alerts icon (Clock) on TradingView $\rightarrow$ Create Alert.
Under Condition, select: .Supertrend + RSI Filter (Advanced TP/SL)
Select Any alert() function call in the dropdown menu.
Set the frequency to Once Per Bar Close.
Click Create. You will receive detailed alerts formatted like this:
🚀 BUY SIGNAL
Symbol: BTCUSDT
Timeframe: 15
Entry: 64250.50
TP: 65120.00
SL: 63815.25
Risk Disclosure & Limitations
Choppy / Ranging Markets: As a trend-following tool, Supertrend may produce consecutive false breakouts when the market moves sideways.
Backtest Statistics Notice: The statistics table measures theoretical performance based on bar high/low historical data. It does not account for slippage, spread, overnight funding fees, or broker commissions.
Repainting Disclaimer: Signals and position calculations are confirmed on bar close ( / ) to strictly avoid repainting. barstate. islastfreq_once_per_bar_close
Financial Disclaimer: This script is developed strictly for educational and analytical purposes. It does not constitute financial or investment advice. Always manage your risk responsibly. אינדיקטור

Advanced Realized Volatility (Crypto Stocks Indices Forex)**Advanced Realized Volatility — Detailed Guide**
### What This Indicator Does
Advanced Realized Volatility (Crypto) measures the actual historical price fluctuation of an asset over a user-defined calendar-day window and expresses it as an annualized percentage. Unlike simple standard-deviation tools, it offers six statistically grounded estimators (Close-to-Close, Parkinson, Garman-Klass, Yang-Zhang, Rogers-Satchell, and EWMA), automatically converts a calendar-day lookback into the correct number of bars for any timeframe, and applies the proper annualization factor (√365 for crypto by default, √252 for traditional assets).
The indicator places the current volatility reading in historical context through percentile rank, classifies the market into four regimes (Low / Normal / High / Extreme), calculates Expected Moves for 1-, 7-, and 30-day horizons, and allows direct visual comparison with up to three other symbols. All key metrics appear in a compact on-chart table.
### Core Concepts Explained Simply
- **Realized Volatility (RV)** shows how much the asset has actually moved in the recent past, scaled to a one-year basis. Higher RV means larger typical price swings.
- **Percentile Rank** answers the question: “Is the current volatility high or low relative to its own history?” A reading of 15 means the present volatility is lower than 85 % of the readings in the chosen historical window.
- **Volatility regimes** translate the percentile into actionable categories:
- Low (compression) — percentile below 20
- Normal — 20 to 80
- High — above 80
- Extreme — above 95
- **Expected Move** converts the current annualized RV into an approximate price range the market is statistically likely to traverse over the next 1, 7, or 30 days.
- **Relative Volatility** and multi-asset lines show whether the current instrument is quieter or more turbulent than its peers or its own longer-term average.
### How to Set Up and Read the Indicator
1. Apply the script to any chart (crypto, stocks, indices, and forex work correctly).
2. Choose the volatility method. Yang-Zhang is the recommended default because it efficiently incorporates overnight gaps, open-to-close drift, and the high-low range.
3. Select a lookback in calendar days (30 days is a balanced starting point; shorter windows react faster, longer windows are smoother).
4. Leave annualization on Auto unless you have a specific reason to force 365 or 252.
5. Optionally enable one to three comparison symbols (e.g., BTC vs ETH, SOL, or QQQ) using the same method and period.
6. Turn on background regime coloring and the information table for at-a-glance context.
7. Observe three primary visual elements:
- The main RV line and any comparison lines
- Horizontal reference levels (mean, 20th and 80th percentiles)
- Background color that changes with the regime
The table always displays the current annualized RV, percentile rank with regime label, relative volatility, Expected Moves, and the values of any enabled comparison assets.
### Practical Trading Applications and Patterns
**1. Volatility Compression → Expansion (Breakout Preparation)**
When the percentile rank falls below 20 and the background turns to the Low-volatility color, the market is in a compressed state. Historically, prolonged low-volatility periods are frequently followed by a sharp expansion in range. Traders watch for price to break a well-defined consolidation, range, or chart pattern while RV is still low or just beginning to rise. The Expected Move values help set realistic profit targets once the expansion starts.
**2. High / Extreme Volatility Regime (Risk Management & Mean-Reversion Bias)**
A percentile above 80 (especially above 95) signals elevated or extreme turbulence. In these conditions:
- Position sizes are typically reduced.
- Stops are widened or switched to volatility-based (ATR or Expected Move multiples).
- Mean-reversion or fade strategies become more attractive after a climax move, because extreme readings often revert toward the mean.
- Trend-following systems may stay in the market but with tighter risk controls.
**3. Regime Shifts as Timing Filters**
A cross of the RV line above its longer-term mean or a move of the percentile from Low into Normal/High can confirm that a new directional move has volatility support. Conversely, a drop back into the Low regime after an expansion often marks the end of a volatile phase and the start of a quieter consolidation.
**4. Cross-Asset Relative Volatility**
When the main asset’s RV line sits significantly above or below the comparison lines, relative volatility strength or weakness appears. Example patterns:
- BTC RV rising while ETH RV stays flat or declines → possible BTC leadership or capital rotation into Bitcoin.
- An altcoin showing persistently higher RV than BTC → higher-risk, higher-reward environment that may require stricter position sizing.
- Equity index (QQQ or SPX) RV rising together with crypto → broader risk-off or risk-on regime alignment.
**5. Expected Move for Targets and Option Structures**
The 1-day, 7-day, and 30-day Expected Move figures provide statistically derived price ranges. Common uses:
- Setting take-profit levels at approximately 1× or 1.5× the Expected Move.
- Judging whether an options premium is rich or cheap relative to recent realized movement.
- Sizing positions so that a 1–2 Expected Move adverse excursion remains within acceptable risk.
**6. Volatility of Volatility (VoV)**
When enabled, VoV highlights periods when volatility itself is unstable. Rising VoV often accompanies regime transitions and can serve as an early warning that the current quiet or elevated state is about to change.
### Typical Workflow for Discretionary Traders
1. Note the current regime and percentile rank.
2. Check whether RV is rising or falling and how it compares with the chosen benchmark assets.
3. Read the Expected Move numbers to gauge the probable size of the next swing.
4. Align the volatility picture with classical price action (breakouts from compression, exhaustion after extreme readings, relative strength between assets).
5. Adjust position size, stop distance, and profit targets accordingly.
6. Use the built-in alerts for regime changes, RV crosses of its mean, or sharp expansions so that monitoring can be partly automated.
### Recommended Starting Settings
- Method: Yang-Zhang
- Lookback: 30 calendar days
- Annualization: Auto
- Percentile lookback: 365 days
- Background coloring and table: enabled
- One or two comparison symbols relevant to the traded asset
These settings provide a balanced, responsive view on most crypto pairs while remaining stable enough for higher-timeframe analysis.
The indicator does not generate buy or sell signals by itself. It supplies a quantitative volatility context that improves timing, risk management, and cross-market comparison. When combined with price structure, volume, and a clear trading plan, the regimes, percentile extremes, and Expected Moves become reliable filters for identifying high-probability compression-to-expansion setups, managing risk during turbulent periods, and comparing the relative “temperature” of different assets.
⚠️ Disclaimer
This indicator is for *educational and informational purposes only*. It does not constitute financial advice. Always do your own research before making investment decisions.
*Indicator by:* iCD_creator
*Version:* 1.0
*Pine Script™ Version:* 6
---
Updates & Support
For questions, suggestions, or bug reports, please comment below or message the author.
*Like this indicator? Leave a 👍 and share your feedback!* אינדיקטור

Fibonacci Vault [JOAT] JackOfAllTrades presents — Fibonacci Vault
A self-anchoring Fibonacci engine that locks onto the latest impulse leg and keeps the Golden Pocket glowing — no manual drawing.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ WHAT IT IS
Drawing Fibonacci by hand means re-anchoring every time structure changes. Fibonacci Vault does it for you: it identifies the most recent confirmed impulse leg , lays the retracement shelves automatically, and treats the Golden Pocket (0.618–0.65) as a first-class zone rather than a single line. It is a pure confluence tool — it maps levels, it does not print buy/sell signals.
This is 100% original code, written from scratch. It does not reuse any other author's Fibonacci script.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ HOW IT WORKS
1. Leg detection. The tool tracks confirmed swing highs and lows (using your chosen strength) and defines the active leg between the two most recent. Leg direction is inferred from which swing printed first — a low-then-high sequence is an up-impulse, and vice versa.
2. Size filter. A leg is only used if it is large enough — a minimum size expressed in ATR multiples — so the Vault anchors to meaningful impulses and ignores insignificant wiggles. As structure evolves, the anchor re-arms itself automatically.
3. The shelves. From the active leg, the standard retracements are projected: 0.236, 0.382, 0.5, 0.618, 0.65, 0.786, plus the 0 and 1 leg endpoints. Optional extension shelves at 1.272 and 1.618 project continuation targets beyond the leg.
4. The Golden Pocket. The 0.618–0.65 band is rendered as a glowing zone , and price trading inside it can optionally tint the background — the area many traders watch for reactions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ WHAT YOU SEE
• Auto-anchored retracement shelves with optional price tags
• A glowing Golden Pocket zone and optional 1.272 / 1.618 extensions
• An impulse-leg line marking the anchor
• A resizable dashboard showing the active leg and direction, leg size in ATR, how far price has retraced (with a gauge), the Golden Pocket range and whether price is inside it, the nearest shelf, and the projected extensions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ HOW TO USE IT
• Use the shelves as confluence for entries, targets and invalidation — not as standalone signals.
• The Golden Pocket is the tool's focal zone; combine a pocket tap with your own trigger for a pullback entry.
• Extensions give objective targets once an impulse resumes.
• The retraced % readout tells you at a glance how deep the current pullback is.
• Works on all symbols and timeframes. Raise swing strength and the minimum leg size to anchor to larger structure only.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ NOTES & LIMITATIONS
Because the leg re-anchors on confirmed swings, the active leg updates as new structure is validated. Fibonacci levels are reference zones, not predictions — the tool is not financial advice and cannot guarantee a reaction at any level. Use it as confluence within your own method and risk plan.
— made with passion by officialjackofalltrade
אינדיקטור

Relative Strength Confluence - vs BenchmarkRS Confluence - Dual Signal vs Benchmark
RS Confluence is a relative strength indicator designed to measure whether the current symbol is outperforming or underperforming a chosen benchmark (default: BTC), using two independent signals on the price ratio between the symbol and the benchmark.
How it works
The indicator calculates a ratio between the current symbol's close and the benchmark's close (Symbol / Benchmark), then evaluates it through two lenses:
Level — RSI applied directly to the ratio. Measures whether the symbol is currently trading strong or weak relative to the benchmark.
Momentum — RSI applied to the Rate-of-Change of the ratio. Measures whether relative performance is accelerating or decelerating.
Both signals are kept on the same 0-100 scale, allowing them to be plotted together and compared directly.
Confluence Scoring
Bullish signal — Level and Momentum both cross above the bullish threshold (default 55) → RS BULLISH 2/2.
Bearish signal — Level and Momentum both cross below the bearish threshold (default 45) → RS BEARISH 2/2.
Partial agreement (1/2) and neutral readings (0/2) are also tracked and displayed in the info table.
Features
- Configurable benchmark symbol (any ticker, default BTC)
- Dual confluence scoring (Level + Momentum)
- Background coloring on full confluence
- Triangle markers on the first bar of a new confluence signal
- Live info table showing ratio, level, momentum and confluence status
- Built-in warning when the chart symbol matches the selected benchmark
- TradingView alert conditions for bullish/bearish confluence and midline crosses
- Non-repainting (uses confirmed values on the current timeframe)
How to Read the Chart
Blue Line (Level) — RSI of the Symbol/Benchmark ratio. Shows whether the symbol is currently stronger or weaker than the benchmark.
Orange Line (Momentum) — RSI of the ratio's Rate-of-Change. Shows whether that relative strength is accelerating or fading.
Dashed Threshold Lines — The upper line is the bullish threshold, the lower line is the bearish threshold. Full confluence requires both Level and Momentum to be on the same side of their respective threshold at the same time.
Red Triangles (top, pointing down) — Mark the first bar of a new RS BEARISH 2/2 signal: both Level and Momentum dropped below the bearish threshold together.
Green Triangles (bottom, pointing up) — Mark the first bar of a new RS BULLISH 2/2 signal: both Level and Momentum rose above the bullish threshold together.
Background Shading — Highlights the full duration of an active confluence signal (not just the trigger bar), making it easy to see how long the symbol stayed in a bullish or bearish RS regime.
Suggested Interpretation
RS Confluence is intended as a context indicator, not a standalone trading signal. A coin can show a strong technical setup on its own chart, but if it is underperforming the benchmark (e.g. BTC), the setup carries less weight — and vice versa. Use this indicator to filter or confirm signals from other tools rather than trading it in isolation.
Important
Do not apply this indicator to a chart where the symbol is the same as (or economically equivalent to) the selected benchmark — the ratio becomes constant or near-constant, making the readings meaningless. The indicator detects an exact ticker match and displays a warning in the info table, but different tickers referencing the same underlying asset (e.g. the same coin on a different exchange or quote currency) are not automatically detected.
This is the third indicator in a related series, designed to work alongside Divergence Confluence 7 and Volume Surge - Dual Period as part of a broader confluence-based analysis approach. אינדיקטור

TF: Trend Phases Ribbon (TPR)TradingFlow: Trend Phases Ribbon (TPR)
Most trend indicators put the market into one of two boxes: bullish or bearish. Price rarely moves that neatly. Bullish trends have pullbacks, bearish trends have rallies, and a change of direction usually passes through an uncertain stage first.
Trend Phases Ribbon keeps those stages visible on the chart. It shows the prevailing direction while also telling you whether the current move is supporting that direction, pushing against it, or moving into transition.
How it works
TPR uses two ALMA-smoothed trend paths. The thicker path responds more quickly to price, while the thinner path follows the broader trend. The model reads their direction and separation in the context of recent price movement, then assigns one of five phases. A separate short-term reading allows a pullback or rally to appear without immediately reversing the broader trend.
A crossover is only one part of the picture and does not decide the phase on its own.
Phase changes and event markers are confirmed when the bar closes. On the open bar, the responsive path can still move with price while the last confirmed phase remains in place.
Reading the colors
Green: Bullish
The broader trend and the shorter-term move are both bullish.
Light green: Bullish Pullback
The broader trend is still bullish, but the shorter-term move is pulling back against it.
Blue-gray: Transition
The previous directional phase has weakened, while a new bullish or bearish phase has not yet been confirmed. Price may continue in the new direction, return to the previous one, or spend some time without a clear bias.
Light pink: Bearish Rally
The broader trend is still bearish, but the shorter-term move is rallying against it.
Red: Bearish
The broader trend and the shorter-term move are both bearish.
Reading the ribbon
The thick line is the responsive trend path; the thin line is the broader trend path. When both slope in the same direction and the ribbon opens up, the move is becoming more clearly separated in that direction. When the ribbon narrows or the paths begin to turn toward each other, the trend is losing alignment and may be approaching a different phase.
Ribbon width shows the distance between the two paths. It is best read together with the color and slope rather than as a strength value on its own.
Markers and settings
A green circle with "U" appears when a bearish phase ends and an upward transition begins. A red circle with "D" marks the opposite change: a bullish phase has ended and a downward transition has started. These are early transition points. The next confirmed regime may appear later, or the market may return to its previous direction.
For a more detailed chart, the Display settings can show diamonds at confirmed bullish or bearish regime starts. Smaller pale circles can also mark the beginning of bullish pullbacks and bearish rallies. Both are hidden by default so the main ribbon stays clean. Alerts are available for these phase events and for any change in state.
Balanced is the general-purpose default. Fast follows shorter swings more closely, while Slow gives more weight to persistent trends. Custom mode is available when a symbol or timeframe needs a different response.
Practical use
Start with the ribbon color to identify the current phase, then look at its slope and width for context. Strong colors show that the broader trend and shorter-term move agree. Pale colors show a temporary move against the prevailing trend. Blue-gray tells you that the old phase has faded and the next one is still being decided.
TPR is designed for standard time-based charts and can be used across different symbols and chart timeframes.
---
TradingFlow: Trend Phases Ribbon (TPR)
很多趨勢指標只把行情分成多頭或空頭,但實際走勢通常不會一次翻面。多頭裡會有回調,空頭裡也會有反彈;真正換方向之前,往往還會先走過一段不明朗的過渡期。
Trend Phases Ribbon 想做的事情很直接:先看目前的大方向,再分辨眼前這一段是在順勢推進、逆勢回檔,還是已經進入轉換。
運作方式
TPR 以兩條經過 ALMA 平滑的趨勢線作為基礎。粗線對價格反應較快,細線則用來觀察較長一段的方向。判斷階段時,模型不只看兩條線有沒有交叉,也會參考線條的方向、距離,以及近期價格的變化,再把行情歸入五種狀態。
短線走勢另有一層判讀,所以多頭中的回調、空頭中的反彈,可以先反映在色帶上,不必因為一小段逆向波動就把主趨勢整個翻面。TPR 的判斷方式也因此和一般快線/慢線交叉指標不同。
階段切換和事件標記都在收 K 後確認。即時 K 線尚未收盤時,反應較快的粗線仍會跟著價格移動,但色帶會保留上一個已確認的階段。
顏色怎麼看
綠色:Bullish
主趨勢向上,短線走勢也在配合多頭方向。
淺綠色:Bullish Pullback
主趨勢仍然向上,但短線正在回調。這時看到的是多頭趨勢裡的逆向段落。
藍灰色:Transition
原本的方向已經轉弱,新的多頭或空頭階段則還沒確認。行情可能繼續換方向,也可能回到原來的趨勢,或者先橫行一段時間。
淺粉紅色:Bearish Rally
主趨勢仍然向下,但短線正在反彈。這是空頭趨勢裡的逆向段落。
紅色:Bearish
主趨勢向下,短線走勢也在配合空頭方向。
色帶怎麼看
粗線是反應較快的趨勢線,細線代表較長一段的方向。兩條線同時往上或往下,而且距離逐漸拉開,通常表示行情正朝該方向展開。色帶開始收窄,或兩條線轉向彼此靠近時,代表原本的配合正在減弱,接下來可能切換到另一個階段。
色帶寬度只是兩條趨勢線之間的距離。閱讀時要連同顏色和斜率一起看,不需要把寬度單獨當成強弱分數。兩線交叉也不會直接決定多空,最後仍以收 K 後確認的色帶階段為準。
標記與設定
綠色圓點和「U」表示空頭階段告一段落,行情開始進入向上的轉換;紅色圓點和「D」則表示多頭階段結束,向下的轉換剛開始。它們是階段交接的早期提示。之後可能確認新的趨勢,也可能繞一圈回到原來的方向。
想看得更細,可以在 Display 裡開啟菱形標記。它會標出多頭或空頭趨勢正式確認的位置。另一組淺色小圓點則用來標示多頭回調和空頭反彈的起點。這兩組標記預設關閉,畫面會比較乾淨;各種階段事件與狀態切換也都可以設定提示。
Balanced 是一般情況下的預設選擇。Fast 比較貼近短線擺動,Slow 偏向保留較持久的趨勢。若個別商品或週期需要不同反應,也可以使用 Custom 自行調整。
實際看盤
先看顏色,知道行情目前在哪一個階段,再看色帶的方向和寬窄。深色代表主趨勢與短線走勢同向;淺色代表價格正在逆著主趨勢走一段;變成藍灰色,則表示上一個階段已經淡出,下一個方向還在形成。
TPR 為標準時間型圖表而設,可套用在不同商品和圖表週期。
אינדיקטור

Continuation Order Block Lite [EmpArchitect] █ OVERVIEW
Continuation Order Block Lite maps bullish and bearish order-block zones that form only after a defined continuation-structure sequence.
Many order-block tools identify an opposing candle and plot a zone without showing the structural sequence that made the zone relevant.
This script separates the sequence from the zone:
• CHoCH establishes a possible change in structural direction
• BUILD BOS advances the continuation sequence
• CONT BOS confirms or extends the selected continuation model
• A qualifying continuation order block is then mapped
• The zone is tracked through interaction, invalidation, expiry, or supersession
It is an analytics-only structure tool. It does not provide entries, stop losses, targets, position sizing, risk/reward, probability scores, performance claims, or trade signals.
█ WHAT IT MAPS
Bullish continuation zone:
A full-candle zone taken from the most recent bearish structure-timeframe candle before a qualifying bullish continuation break.
Bearish continuation zone:
A full-candle zone taken from the most recent bullish structure-timeframe candle before a qualifying bearish continuation break.
The script tracks one current active continuation zone. Older zones may remain visible as inactive historical boxes.
█ CONTINUATION MODELS
Model B — CHoCH + first BOS:
The structural direction changes through CHoCH. The first same-direction BOS completes the continuation sequence.
Model A — CHoCH + two BOS:
The structural direction changes through CHoCH. The first BOS builds the sequence. The second same-direction BOS completes the stricter continuation sequence.
The model changes the number of confirmed structural breaks required before the structure state becomes ready.
█ HOW THE STRUCTURE SEQUENCE WORKS
The script uses confirmed pivots from the selected structure timeframe.
A pivot high or pivot low becomes available only after the selected left-side and right-side confirmation bars have completed.
A close beyond the latest live swing level creates a structural break:
• CHoCH — the break changes the current structural direction
• BUILD BOS — the break continues the new direction but has not yet completed the selected model
• CONT BOS — the break completes or extends the selected continuation sequence
The script uses the most recently confirmed internal pivot. A newer confirmed pivot can replace an older unbroken pivot.
Equal highs and equal lows are not accepted as pivots because the comparison is strict.
█ ORDER-BLOCK ORIGIN
After a qualifying continuation break, the script searches backward through completed structure bars.
For a bullish continuation zone, it selects the most recent bearish candle.
For a bearish continuation zone, it selects the most recent bullish candle.
The complete candle high-to-low range is used. The zone is not reduced to the candle body.
The search is limited by the Origin search window setting.
The zone begins when the continuation condition is confirmed. It is not back-projected as though it had already been known on the original candle.
█ DISPLACEMENT AND FVG QUALIFICATION
A candidate zone must pass the selected displacement / imbalance rule.
Displacement is measured against ATR from the structure timeframe.
Immediate FVG refers to a three-candle imbalance anchored at the selected origin candle.
When “Require both displacement and immediate FVG” is OFF:
• Displacement OR immediate FVG can qualify the zone
When it is ON:
• Displacement AND immediate FVG are both required
The dashboard displays the active rule and ATR multiplier.
█ VISUAL LANGUAGE
The structure sequence uses different line styles so the events are not presented as equivalent.
CHoCH:
• Dashed line
• Muted directional colour
• Context transition only
BUILD BOS:
• Dotted line
• Muted label
• Sequence is still below the selected confirmation threshold
CONT BOS:
• Solid line
• Stronger directional colour
• Thicker line at the break that completes the selected continuation model
Bullish structure and zones use green.
Bearish structure and zones use orange.
Active zones use stronger solid styling.
Inactive historical zones retain their bullish or bearish colour with a faded fill and dotted outline.
█ ZONE LIFECYCLE
The script tracks the zone separately from the structural break that created it.
An active zone can be:
• Fresh
• Touched
• Gap-through
• Structurally invalidated
• Expired by maximum age
• Superseded by a newer same-side continuation zone
First interaction:
A zone is marked as touched when price first reaches the zone and overlaps its range.
Gap-through:
A gap-through event is recorded when the first interaction bar moves completely beyond the zone without overlapping it.
Structure invalidation:
• Bullish zone — a completed structure-timeframe close below the zone bottom
• Bearish zone — a completed structure-timeframe close above the zone top
Age expiry:
The zone becomes inactive after exceeding the selected maximum number of completed structure bars.
Supersession:
A newer qualifying same-side continuation zone replaces the currently active zone.
A touch does not automatically delete the zone.
█ TIMEFRAME MODES
Auto mode:
• Charts up to and including 4H use 4H structure
• Charts above 4H through 1D use 1D structure
• Charts above 1D through 1W use 1W structure
• Charts above 1W use 1M structure
Examples:
• 15m chart → 4H structure
• 1H chart → 4H structure
• 4H chart = 4H structure
• 1D chart = 1D structure
Manual mode:
Select a structure timeframe equal to or higher than the chart timeframe.
Examples:
• 1H chart → 4H structure
• 4H chart → 1D structure
• 1D chart → 1W structure
A structure timeframe below the chart timeframe is rejected.
Same-timeframe mode processes the prior completed chart bar directly.
Higher-timeframe mode processes the prior confirmed structure bar when a new structure bar begins.
█ STATUS PANEL
The panel shows the current continuation state:
• Chart timeframe and structure timeframe
• Auto or Manual mode
• Same-timeframe or higher-timeframe view
• Selected continuation model
• Current sequence progress
• Most recent structural break
• Active bullish-zone state, age, and range
• Active bearish-zone state, age, and range
• Most recent zone lifecycle event
• Current displacement / FVG qualification
• Structure-data readiness
The panel describes the current state. It does not recommend an action.
█ ALERTS
Included structure-context events:
• New bullish or bearish continuation zone
• Bullish or bearish zone interaction
• Bullish or bearish gap-through
• Zone deactivation
Zone-deactivation messages include the reason:
• Structure reversal
• Structure invalidation
• Age
• Superseded
These are structure-event alerts only. They are not trade signals.
█ WORKED EXAMPLE
Example: 1H chart with 4H structure and Model B.
1. A confirmed 4H close breaks the latest opposite-side swing and creates CHoCH.
2. A later confirmed 4H close breaks the next same-direction swing.
3. That break is displayed as CONT BOS because Model B requires CHoCH plus the first BOS.
4. The script searches backward for the most recent opposing 4H candle.
5. The full high-to-low range of that candle becomes the candidate continuation zone.
6. The candidate appears only if the displacement / immediate-FVG rule passes.
7. A touch changes the zone from fresh to touched but does not deactivate it. The zone remains active until structure reversal, structure invalidation, age expiry, or supersession.
The sequence establishes why the zone was mapped. It does not establish that price will return to the zone or that the zone will hold.
█ HOW IT DIFFERS FROM SMC STRUCTURE ENGINE
SMC Structure Engine is a broader chart-structure tool.
It maps general CHoCH and BOS events, multiple order blocks, liquidity sweeps, break strength, zone scoring, touch counts, and broader regime context.
Continuation Order Block Lite is narrower by design.
It focuses on:
• A selected structure timeframe
• A defined CHoCH-to-BOS continuation sequence
• A continuation-specific origin candle
• Displacement / immediate-FVG qualification
• One current active continuation zone, with older zones retained as inactive history
• A compact continuation-zone lifecycle
The two scripts answer different questions.
SMC Structure Engine asks:
What is the broader structure and order-block context on this chart?
Continuation Order Block Lite asks:
Did a defined continuation sequence complete, and what happened to the resulting origin zone?
█ SETTINGS
Model settings:
• Structure timeframe mode
• Manual structure timeframe
• Trend-state model
• Pivot left bars
• Pivot right bars
• Origin search window
• Displacement threshold
• Require both displacement and immediate FVG
• Maximum zone age
Display settings:
• Show zone boxes
• Show continuation sequence
• Show structure swing levels
• Show status panel
█ IMPORTANT LIMITATIONS
• Confirmed pivots introduce delay.
• Structural breaks use completed closes, not intrabar assumptions.
• A valid continuation sequence does not prove that continuation will persist.
• A mapped zone does not imply that price will return.
• A zone interaction does not imply that the zone will hold.
• The script keeps only one current active continuation zone.
• A newer same-side zone supersedes the previous active zone.
• Zones use the full candle range, not the body.
• Equal highs and equal lows are excluded by the strict pivot definition.
• The script does not evaluate volume, liquidity sweeps, session quality, macro events, or market regime outside the defined sequence.
• Results depend on pivot settings, origin lookback, ATR threshold, FVG requirement, market, and timeframe.
• Same-timeframe and higher-timeframe views can show different structural granularity.
• Lower-liquidity or highly irregular markets may produce noisier structure.
█ NOTES
• Pine Script v6
• Public and open-source
• Built by EmpArchitect
• Analytics-only structure tool
• Designed for chart review and structural inspection
• Not a signal service
• No entries, exits, stop losses, targets, or performance claims
█ CORE IDEA
Continuation Order Block Lite does not treat every opposing candle as an order block.
It first requires a defined continuation sequence.
It then maps the origin zone and records what happened to it.
Structure observations, not signals. אינדיקטור

Fib Trend & Legs (BoaBias)█ OVERVIEW
Fib Trend & Legs (BoaBias) draws Fibonacci structure on two nested scales at once: a parent fib across the full market-structure trend cycle (trend-up ↔ trend-down), and child fibs on the BOS / CHoCH swing legs inside that trend. Optional golden / deep zones plus a CT-fade Edge panel (ALMA overheat · MTF EMA overheat · fib-anchored VWAP · golden proximity) with matching overlays. Structural context for discretionary work and alert workflows — not a black-box signal service.
█ WHY UNIQUE
Most Fib tools lock to a single hand-picked or last-swing range. This map keeps parent trend and child legs alive together : the parent tracks the whole structure trend cycle while child legs lock on each confirmed BOS/CHoCH segment (plus an optional forming leg). The Edge panel is a CT-fade confluence over that map: ALMA run overheat and MTF EMA above/below overheat (same lengths as BoaBias public EMA/ALMA), proximity to the parent golden zone, and a VWAP anchored at the parent fib start — so stretch + pullback context sit on one overlay instead of juggling three scripts.
█ HOW TO USE
First use: If the indicator appears in the wrong scale (squashed or fullscreen), right-click the indicator → Pin to scale → Pin to right scale.
Leave Show Parent Fib and Show Child Fibs on; tune Pivot Length so swings match your timeframe (higher length = fewer, larger structure events).
Watch Golden Zone / Deep Zone on the parent for pullback context; enable the same zones on child legs when you trade inside-leg retracements.
Use Pattern Edge (top-right) for parent-fib CT-fade confluence and Child Edge (bottom-left) for the active leg — high when pullback-side ALMA/EMA is stretched into golden near fib VWAP. Not a standalone entry trigger.
Alerts: Chart → Create alert → this indicator → choose a condition (Golden/Deep entry, Strong Edge, Cross Fib VWAP, Break 0%, Full Retrace, Trend Up/Down, BOS, Upsweep/Dnsweep). Prefer Once per bar close for cleaner automation.
█ HOW IT WORKS
Market structure: Pivot highs/lows feed a trend state. Trend flips (and BOS / CHoCH / optional liquidity sweeps) define when ranges update. Algorithm mode: Extreme Points or Adjusted Points.
Parent fib (Trend): Anchored to the full active trend cycle — from the cycle origin to the opposing extreme — with retracements, optional extensions, and zone fills between configurable ratios (defaults emphasize 61.8–78.6 golden and 78.6–88.6 deep).
Child fibs (Legs): Each leg = protective origin (CHoCH / last protect wick) → running extreme ( ms.main wick). Locked on BOS with those bars frozen. L1 = newest locked, L2 = previous, Lf = forming. Optional H/L anchor marks show the two wicks. Parent trend flip clears child history.
Edge layer (CT fade): Two panels — Pattern (parent fib) and Child (active leg). Each scores golden proximity (≤25) + ALMA pullback CT (≤25) + EMA pullback CT (≤25) + fib-start VWAP (≤25). ALMA/EMA CT use the chart timeframe only (panel shows e.g. ALMA 1D). For a bull fib, CT scores short / below-EMA stretch; bear fib scores the opposite. Optional plots: chart-TF ALMA SuperTrend, enabled EMAs, Pattern + Child fib VWAPs.
Sweep markers: Optional “x” markers when structure detects upsweep / dnsweep liquidity grabs (style group for color, size, max count).
█ CTA
More BoaBias public Scripts: TradingView → Goldfinch_song → Scripts .
Ideas that use this stack: profile → Ideas tab.
█ LIMITATIONS
Pivot-based structure lags until pivots confirm; forming parent/child ranges can update until the next structure event.
Fib levels and zones are structural maps , not guaranteed support/resistance or trade signals.
Edge score is a confluence helper on the loaded history — descriptive, not predictive.
Heavy child history + many levels can hit drawing limits — lower Max Completed Child Legs or disable unused levels.
Educational / research overlay. Not financial advice.
Pine Script v6. License: MPL-2.0 . אינדיקטור

OBV+OBV+
OBV+ tracks On Balance Volume against a moving average of itself and turns
that relationship into a directional state, then gates entries behind a
statistical trend test and manages the trade with a chandelier stop that only
ever moves in your favor.
HOW THE STATE WORKS
The indicator plots OBV with a configurable moving average (EMA, SMA, WMA,
RMA, or HMA). The distance between the two is ranked as a percentile against
its own recent history, so a strong OBV move is defined relative to what this
symbol has actually been doing rather than by a fixed number that means
something different on every chart. When that strength clears your threshold,
the state turns bullish or bearish and stays there until a qualifying move
flips it the other way. A minimum bar spacing keeps the state from
oscillating.
HOW ENTRIES WORK
A state flip on its own does not open a trade. The flip arms an entry window,
and within that window a linear regression on price must independently confirm
that a trend exists in the same direction, measured by the t statistic of the
regression slope. If the trend test agrees, the trade opens. If the window
closes without confirmation, the flip expires and prints a small gray circle
so you can see exactly which signals were passed over. The next entry then
waits for a fresh flip.
Price bars are colored by the gate rather than by raw OBV, so bars show green
or red only where both conditions are satisfied and gray everywhere else. You
can see at a glance which parts of the chart the indicator considers
tradeable.
HOW EXITS WORK
The stop arms immediately on the entry bar, placed beyond that bar's range so
a wide entry candle cannot take you out on the next bar. From there it trails
from the highest high reached since entry (or lowest low when short) at a
configurable ATR multiple, and it is hard clamped so it can only tighten. In a
long it never moves down. It tightens as volatility contracts and holds its
ground when volatility expands. The stop line is drawn directly on price
alongside entry triangles and exit crosses.
The trailing stop is the only exit by default. Opposite states are ignored
while a position is open, so a brief counter signal that does not reach your
stop leaves the trade running. If you would rather have state changes close
and reverse the position, there is a switch for it.
INPUTS
MA type and length, strength lookback and minimum percentile, minimum bars
between flips, regression lookback, minimum absolute t statistic, confirmation
window length, ATR length and chandelier multiple, plus a flip reverses
position toggle. Display options cover the fill, the trail, trade markers, and
bar coloring, with configurable bull, bear, and neutral colors. An optional
pane mode swaps OBV for the signed strength percentile with the threshold
lines drawn, which makes it easy to see which moves clear the bar.
ALERTS
Separate alert conditions for long entry, short entry, and exit, plus a single
combined alert carrying the ticker, timeframe, strength percentile, t
statistic, and current stop level.
NOTES
Because the signal is built from volume, results depend on the volume series
your data feed provides, and the same symbol can behave differently across
exchanges. Signals evaluate on bar close. Settings are deliberately open
ended: a low strength percentile with a short regression lookback produces
frequent, permissive signals, while raising the percentile and the t threshold
narrows it toward fewer and more selective ones. This is for informational purposes
only and isn't meant as financial advice. אינדיקטור

Day-Extreme Reversal SignalsReal-time detector for the bar shapes that historically printed SPY's day low and day high. When a new session extreme forms, it tells you the measured probability that THIS bar holds as the day's extreme - and how those odds differ between 5-minute scouts and hourly signals.
OVERVIEW
Every intraday trader eventually asks the same two questions: "was that the low?" and "is this the high?" This indicator answers them with measured frequencies instead of intuition.
It watches for new session extremes in real time. When one prints, it classifies the bar's shape - reversal close, spring, V-confirm at lows; rejection, high-confirm at highs - and labels it with the historical probability that this specific shape, at this event, held as the day's extreme. A decision panel keeps the session context on screen: where the current extremes sit, when they printed, the odds the day's extreme has already happened given the time of day, and the structural rules for acting on lows versus highs.
The stats were built by real-time simulation - walking bar by bar and asking "would this signal have fired here, and did the extreme hold?" - not by locating day extremes in hindsight and describing them afterward.
WHY THIS IS DIFFERENT
TradingView has time-of-day extreme statistics: tools that count in which hour or session window daily highs and lows historically print. Those answer "WHEN does the extreme usually happen?"
This script answers a different question: "is THIS bar the extreme?" The probabilities are conditional on an event (a new session extreme printing) and on the shape of the bar that printed it - not on the clock. To my knowledge no public script does event-conditional extreme classification, and none publishes the two findings that drive this tool's usage rules:
1 - The scout/signal hierarchy. The same shapes carry very different weight by timeframe. A 5-minute reversal close at a new session low held as the day low 28% of the time (versus a 14% baseline for any new session low) - interesting, not tradeable alone. The same shape on an HOURLY bar held 64% of the time (versus a 35% hourly baseline) - nearly two-thirds of occurrences marked the day low. The 5m shapes are scouts that put you on alert; the hourly shapes are the signal.
2 - Lows and highs are structurally different animals. In the data, lows are V-shaped: 55% of day lows were never retested within 30 minutes. Highs are processes: 82% of day highs were retested within 30 minutes. The practical asymmetry is baked into the panel - at lows, waiting for a retest usually means missing the trade; at highs, patience is statistically paid for.
THE SHAPES
All shapes evaluate only at a NEW session extreme (or on the bar immediately following one). At lows:
- RevClose - the bar makes a new session low but closes green and in the top third of its range. Sellers broke the floor and were immediately overwhelmed. Strongest low shape on both timeframes (5m: 28% holds; hourly: 64%).
- Spring - new session low with a long lower wick (more than half the bar) and a close off the floor. The push below found no acceptance (5m: 17%; hourly: 55%).
- V-confirm - the bar AFTER a red new-session-low bar opens and closes green above the prior open. Confirmation that the flush reversed (5m: 27%; hourly: 54%).
At highs:
- Reject - new session high with a long upper wick and a close out of the top third. (5m: 11% vs 9% base - barely above baseline; hourly: 47% vs 28% base.)
- HighConf / Confirm - a red bar immediately after a green new-session-high bar. (5m: 12%; hourly: 33%.)
Note what the high-side numbers say: even the best hourly high shape holds less than half the time. Tops are processes, and the script tells you so rather than pretending otherwise.
THE DECISION PANEL
- Current session low and high with their print times (ET).
- Time-of-day odds that the day's extreme has ALREADY printed, interpolated from the measured distribution (37% of lows are in by 10:00 ET, 60% by 11:30; highs run later - 18% by 10:00, with a heavy skew into the final hour).
- A provisional read of what the current, still-forming hourly bar is shaping into.
- The two structural rules, always on screen: lows are V-shaped, do not wait for the retest; highs retest 82% of the time, exits and fades can be patient.
HOW TO USE IT
Work on a 5-minute chart (any intraday timeframe runs; daily charts are rejected with an error).
- A 5m scout triangle at a new session low means: stop, context check. Alone it is a minority bet.
- The teal background band - an hourly low shape confirming - is the signal. Odds the day low is in jump to roughly fifty-fifty or better. Because lows are V-shaped, the statistically supported action is to act on the signal bar rather than wait for a pullback that usually never comes.
- The orange band at highs is a warning, not a green light to fade aggressively: expect a retest attempt, and use it - the second look at a high is where shorts and exits get their fill.
- The time-of-day odds frame everything: a new low printing at 14:30 ET is a rarer, more reliable event than one at 09:45, simply because most days have already made their low by then.
Alerts are provided for the hourly low signal, the hourly high signal, and the strongest 5m scout.
THE DATA, STATED PLAINLY
- Instrument: SPY. Samples: 60 days of 5-minute bars and 730 days of hourly bars.
- Method: real-time simulation. The detector walked forward bar by bar; every firing was recorded with whether that extreme survived as the day's extreme. No hindsight selection.
- Every probability is shown next to its baseline (the hold rate of ANY new session extreme on that timeframe), so you can see the edge, not just the number.
- The percentages are fixed numbers derived from that study, embedded in the script. They are descriptive statistics of a specific instrument over a specific period - not guarantees, and they will drift as market character changes.
- On symbols other than SPY (and index products that track it closely), the shape logic still runs, but the printed percentages do not apply. Treat them as unknown there.
LIMITATIONS
- Hourly signals use confirmed hourly bars (the standard non-repainting idiom - no future data is accessed), so they appear at the close of the hour, not at its low. The "forming" panel row is explicitly provisional and changes until the hour closes.
- 5m labels print on bar confirmation.
- The session-extreme state resets each calendar session; extended-hours settings on your chart change what counts as the session.
- The 60-day 5-minute sample is modest; the hourly sample (roughly two years) is the sturdier one, which is one more reason the hourly shapes are the signal tier.
- This is a probability tool, not an entry system. It quantifies "was that the extreme?" - stops, targets, and sizing are yours.
NOTES
The time-of-day asymmetry the data surfaced - lows early, highs late, lows violent, highs sticky - echoes the old observation running from George Douglass Taylor through Linda Raschke's day-structure work: down moves complete in the morning and buying builds through the day more often than the reverse. This script did not assume that; the simulation found it independently in modern SPY data.
Educational tool, not financial advice. אינדיקטור

LBR 3/10 + TICK DivergenceOn-chart detector for Linda Raschke's "blindfold" setup: a signal prints only when price, the LBR 3/10 oscillator, and the NYSE TICK all diverge at the same two swing pivots. Built for intraday index trading.
█ OVERVIEW
Linda Bradford Raschke has described one intraday setup she rated highly enough to say she would take it blindfolded: price makes a new swing low, but both her 3/10 oscillator AND the NYSE TICK refuse to confirm it. Momentum is drying up on your symbol, and the selling pressure across the entire exchange is drying up with it.
This script detects that three-way alignment mechanically and marks it directly on the price chart with a label, a divergence trendline, and a tooltip showing the exact readings behind every signal. Nothing prints unless all three legs agree at the same two pivots.
█ WHY THIS IS DIFFERENT
TradingView has many divergence engines, including multi-oscillator "agreement" tools, and it has several TICK divergence scripts. What it does not have is a script that requires the specific LBR combination — price + 3/10 fast line + NYSE TICK — to diverge at the same two confirmed swing pivots before anything prints. Generic tools check each oscillator against price independently; this one treats the three-way agreement as a single gated signal, because that is the setup as Raschke teaches it. One condition missing = no signal.
It is also built for accountability: every label carries a tooltip with the precise price, oscillator, and TICK values at both pivots, so you can audit any signal after the fact instead of trusting an arrow.
█ HOW IT WORKS
A bullish signal requires all of the following at two confirmed swing lows (bearish is the mirror at swing highs):
1 — Price: lower low. The second swing low is below the first.
2 — 3/10 oscillator: higher low. The fast line (SMA 3 − SMA 10 of close) is higher at the
second pivot than the first. Sellers made new price lows without new momentum lows.
3 — NYSE TICK: higher low. The TICK low at the second pivot is above the TICK low at the
first. Program selling across the exchange could not match its earlier intensity — breadth
is failing even as price ticks lower.
Additional gates:
• Swing spacing window. The two pivots must be a minimum and maximum number of bars apart
(configurable). Too close is noise; too far and the pattern is stale.
• Zero-side filter (optional, on by default). Both oscillator readings must be below zero
for bullish signals and above zero for bearish ones — the divergence forms in genuinely
depressed (or elevated) momentum territory, not mid-range chop.
• Confirmed pivots only. Swings are detected with asymmetric pivot strength: a larger
left side to define a real swing, a small right side for fast confirmation. Once a signal
prints, it does not repaint.
TICK data is requested on the chart's timeframe with no lookahead. The TICK requirement can be toggled off, which turns the script into a clean price + 3/10 double-divergence detector for symbols where TICK doesn't apply.
█ HOW TO USE IT
Where: designed for short intraday timeframes on the US index complex — ES, MES, SPX, SPY, QQQ — during regular NYSE hours. TICK is flat overnight and meaningless outside US equities; disable the TICK leg anywhere else.
The Raschke approach. This is a countertrend scalp against an exhausting move, not a trend entry. The label marks the condition; the entry comes from price. A typical plan for the bullish version:
• Enter on a break above the high of the signal pivot's confirmation area, or the first strong
close back in the direction of the signal.
• Initial stop goes beyond the divergence extreme — if price takes out the second swing low
decisively, the setup failed.
• First target is the middle of the prior swing or the nearest reference average. Divergence
trades fade an extended move; take profits actively rather than hoping for a reversal into
a full trend.
The Grimes perspective. Adam Grimes, who uses the same 3/10, emphasizes that momentum divergence is only worth fading when the move it is fading is overextended. This script deliberately keeps the engine minimal, so bring that judgment yourself: the best signals appear after a sustained directional push into an extreme — late in a morning sell-off, at a measured-move completion, after several consecutive momentum lows — not in the middle of a quiet range. A divergence that forms mid-range chop is a statistic; one that forms at an extension is a trade.
Even if you never fade anything, the signals have a second use, straight from Grimes: a bearish triple divergence printing while you hold longs is an objective warning that the leg you are riding has lost its sponsorship.
█ FEATURES / INPUTS
• 3/10 Oscillator : fast and slow SMA lengths; zero-side filter toggle.
• Swing Detection : pivot strength left/right (right side controls confirmation lag);
min/max bars between the two swings.
• TICK Confirmation : toggle the TICK requirement; TICK symbol input (swap for your
data feed's TICK).
• Display : divergence trendlines on price on/off; bullish and bearish colors.
• Tooltips on every label showing price, oscillator, and TICK values at both pivots.
• Two alert conditions — bullish and bearish triple divergence — with ticker and interval
placeholders, firing only on confirmed, non-repainting signals.
█ LIMITATIONS
• Signals confirm a few bars after the actual swing — the cost of using confirmed pivots
instead of repainting ones. The label is placed back at the true pivot bar.
• The TICK leg only works on US equities and index products during regular trading hours,
on intraday timeframes.
• This is a countertrend tool. In a strong one-way trend, price can print divergence after
divergence while grinding on. The zero-side filter and spacing window suppress some of this,
but no divergence tool should be traded against a runaway market — Raschke's own warning.
• The script identifies the condition; it is not an entry system. Trigger, stop, and target
decisions are yours.
█ THANKS
Credit to Linda Bradford Raschke (LBRGroup, Street Smarts) for the 3/10 oscillator and the triple-divergence setup, and to Adam Grimes (The Art and Science of Technical Analysis) for the momentum-divergence framework referenced above. Educational tool, not financial advice. אינדיקטור

3/10 Divergence + Ante (Raschke)Rule-based LBR 3/10 divergences with three quality gates, TICK-confirmed "triple" divergences (the blindfold trade), and the Anti/kiss continuation setup — all in one pane, all with alerts.
█ OVERVIEW
TradingView already has plenty of 3/10 oscillators. They all do the same thing: plot SMA(3) − SMA(10) with a 16-period signal line and stop there. You still have to eyeball every divergence and every pullback yourself.
This script codifies the two setups the oscillator was actually built around, as taught by Linda Bradford Raschke and Adam Grimes: the momentum divergence (with the quality filters that separate a real one from noise) and the Anti — the first pullback after a fresh momentum impulse.
█ WHY THIS IS DIFFERENT
Three things I could not find in any other public script, let alone together:
• Divergences are gated, not just "detected." Generic divergence scripts fire on any two
oscillator pivots that disagree with price, producing endless noise. Here a divergence must
pass three quality gates drawn from how Raschke actually teaches the pattern: the two swings
must be the right distance apart, the first swing must be a genuine extension outside a
Keltner band, and momentum must stay on one side of its signal line for the entire pattern.
Most signals that generic scripts print never make it through these filters — by design.
• Triple divergence with NYSE TICK. When the price/oscillator divergence is also confirmed
by the NYSE TICK diverging at the same two pivots, a separate higher-conviction signal prints.
This is LBR's famous "blindfold trade" — the setup she said she'd take without looking at the
chart. There are TICK-divergence scripts and there are 3/10 scripts; none require both to line
up at the same pivots.
• The Anti ("kiss") is detected mechanically. The first-pullback-after-impulse trade is
usually described discretionarily. Here it is codified: a new momentum extreme (the fast line
turns black so you can see the impulse), then a shallow retracement toward a sloping signal
line, then a turn back in trend direction. No zero-line crossing tricks, no repurposed
MACD-cross signals.
If you just want a plain 3/10, use any of the existing ones. This one is for trading the setups.
█ THE OSCILLATOR
• Fast line (blue): SMA(close, 3) − SMA(close, 10). Short-term momentum.
• Slow line (orange): SMA(fast, 16). The trend of momentum.
• Histogram : fast − slow. Teal above zero, red below.
• The fast line turns black on any bar where it makes a new momentum high or low over the
impulse lookback. Black = impulse — your visual cue that an Anti setup may be arming.
Simple moving averages throughout — not EMAs. Typing 3/10/16 into a standard MACD gives you the wrong indicator.
█ SIGNAL 1 — DIVERGENCE (green/red triangles)
A bullish divergence prints when ALL of the following are true (bearish is the mirror):
1 — Two price pivot lows the right distance apart (9–12 bars by default). Raschke's
divergences are a rhythm, not just a shape: the swings need enough separation to represent
two distinct tests, but not so much that the pattern goes stale.
2 — Price makes an equal or lower low while the fast line makes a higher low. The classic
definition: sellers pushed price to a new low but couldn't generate new momentum doing it.
3 — The first swing traded outside the Keltner band (20 EMA ± 2.0 × ATR by default).
This is the exhaustion filter. A divergence is a fade — and per both Raschke and Grimes you
only fade a move that is overextended. If the first low never left the channel, there was
nothing climactic to fade, and the signal is skipped.
4 — The fast line never reached the slow line between the two pivots. The histogram stays
below zero the whole time, proving momentum stayed one-sided through the pattern. You're
catching genuine seller exhaustion, not a choppy range where the oscillator whips across its
signal line.
The script draws a line connecting the two oscillator pivots and prints a triangle. Because pivots need right-side bars to confirm, the shape appears a few bars after the actual swing — it does NOT repaint once printed.
How to trade it — Raschke
A divergence is not an entry, it's a condition. It tells you the last push is suspect and the next reaction is likely to retrace. Enter on price confirmation — a break of the divergence bar's high for longs, or the first strong close back inside the range — with a stop beyond the divergence extreme. First target is the middle of the prior range or the moving average. Divergence trades are countertrend, so take profits actively.
How to trade it — Grimes
Grimes uses the same 3/10 and treats divergence primarily as a warning: a trend leg that fails to make a new momentum extreme is a leg whose next pullback you don't buy. So even if you never fade anything, the triangles have a second use — a bearish divergence printing in your uptrend means stand aside on the next pullback entry, because the trend's momentum sponsorship is fading.
█ SIGNAL 2 — TRIPLE DIVERGENCE (yellow diamonds)
Everything in Signal 1, PLUS the NYSE TICK diverging at the same two pivots:
• Bullish: price lower low + 3/10 higher low + TICK higher low.
• Bearish: price higher high + 3/10 lower high + TICK lower high.
TICK measures the breadth of program buying and selling across the whole exchange. When price makes a new low but TICK refuses to, the selling pressure across the market — not just your symbol — is drying up. Raschke called the three-way version the trade she'd take blindfolded.
The yellow diamond prints in addition to the regular triangle, never instead of it. TICK data is requested without lookahead (no repainting) and defaults to USI:TICK.
Practical notes: this signal is intraday, US-equities-hours only — TICK is flat overnight and meaningless for crypto, forex, and non-US symbols; toggle it off there. Best on index futures, SPY/QQQ, and liquid US stocks on intraday timeframes.
█ SIGNAL 3 — ANTI / "KISS" (aqua and fuchsia circles)
The with-trend setup — Raschke's Anti / first pullback, the pattern Grimes describes as the closest thing to a bread-and-butter trade. The sequence for longs (shorts are the mirror):
1 — Impulse. The fast line makes a new momentum high over the lookback window and turns
black on the chart. A fresh momentum extreme statistically begets a retest of the price
extreme after a pullback: strong momentum rarely dies on the first attempt. The extreme must
have occurred above the slow line.
2 — Kiss. The fast line pulls back toward the slow line but only shallowly — within a
configurable fraction of the impulse-high-to-slow-line band, while the histogram is still
positive. This is Grimes's "reluctant pullback": the best continuation entries come when the
countertrend push can barely dent momentum. If the fast line slices through the slow line,
the setup is voided — that's a different, weaker structure.
3 — Slope. The slow line itself must be rising. The pullback happens against a
still-advancing momentum trend — this is what makes it an Anti rather than a guess.
4 — Turn. The fast line ticks back up from a local low. The circle prints on the turn —
momentum resuming in trend direction. Grimes: enter when momentum turns back in the
direction of the trend.
How to trade it: the circle is the alignment signal; execute off price. Typical plan — buy the break of the prior bar's high, stop below the pullback swing low, first target the impulse high (the retest), runner beyond. Because the setup requires a recent momentum extreme, you are structurally always trading in the direction of proven strength.
█ FEATURES / INPUTS
• 3/10 : fast, slow, and signal lengths for the oscillator (SMAs).
• Divergence : pivot lookback; min/max bars between pivots; Keltner EMA, ATR, and
multiplier for the exhaustion filter.
• Triple divergence : on/off toggle and the TICK symbol (swap for your feed's TICK).
• Anti (kiss) : impulse lookback defining a "new momentum extreme"; kiss depth (smaller =
pullback must get closer to the slow line); slow-line slope length.
Six alert conditions: bullish/bearish divergence, triple bullish/bearish divergence, Anti long/short. All fire on confirmed, non-repainting conditions.
█ LIMITATIONS
• Divergence shapes appear a few bars after the pivot — the cost of using confirmed swings
instead of repainting ones.
• Triple divergence only works where TICK works: US equities, intraday, regular hours.
• Divergence signals are countertrend by nature. In a runaway trend the Keltner and spacing
gates will suppress most of them — that is intentional. Raschke's own warning: don't hunt
divergences in the strongest trending markets.
• Nothing here is an entry system by itself. Both Raschke and Grimes trigger off price; the
oscillator tells you when and where to look.
█ THANKS
Credit to Linda Bradford Raschke (Street Smarts, LBRGroup) and Adam Grimes (The Art and Science of Technical Analysis) for the underlying methodology. Educational tool, not financial advice. אינדיקטור

Auto Chart Pattern Mapper Pro v2Overview
Auto Chart Pattern Mapper Pro v2 is a technical analysis indicator that scans the most recent price history for recognizable chart patterns using confirmed swing pivots. When a qualifying pattern is detected, the script automatically draws the pattern geometry, projects potential breakout levels, and displays a structured trade plan consisting of a suggested entry, target, and stop.
The indicator is intended to assist with chart analysis by organizing market structure into a visual format. It does not predict future price movement with certainty and should be used alongside a trader's own analysis and risk management.
How the Indicator Works
The script analyzes up to 600 historical candles using confirmed pivot highs and pivot lows to identify price structure.
From these pivots, it compares the geometry against predefined pattern rules including:
Flags
Pennants
Triangles
Rectangles
Double Tops
Double Bottoms
Triple Tops
Triple Bottoms
Head and Shoulders
Inverse Head and Shoulders
Cup and Handle
Inverted Cup and Handle
Rising Wedges
Falling Wedges
When one of these structures meets the script's requirements, the indicator highlights the pattern directly on the chart.
Additional Confirmation
In addition to pattern recognition, the script evaluates several technical conditions that may provide additional context:
Higher-timeframe EMA trend alignment
Relative volume compared to a moving average
Basic market structure (higher highs/higher lows or lower highs/lower lows)
Break of market structure
Fair Value Gap (FVG) detection
Simple Order Block detection
These factors contribute to an internal setup score used to help organize qualifying patterns.
Chart Display
When a qualifying pattern is detected, the indicator can display:
Pattern boundaries
Swing geometry
Trendline projections
Pattern highlight zone
Fair Value Gap zones
Order Block zones
Entry level
Target level
Stop level
A dashboard summarizes the current analysis.
Dashboard
The dashboard displays:
Current pattern
Bullish or bearish bias
Overall setup score
Higher-timeframe trend
Relative volume
Market structure
Fair Value Gap status
Entry
Target
Stop
Estimated reward-to-risk ratio
Inputs
The indicator allows users to customize:
Analysis lookback period
Pivot sensitivity
Pattern tolerance
ATR filters
Higher-timeframe confirmation
Volume confirmation
Fair Value Gap confirmation
Order Block confirmation
Market structure confirmation
Entry buffer
Stop buffer
Target projection
Minimum setup score
Display options
These settings allow the indicator to be adjusted for different markets and timeframes.
Suggested Workflow
Apply the indicator to a chart.
Allow the script to identify a completed pattern.
Review the displayed pattern and dashboard.
Compare the suggested trade plan with your own market analysis.
Wait for price to confirm the breakout before considering any trading decision.
Manage risk according to your own trading plan.
Notes
Pattern recognition is based on confirmed historical pivots. As a result, patterns are identified after sufficient price confirmation rather than at the exact turning point.
The setup score is an internal ranking based on the script's rules and should not be interpreted as a probability of success.
Entry, target, and stop levels are calculated using the detected pattern geometry and user-defined ATR settings.
This indicator is designed as a chart analysis tool and does not provide financial or investment advice. Past market behavior does not guarantee future results. אינדיקטור

[JOAT] Apex Flow EngineApex Flow Engine
A volatility-adaptive trend-flow engine that only signals when the move has measurable quality behind it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ WHAT IT IS
Apex Flow Engine tracks the market's underlying flow — the direction price is genuinely travelling once noise is stripped out — and grades every potential entry against a transparent Flow Quality score before a signal is ever printed. It is built to keep a chart clean while still giving a full trade framework: entry, stop, and three take-profit targets.
This is 100% original code. It does not reuse or repackage anyone else's script.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ HOW IT WORKS
1. The Flow Baseline. Instead of a fixed moving average, the baseline is an efficiency-weighted adaptive average . It measures how much net directional travel price achieved versus how much raw movement it burned to get there (an efficiency ratio). When price moves cleanly, the baseline speeds up and hugs price; when price chops sideways, it slows and flattens. This keeps the reference honest in both trending and ranging conditions.
2. The Flow Envelope. An ATR-scaled band is wrapped around the baseline. A flow flip is only registered when price closes beyond the opposite band for a configurable number of confirmation closes — this filters the marginal pokes that create false flips on lower timeframes.
3. The Flow Quality score (0–100). Every flip is scored on four independent components before it becomes a signal:
• Momentum alignment — is momentum pushing in the flip direction
• Volume pulse — is participation expanding versus its own average
• Candle structure — did the trigger candle close with a decisive body
• Efficiency — how clean the underlying move is
A signal fires only if the score meets your minimum threshold, so weak, low-conviction flips are skipped.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ WHAT YOU SEE
• BUY / SELL labels carrying the live Quality score plus an efficiency and volume read at the moment of the signal
• A full TP/SL framework on every signal — entry line, stop-loss, TP1 / TP2 / TP3, and shaded risk/reward zones — that automatically stops updating once the stop or the furthest target is reached
• An optional gradient flow ribbon whose intensity scales with Quality, and three candle-coloring styles (Gradient, Solid, Two-Tone)
• A resizable command dashboard with block-meter gauges for Quality, Efficiency, Volume, Body and Stretch, plus live position and stop readouts
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ HOW TO USE IT
• Trade in the direction of the current Flow State . Treat higher-Quality signals as higher-conviction.
• The Stretch (ATR) reading shows how far price has extended from the baseline — large values warn that a pullback may be near before entering late.
• Use the built-in SL and TP levels as a structured plan, or as a reference for your own risk model.
• Works on all symbols and all timeframes. Raise the confirmation closes and minimum Quality on fast intraday charts for fewer, cleaner signals.
◆ SETTINGS THAT MATTER
• Flow Baseline Length / Acceleration — responsiveness of the core
• Envelope Width + Confirmation Closes — how strict a flip must be
• Minimum Quality Score — the signal gate
• TP/SL group — ATR or percent stops, and independent R:R per target
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ NOTES & LIMITATIONS
Apply the indicator to standard candlestick charts . Signals are decision-support tools that describe current conditions — they are not financial advice and no indicator can predict the future or guarantee an outcome. Always combine with your own analysis and risk management.
— made with passion by officialjackofalltrade
אינדיקטור

STRX - Balance RangeSTRX - Balance Range is a price-structure indicator designed to identify and track balanced trading ranges directly on the chart.
It detects periods of compression by comparing the recent price box width to ATR-based volatility, then validates the structure using persistence, edge interaction, and price position inside the range.
The script draws historical range boxes, can optionally connect consecutive ranges, and includes a compact statistics table showing the last closed range, the average of the last 10 ranges, and the average of the last 100 ranges.
This makes it useful for traders who want to study how current balance conditions compare with recent and broader market structure.
How it works:
A reference range is built from the highest high and lowest low of the previous lookback window.
The range is accepted only when its width remains compressed relative to ATR and the current price continues to behave inside that structure.
Additional filters help reduce random consolidations by requiring repeated interaction with the range boundaries and a minimum confirmation period.
How to use it:
Use the boxes to locate areas where price is rotating in balance rather than expanding directionally.
Compare the latest closed range with the 10-range and 100-range averages to judge whether current balance conditions are relatively small, typical, or expanded.
The tool is designed for structure reading and contextual analysis, not as a standalone buy/sell signal generator.
Inputs overview:
Range Length controls how many bars are used to define the reference box.
ATR Length and ATR Multiplier control how strict the volatility compression filter is.
Center Distance, Edge Touches, and Confirmation Bars refine the quality of detected ranges.
Visual options allow you to show or hide historical boxes, range markers, connection lines, and the statistics table.
Notes:
The statistics table uses closed historical ranges, so the values remain stable and easier to compare.
This indicator is intended for standard chart types and discretionary structure analysis.
It does not guarantee future performance and should be used together with your own risk management and market context reading.
אינדיקטור
