Fade The Crowd Protocol >_A structured contrarian system that deliberately inverts conventional MACD + VWMA momentum signals — entering short when the crowd goes long, and long when the crowd goes short. Filtered by ADX, Choppiness Index, and a configurable cooldown timer, the strategy ensures fades execute only at statistically credible exhaustion points, not into directionless noise. Exits are managed through ATR%-normalized take profit and stop loss levels anchored to fill price, with a hard-cap Plug stop bounding maximum loss on every trade.
═══════════════════════════════════════
THE CONTRARIAN PREMISE
═══════════════════════════════════════
When a conventional momentum setup reaches full confirmation — MACD crossover, positive histogram, price at or above VWMA — the crowd is already positioned. Late-stage consensus entries carry elevated mean-reversion risk. The Fade The Crowd Protocol identifies that exact moment of crowd consensus and enters against it.
This is not arbitrary signal flipping. The inversion is applied to a well-defined, multi-condition setup. ADX and Choppiness filters ensure the fade occurs within a trending, structured market environment. A cooldown timer enforces separation between trades, preventing rapid re-entry after stop-outs.
═══════════════════════════════════════
THE INVERSION LOGIC
═══════════════════════════════════════
Conventional long setup → Fade The Crowd goes SHORT
Condition: MACD crossover + histogram above zero + price touches or exceeds VWMA
Crowd interpretation: Bullish momentum confirmed, late buyers entering
Fade interpretation: Crowd is fully long — exhaustion and reversion risk is elevated
Conventional short setup → Fade The Crowd goes LONG
Condition: MACD crossover + histogram below zero + price touches or falls to VWMA
Crowd interpretation: Bearish momentum confirmed, late sellers entering
Fade interpretation: Crowd is fully short — bounce and reversion risk is elevated
Both directions additionally require: CHOP below threshold, ADX above threshold, cooldown timer cleared, and no existing open position.
═══════════════════════════════════════
KEY FEATURES
═══════════════════════════════════════
Signal Inversion Engine
— MACD crossover (either direction) as the base crowd-consensus event
— Histogram sign identifies which direction the crowd is leaning
— VWMA touch confirms price has aligned with the dominant crowd position
— Entry is taken against all three simultaneously satisfied conditions
Cooldown Timer
— Tracks bar index at every trade exit via last_exit_bar variable
— All new entries blocked for a configurable number of bars post-exit
— Prevents rapid re-entry sequences following volatile stop-out events
— Configurable independently of all other filters
ADX + Choppiness Index Filters
— CHOP below threshold confirms the market exhibits directional structure
— ADX above threshold confirms sufficient trend force at signal bar
— Both filters must pass simultaneously with the inversion signal
— Prevents fading in low-conviction, oscillating environments where mean reversion is unreliable
Two-Step ATR% Exit Architecture
— ATR% captured and stored at trigger bar before entry executes
— TP and SL calculated from strategy.position_avg_price on first position bar
— Exit levels locked — no recalculation on subsequent bars
— TP HIT and SL HIT comments displayed on chart for post-hoc analysis
The Plug — Hard Stop Architecture
— Independent hard percentage stop applied to every trade
— For longs: fill_price × (1 − Plug%). For shorts: fill_price × (1 + Plug%)
— Compared against ATR SL using math.max() / math.min() — tighter stop always applied
— Ensures maximum loss is bounded regardless of ATR expansion at entry
═══════════════════════════════════════
HOW IT WORKS
═══════════════════════════════════════
Step 1 — Crowd Consensus Detection
The strategy evaluates three conditions that define a fully-formed conventional momentum signal: MACD has crossed its signal line (ta.cross), the MACD histogram confirms directional bias (above zero for bullish, below for bearish), and price has touched or breached the VWMA in the same direction (high >= VWMA for bullish, low <= VWMA for bearish). When all three align, the crowd is fully positioned.
Step 2 — Environment Filtering
Choppiness Index below threshold confirms the market is not ranging — a prerequisite for meaningful momentum exhaustion. ADX above threshold confirms trend force exists. Cooldown timer confirms sufficient bar-distance from the prior trade exit. All three environmental conditions must pass simultaneously with the crowd signal.
Step 3 — Contrarian Entry
The strategy enters in the opposite direction to the crowd consensus: short against the bullish setup, long against the bearish setup. ATR% at the trigger bar is captured into stored_atr_pct before the entry order executes.
Step 4 — Exit Level Calculation
On the first bar where position size is non-zero (position just opened), TP and SL prices are calculated using strategy.position_avg_price and the stored ATR%. The Plug stop is calculated independently. math.max() (longs) or math.min() (shorts) selects whichever stop is tighter. All levels are stored in fixed variables and passed to strategy.exit() — no dynamic recalculation occurs mid-trade.
═══════════════════════════════════════
WHY MACD + VWMA AS THE CROWD PROXY
═══════════════════════════════════════
MACD is one of the most widely used momentum indicators in retail trading. VWMA incorporates volume-weighted price — a common institutional reference level. Together, they define a setup that is broadly taught, widely traded, and reliably over-populated at the moment of full confirmation. The Fade The Crowd Protocol uses this familiarity as a structural edge: the more crowded the conventional signal, the more statistical force the fade carries when those positions unwind.
策略

Alpha TRIX Strategy >_The Alpha TRIX Strategy is a precision trend-following system built on a deceptively simple but powerful principle: only trade when the market is genuinely trending, genuinely moving, and genuinely tilted in your direction. It achieves this by stacking three independent validation layers — a momentum signal (TRIX), a regime filter (Choppiness Index), and a directional strength filter (ADX) — before a single entry is placed.
Unlike raw TRIX crossover systems that fire indiscriminately, this strategy demands that all three conditions are simultaneously satisfied. The result is a lower-frequency, higher-conviction signal profile that avoids the whipsaw-heavy environments where pure momentum strategies bleed equity.
═══════════════════════════════════════
KEY FEATURES
═══════════════════════════════════════
Momentum Engine (TRIX)
— Triple-smoothed EMA eliminates high-frequency noise
— ROC of EMA³ isolates trend acceleration
— Zero-line crossover generates long and short triggers
— Configurable TRIX length for sensitivity tuning
Regime Filter — Choppiness Index
— CHOP < threshold confirms non-choppy, directional structure
— Blocks entries during range-bound, sideways markets
— Eliminates the most expensive entry environment for trend-following systems
Directional Filter — ADX
— ADX > minimum threshold confirms trend force is sufficient
— Calculated via full DMI (DI+ / DI−)
— Guards against weak-trend entries that stall post-entry
ATR% Exit Framework
— Take profit and stop loss scaled to realized volatility at entry
— Levels locked at execution candle — no mid-trade recalculation
— Independent TP and SL multipliers for asymmetric risk configuration
Trade Direction Control
— Long only, short only, or both — configurable at runtime
═══════════════════════════════════════
HOW IT WORKS
═══════════════════════════════════════
Step 1 — TRIX Signal
EMA is applied three times to close price, producing EMA³. Rate-of-change of EMA³ over 1 bar yields the TRIX value. A crossover above zero triggers a long; a crossunder triggers a short.
Step 2 — Choppiness Gate
The Choppiness Index measures the ratio of summed 1-bar ATR to the total high-low range over the lookback window, log-normalized. Values below the threshold indicate the market is exhibiting directional structure rather than random oscillation.
Step 3 — ADX Gate
ADX above the minimum confirms that whatever direction the market is moving, it is doing so with sufficient force. Both filters must pass simultaneously with the TRIX signal for entry to execute.
Step 4 — Entry and Exit
Entry is placed immediately. Take profit and stop loss are calculated as Close × (ATR / Close) × Multiplier — which resolves to ATR × Multiplier — and passed directly to strategy.exit() at the entry bar. This prevents dynamic recalculation from altering risk parameters mid-trade, closing the gap between backtested and live performance.
═══════════════════════════════════════
DESIGN RATIONALE
═══════════════════════════════════════
The TRIX advantage: triple-smoothing suppresses noise while the ROC step converts price level into momentum velocity. The zero-line crossing represents a genuine shift in trend acceleration — a higher-quality signal than single or double EMA crossovers.
Why CHOP + ADX? Each filter attacks a different failure mode. The Choppiness Index identifies range-bound structure where momentum signals are statistically unreliable. ADX addresses weak-trend environments where the market has a direction but insufficient force to sustain movement. Together they gate out the two most expensive entry environments for trend-following systems.
Locked exits: TP and SL are calculated once at the entry bar and immediately committed to the broker. This design closes a common source of backtest-to-live divergence in ATR-based systems — where dynamic recalculation on subsequent bars silently shifts risk levels mid-trade.
策略

RSI Divergence on Chart MTFRSI Divergence Overlay MTF
RSI Divergence Overlay MTF is an advanced divergence detection indicator that identifies RSI-based divergence directly on the price chart without using a separate oscillator panel.
Designed for traders who prefer a cleaner chart layout, this script plots divergence signals on candlesticks while allowing multi-timeframe RSI analysis for higher-timeframe confirmation.
Features
Detects Bullish Divergence
Detects Bearish Divergence
Optional Hidden Bullish / Hidden Bearish Divergence
Displays signals directly on the main price chart
No lower RSI panel / oscillator clutter
Supports Multi-Timeframe RSI Divergence Detection
Customizable RSI Length, Source, Pivot Sensitivity, and Signal Display
Built-in Alert Conditions
Non-repainting logic using confirmed pivot points
How It Works
The indicator compares price swing highs/lows with RSI swing highs/lows to detect divergence conditions.
When divergence is confirmed:
Bullish signals appear below candles
Bearish signals appear above candles
Multi-Timeframe Capability
Users can calculate RSI divergence from:
Current Chart Timeframe
Higher Timeframes (15m, 1H, 4H, Daily, etc.)
This helps traders align lower timeframe entries with higher timeframe momentum structure.
Best Used For
Trend Reversal Detection
Momentum Exhaustion Analysis
Scalping / Intraday Trading
Swing Trading Confirmation
Notes
Signals are confirmed after pivot formation to avoid repainting.
Higher pivot settings reduce noise but produce fewer signals.
Lower pivot settings create earlier but more frequent signals.
Use this tool as part of a complete trading strategy and combine it with market structure, support/resistance, or trend filters for best results. 指标

CCI Stoic Continuation - Crossing SignalsDescription
The CCI Stoic Continuation is a refined take on the classic Commodity Channel Index, designed specifically for traders who prioritize clarity and trend persistence over chasing volatile swings. Instead of viewing the CCI as a simple overbought/oversold oscillator, this indicator treats it as a momentum thermometer .
By utilizing a multi-layered threshold system, the indicator helps traders distinguish between a nascent trend (Early Momentum) and a confirmed, high-velocity move (Strong Momentum).
How It Works
The script visualizes four distinct phases of price action based on the relationship between the CCI and key threshold levels ($10$ and $80$):
1 Early Bullish (Teal) : CCI crosses above $+10$. This suggests momentum is beginning to shift upward.
2 Strong Bullish (Cyan) : CCI crosses above $+80$. This indicates high-velocity trend continuation.
3 Early Bearish (Light Orange) : CCI crosses below $-10$. The first sign of downside pressure.
4 Strong Bearish (Red) : CCI crosses below $-80$. Indicates significant conviction in the downward move.
Key Features
• Heat Fills : The background of the indicator pane is shaded to provide an immediate psychological "feel" for the current market environment.
• Bar Coloring : Trend colors are applied directly to your price bars, allowing you to stay focused on the price action while monitoring momentum shifts.
• Transition Markers : Vertical dashed lines appear in the indicator pane whenever a momentum state changes, highlighting the exact moment a "Stoic" entry or exit might be considered.
• Precision Alerts : Built-in alert logic for both "Early" and "Strong" signals in both directions.
Usage Tips
• Trend Alignment (CRITICAL) : Do not take every signal. Only execute entries aligned with the higher-timeframe trend or overall market bias. This indicator is designed for continuation, not reversals.
• The Stoic Entry : Use the "Early" signal to prepare, and look for "Strong" confirmation to enter once the trend is clearly established.
• The Zero Line : The yellow zero line acts as the "Neutral Zone." Price action staying consistently above or below this line validates the broader trend bias.
• Timeframes : While optimized for standard settings, it performs exceptionally well on the 15m, 1h, and 4h timeframes.
Technical Settings
• CCI Length : Default 20 (Adjustable for sensitivity).
• Early Level: 10 (Customizable for tighter or looser entries).
• Strong Level: 80 (The threshold for confirmed momentum).
Author : Konstantinos Trovas
Version : 6.0 (Pine Script)
指标

AG Pro HTF Bias Dashboard [AGPro Series]AG Pro HTF Bias Dashboard
Overview / What it does
AG Pro HTF Bias Dashboard is a higher-timeframe context tool built for traders who want a fast, structured view of directional conditions across multiple larger timeframes without crowding the chart with extra signals, zones, or decision noise.
The script summarizes higher-timeframe bias in a compact dashboard and presents each selected row as Bull, Bear, or Neutral, together with a mode-specific status readout. The goal is not to predict the next candle or replace a full trade plan. The goal is to make larger-timeframe context easier to read at a glance.
This indicator is designed to answer a simple but important workflow question: "What is the broader directional environment across the higher timeframes I care about right now?" Instead of forcing the user to manually flip through multiple charts and compare structure or trend conditions one by one, the dashboard keeps that information visible in a single panel.
The script supports multiple bias engines so the same dashboard can be adapted to different styles of chart reading. Users can evaluate higher-timeframe context through EMA Stack alignment, confirmed Swing Structure, SuperTrend direction, or MACD Momentum agreement. This makes the tool flexible enough for trend-following traders, structure-based traders, and users who prefer momentum-style confirmation.
Unlike many overlays that try to combine entries, exits, alerts, pattern detection, and signal generation inside one study, this script stays focused on one task: higher-timeframe directional context. That single-purpose design is intentional. It keeps the output clean, readable, and easier to integrate into an existing process.
Unique Edge
The main strength of this script is not signal generation. Its edge is structured context compression.
Instead of plotting a large number of higher-timeframe elements directly on the chart, AG Pro HTF Bias Dashboard converts higher-timeframe conditions into a compact visual matrix. This makes it possible to assess multi-timeframe agreement quickly while keeping the chart itself relatively clean.
A second differentiator is the ability to switch the bias engine. The dashboard is not locked to one interpretation framework. Users can work with:
- EMA Stack, for ribbon-style alignment
- Swing Structure, for confirmed HH/HL and LH/LL progression
- SuperTrend, for ATR-based directional trend state
- MACD Momentum, for momentum agreement between line, signal, and histogram
Another important detail is the higher-timeframe validity filter. Rows that are not actually higher than the current chart timeframe are marked as Lower/EQ instead of being treated as valid higher-timeframe context. This helps keep the dashboard aligned with its intended purpose.
The script also includes confluence logic, so the user can see not only the state of each row, but also the dominant higher-timeframe bias and how many valid rows support that direction. In practice, this helps users distinguish between broad directional agreement and mixed conditions.
Methodology
The dashboard can display three to five higher-timeframe rows, depending on user settings. Each row evaluates one selected timeframe and classifies it into Bull, Bear, or Neutral.
Bias Mode options:
1) EMA Stack
This mode evaluates directional alignment using a three-EMA structure. A bullish state requires price and the EMA ribbon to be aligned in bullish order. A bearish state requires the opposite alignment. When the full sequence is not aligned, the row can remain neutral and display a partial status such as 2/3 or 1/3 rather than forcing a directional label.
2) Swing Structure
This mode uses confirmed pivot logic to read higher-timeframe structure. It looks for confirmed higher highs / higher lows or lower highs / lower lows, and then evaluates position relative to the active swing range. Because this logic depends on confirmed pivots, structure changes are naturally more selective and may appear later than faster trend models.
3) SuperTrend
This mode reads directional state using an ATR-based trend framework. It is intended for users who prefer a cleaner directional state model rather than ribbon alignment.
4) MACD Momentum
This mode classifies bias through agreement between the MACD line, signal line, and histogram. It is useful for traders who prefer momentum confirmation over structure or moving-average ordering.
The dashboard then calculates:
- the number of valid bullish rows
- the number of valid bearish rows
- the dominant higher-timeframe state
- the confluence count across valid rows
Optional chart context features are also included. Depending on settings, the script can color candles according to the active chart bias, plot the active EMA ribbon or SuperTrend on the chart, apply a subtle background tint when confluence is strong enough, and show a compact mini context tag on the chart.
States / Context Output
This indicator is a context dashboard, not an alert engine.
It does not generate buy or sell alerts, does not mark trade entries, and does not claim to identify optimal execution points. Its outputs are state-based and contextual:
- Bull
- Bear
- Neutral
- Confluence summary
- Mode-specific status text
The mini chart tag, when enabled, is only a compact summary of dominant higher-timeframe direction and current confluence. It should be read as context, not as a trade instruction.
Key Inputs
Higher Timeframes
Users can select three to five rows and define the exact higher timeframes to monitor.
Bias Mode
Choose between EMA Stack, Swing Structure, SuperTrend, and MACD Momentum.
Engine Parameters
The script exposes relevant inputs for each engine, including EMA lengths, Swing Strength, SuperTrend ATR settings, and MACD settings.
HUD Controls
The panel position and panel scale can be customized so the dashboard can fit different layouts and chart styles.
Style Controls
Users can adjust theme and directional colors for bullish, bearish, and neutral states.
Chart Context Controls
Optional features include candle coloring, active indicator plotting for EMA / SuperTrend, strong-confluence background tinting, mini context tag visibility, tag anchor, tag offset, and tag font size.
Limitations & Transparency
This script is not a prediction model. It summarizes directional context from user-selected higher-timeframe logic.
Higher-timeframe tools can update only when data from those larger intervals updates. Because of that, the dashboard should be understood as a context layer rather than a real-time trigger engine.
Swing Structure mode uses confirmed pivots. That means structure changes may appear later than faster directional methods, because confirmation requires completed pivot information.
Neutral states do not necessarily mean the market is untradeable. They simply indicate that the selected bias engine does not currently show clear directional alignment under the chosen rules.
The confluence count is a summary statistic, not a quality score. A larger number of aligned rows does not automatically mean a better trade. It only means more selected higher-timeframe rows currently point in the same direction.
Rows marked Lower/EQ are excluded from valid higher-timeframe confluence because they are not above the active chart timeframe.
This script is intended to support discretionary analysis and chart organization. It should be combined with the user’s own execution framework, risk model, and market understanding.
Risk Disclosure
This indicator is provided for analysis and educational use. It does not provide financial advice, investment advice, or guaranteed outcomes.
Market conditions can change quickly, and no single indicator or dashboard can remove uncertainty from trading or investing. Users should evaluate higher-timeframe context together with price action, liquidity, volatility, risk management, and their own decision process.
Past behavior, historical alignment, or current confluence does not guarantee future performance.
指标

_Trinity Matrix_
Short description
A structured multi-layer oscillator built around a refined Trinity Wave core, MFI regime columns, confidence scoring, divergence filtering, and TF / HTF context.
Full publication description
Trinity Matrix is a multi-layer oscillator designed to read continuation, reversal quality, regime strength, and divergence context inside a single panel.
It combines a refined Trinity Wave core, MFI regime structure, confidence scoring, mode-based signal filtering, divergence logic, and a compact TF / HTF dashboard into a unified workflow.
The name is a nod to layered market context: not a single signal, but a structured matrix of wave state, regime strength, confidence, and divergence.
Core Structure
Trinity Wave core with additional smoothing and soft limiting to reduce extreme spikes while preserving directional character
MFI Columns to separate baseline participation from stronger expansion phases
Strong zone highlighting to visually distinguish stronger bullish and bearish regime expansion
Confidence engine that blends Trinity Wave continuation and MFI continuation into a normalized directional score
Signal modes for different levels of selectivity: None, Early, Standard, and Strict
ATR-gated divergence filtering for cleaner divergence structures
TF / HTF confidence dashboard for comparing active timeframe conviction against a selected higher timeframe
Built-in alerts for buy, strong buy, elite buy, sell, strong sell, and elite sell conditions
How to Read It
Trinity Wave is the main directional layer. Green indicates bullish state, red indicates bearish state.
MFI Columns show regime participation.
White columns = baseline MFI flow
Shiny white columns = stronger bullish expansion
Orange columns = stronger bearish expansion
Average MFI bands help show where positive or negative regime strength is building relative to recent memory.
Confidence Dashboard summarizes directional conviction on both the active timeframe and the selected higher timeframe.
Row 1 = TF / HTF labels
Row 2 = confidence percentage
Row 3 = qualitative tag: Weak / Moderate / Strong
Signal Modes
None hides signal output
Early is faster and more aggressive
Standard is more balanced
Strict applies the strongest filtering and usually produces the fewest signals
Divergence Module
The divergence layer uses Trinity Wave turning points, confidence filtering, pivot distance control, and optional ATR gate filtering.
It can draw on the oscillator and, if enabled, on price as well.
The goal is not to maximize divergence count, but to keep the structures more selective and readable.
Alerts
This script includes separate alert conditions for:
TW Buy
TW Buy Strong
TW Buy Elite
TW Sell
TW Sell Strong
TW Sell Elite
Suggested Use
Trinity Matrix works best as a structured reading tool rather than a one-click decision engine.
A practical workflow is:
Read Trinity Wave direction and location
Check whether MFI is in baseline flow or strong expansion
Use confidence and HTF context to judge continuation or reversal quality
Use signal mode based on your desired aggressiveness
Use divergence as a contextual filter, not as a standalone trigger
Important Notes
Signal frequency changes significantly with the selected signal mode
HTF confidence reflects the live state of the selected higher timeframe
Divergence output is intentionally filtered and selective
This is an indicator framework, not a full trading strategy
Attribution
Core WaveTrend-style formulation was adapted from the open-source WaveTrend Oscillator by LazyBear, then extended with additional smoothing, soft limiting, MFI regime logic, confidence scoring, divergence filtering, dashboard structure, and alert workflow.
Acknowledgement
Built through many rounds of testing, refinement, and iteration — with a little help from ChatGPT and CodeGPT along the way.
Disclaimer
For educational and analytical use only. Not financial advice. 指标

Saga System [LB]
hello friend here is
Saga System
The Saga System is an advanced algorithmic trend-following tool designed to detect phases of institutional accumulation and distribution . By combining Relative Volume Analysis with Price Momentum , it filters out low-quality market noise and highlights only the most meaningful directional moves through dynamic Action Zones .
Overview
The core idea behind the Saga System is simple:
Identify when abnormal volume enters the market.
Confirm that this volume aligns with directional price momentum.
Display the result as a visual zone to help traders read market intent more clearly.
This allows traders to quickly identify whether the market is under strong buying pressure or selling pressure , while keeping the chart clean and readable.
📈 Buy Setup (Long Entries)
Conditions:
Wait for a Green Saga Zone to appear.
This confirms a bullish impulse supported by an institutional volume expansion.
Make sure price remains structurally above the system’s internal EMA trend line.
Key observations:
Zone size matters: the larger the green zone, the stronger the underlying buying pressure.
Momentum stacking: two separate consecutive green zones often indicate stronger continuation potential than a single isolated signal.
Entry precision: for better timing, combine the signal with horizontal support levels, discount zones, or RSI oversold conditions.
📉 Sell Setup (Short Entries)
Conditions:
Wait for a Red Saga Zone to form.
This reflects an aggressive bearish impulse confirmed by elevated volume.
Confirm that price is trading below the system’s fast control line.
Key observations:
Zone expansion: a wide red zone often reflects strong directional volatility and can mark the start of a sustained bearish leg.
Trend confirmation: multiple consecutive red zones show that sellers remain in control of market psychology.
Risk control: the system is designed to capture the core part of the move; a close back through the opposite side of the zone often signals momentum neutralization.
before reading any other text here are somme other screen
How to Read the Zones
The Action Zones are not just visual markers — they represent moments where volume and momentum align in the same direction .
Green Zone: bullish pressure, accumulation, and potential continuation.
Red Zone: bearish pressure, distribution, and potential continuation to the downside.
Large zones: stronger conviction and greater directional intent.
Repeated zones: increased probability that the trend is strengthening rather than fading.
⚙️ Technical Methodology
The Saga System is built on three core calculation layers:
1. Institutional Volume Filter
The script calculates a Simple Moving Average (SMA) of volume over a user-defined lookback period. A zone is triggered only when current volume exceeds a predefined threshold:
Current Volume > (SMA Volume * Multiplier)
This condition helps eliminate low-liquidity noise and improves the quality of detected impulses.
2. Directional Bias Confirmation
The system uses a reactive Exponential Moving Average (EMA) to determine short-term directional bias. For a zone to remain valid, price must move in agreement with the EMA slope.
In other words:
Bullish zones require price to remain aligned with upward momentum.
Bearish zones require price to remain aligned with downward momentum.
This ensures that volume is not analyzed in isolation , but in direct relation to trend direction.
3. Dynamic State Engine
Unlike static indicators, the Saga System updates zone coordinates in real time. Each zone evolves with market structure and automatically ends when momentum weakens, typically when price crosses the ultra-fast EMA used as the internal momentum control.
This creates a clean and adaptive block-style visualization, helping the trader focus only on relevant expansion phases.
Best Use Cases
The Saga System performs best when used in confluence with other high-quality tools or structural references:
Support and resistance levels
Market structure breaks
RSI exhaustion zones
Trend continuation setups
High-volume breakout environments
It is especially useful for traders looking to isolate high-conviction trend continuation phases rather than random short-term fluctuations.
Disclaimer
Disclaimer: Trading involves substantial risk. The Saga System is a decision-support tool only and does not constitute financial advice. Past performance does not guarantee future results.
指标

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

Institutional Flow Scalper [IFS] v4Institutional Flow Scalper
The Institutional Flow Scalper reconstructs institutional-grade order flow analysis using only price and volume data available on TradingView. Instead of relying on traditional lagging indicators, IFS detects the footprints that large players leave in the market through volume delta imbalances, liquidity sweeps, and order absorption patterns.
HOW IT WORKS
IFS uses a multi-pillar confirmation system. A signal only fires when 2 or more independent pillars align in the same direction, reducing false signals and filtering noise.
The 7 Pillars:
1. Synthetic Volume Delta: Reconstructs buying vs selling pressure by analyzing where price closes within each bar's range, weighted by volume. This approximates what institutional platforms like Bookmap show through actual order flow.
2. Momentum Divergence: Compares the rate of change between price and cumulative volume delta. When price moves one direction but volume pressure shifts the opposite way, it signals exhaustion before the chart reflects it.
3. Liquidity Sweep Detection: Identifies stop hunts where price sweeps beyond a recent swing high/low with a volume spike, then fails to hold. This is the "smart money" concept of grabbing liquidity before reversing.
4. Order Absorption: Detects bars with abnormally high volume but small bodies, indicating a large player is absorbing aggressive orders without letting price move. This is what footprint chart traders look for as "stacked imbalances."
5. VWAP Cross & Band Bounce: Monitors price interaction with session VWAP and its standard deviation bands. Crosses and bounces from the 1-sigma bands serve as mean-reversion confirmation.
6. EMA Trend Alignment: Uses 9/21 EMA structure. Signals are strengthened when a strong directional candle appears in alignment with the EMA trend, or when an EMA crossover occurs.
7. POC Breakout: Tracks a dynamic Point of Control (volume-weighted price center) and flags when price breaks through it, indicating acceptance of a new price level.
SIGNAL FILTERS
Choppiness Index Filter: Measures whether the market is trending or ranging using the Choppiness Index. When chop is high (above threshold), all signals are suppressed to avoid overtrading in sideways conditions.
Session Filter: Signals are restricted to high-liquidity sessions (NY Morning, NY Afternoon, London) where institutional activity is concentrated and price moves have follow-through.
Confidence Score: Each bar receives a composite score from 0 to 100 based on all pillar inputs. Only bars exceeding the minimum confidence threshold generate signals.
Position Management: Only one trade can be active at a time. No new signal fires until the current trade closes via TP or SL. This prevents signal stacking and overtrading.
VISUAL FEATURES
Clear entry labels showing direction (LONG/SHORT), confidence percentage, and which pillars confirmed the trade. On entry, colored zones project forward showing the risk area (red box from entry to SL) and reward area (green box from entry to TP), with exact price levels and point distances on the labels.
Exit labels display the outcome: TP HIT, SL HIT, or MOM EXIT. All visual elements are limited to the current day's session to keep the chart clean as you scroll through history.
The dashboard displays real-time metrics: Confidence Score, Volume Delta direction, Pressure Index, VWAP distance, ATR, Session status, Chop Index, directional Bias, and current Position state.
SETTINGS OVERVIEW
Signal Engine: Sensitivity mode (Low/Medium/High/Adaptive), minimum confidence threshold.
Volume Delta Engine: CVD lookback and smoothing periods.
Liquidity Sweep: Swing point lookback, volume spike threshold.
VWAP: Band multipliers, POC lookback.
Anti-Chop Filter: Chop Index length and threshold.
Session Awareness: Configurable session windows for NY, PM, and London.
Risk Management: ATR-based TP and SL multipliers, visual line extension length.
Visual Style: Fully customizable colors for bull, bear, entry, TP, and SL elements.
RECOMMENDED USE
Designed for scalping and day trading on futures (ES, NQ, MNQ, GC, CL) and high-liquidity instruments. Optimized for 1-minute, 5-minute, and 15-minute timeframes. Works on any instrument with reliable volume data.
Use with proper risk management. Position sizing should reflect your account size and risk tolerance. Past indicator signals do not guarantee future performance.
WHAT MAKES THIS DIFFERENT
Most scalping indicators on TradingView are variations of RSI + EMA + MACD. IFS takes a fundamentally different approach by reconstructing order flow concepts (volume delta, absorption, liquidity sweeps) that institutional traders use on specialized platforms, and making them accessible within TradingView's ecosystem. The multi-pillar confirmation system ensures signals only fire when multiple independent factors align, not just when a single oscillator crosses a threshold. 指标

Quant Grade StochasticThe Quant Grade Stochastic is an institutional-level momentum workstation designed to solve the primary flaw of traditional oscillators: static overbought and oversold levels. In modern markets, static 80/20 or 70/30 levels often lead to "premature fading" in strong trends or missed entries during low-volatility regimes.
This script replaces fixed levels with Adaptive Volatility Zones—dynamic bands that expand and contract based on the market's standard deviation. This allows traders to identify true momentum extremes relative to current market conditions, not arbitrary numbers.
🚀 Key Quant Features
1. Adaptive Volatility Zones (Mean Reversion)
Unlike the standard Stochastic, the OB/OS levels are calculated using a volatility-adjusted engine. When volatility spikes, the zones expand to prevent "false" overbought signals. When volatility drops, the zones contract to catch micro-extremes.
2. Momentum Heatmap (Acceleration Analysis)
The %K line is color-coded based on its internal slope and acceleration.
Bright Colors: Indicate strong momentum and acceleration.
Dull Colors: Indicate momentum deceleration—a quant-grade "early warning" that a trend is tiring even before a crossover occurs.
3. Institutional Dashboard
A real-time status table that provides a high-level overview of market mechanics:
Trend Filter: Instant identification of the primary trend using a 200 EMA.
Volatility State: Quantifies if current market volatility is High or Low relative to its 50-period average.
Position State: Classifies the oscillator’s current location (Overbought, Oversold, or Neutral).
4. Dual Divergence Engine
Detects two distinct types of momentum anomalies:
Regular Divergence: Traditional reversal signals where price and momentum disconnect.
Hidden Divergence: Quant-grade trend continuation signals, identifying high-probability pullbacks in a trending market.
5. Smart Fade Signals
Markers specifically designed for the "Return-to-Range" strategy. When the %K line exits an extreme volatility zone and crosses back inside, a FADE signal is generated. These signals are visually filtered by the 200 EMA trend engine to prioritize "With-Trend" opportunities.
💡 How to Trade
The Fade Strategy: Wait for the %K line to go above the Adaptive Upper Zone. When it crosses back under that zone, look for a short entry. The "FADE" marker highlights this exact moment.
The Trend Follower: Use Hidden Divergence markers during pullbacks in a Bullish Trend (confirmed by the Dashboard) to find low-risk continuation entries.
Volatility Squeeze: When the Adaptive Zones are extremely tight (indicated by "Low" Volatility on the Dashboard), look for a Momentum Heatmap breakout to signify the start of a new expansion.
🛠️ Settings
Engine: Choose from 5 different smoothing types (SMA, EMA, WMA, HMA, ALMA).
Adaptive Zones: Customize the Standard Deviation multiplier to tighten or loosen your extremes.
Multi-Timeframe: Sync your momentum analysis with higher timeframes without leaving your current chart.
Quant Filter: Toggle the 200 EMA trend filter to clean up counter-trend noise. 指标

指标

EagleEye-DashboardIndicator Description & Disclaimer
This indicator has been developed independently for educational and personal learning purposes, based on hands-on trading experience and continuous research into multi-timeframe analysis.
What this indicator does:
This tool consolidates three of the most widely used technical indicators — MACD, RSI, and Stochastic Oscillator — into a single, clean dashboard view. Rather than switching between multiple charts and timeframes manually, traders can now see the status and alignment of all three indicators across multiple timeframes (MTF) at a single glance. This helps in quickly identifying trend confluence, momentum shifts, and potential entry/exit zones without cluttering your chart.
Key features:
Multi-Timeframe (MTF) dashboard view in one unified panel
Real-time status display for MACD, RSI, and Stochastic
Designed for clarity, speed, and ease of interpretation
Suitable for indices, equities, forex, and crypto markets
Disclaimer:
This indicator is strictly developed for learning and informational purposes only. It does not constitute financial advice, investment recommendation, or a solicitation to buy or sell any financial instrument. Past performance of any signal generated by this indicator does not guarantee future results. Trading in financial markets involves substantial risk, and you may lose more than your initial investment. Always conduct your own due diligence, apply proper risk management, and consult a certified financial advisor before making any trading decisions.
The author holds no responsibility for any trading losses incurred through the use of this indicator. Use at your own risk.
Future Roadmap:
This indicator is actively being refined. Upcoming versions will aim to improve signal accuracy, add additional confirmation layers, and expand timeframe flexibility based on user feedback and ongoing research.
Developed with passion for the trading community.
Regards,
Ramesh Vaishya
Independent Trader & Indicator Developer 指标

指标

[uPaSKaL] Momentum Structure CandlesMomentum Structure Candles
Momentum Structure Candles is an intrabar-based framework built to show how momentum develops inside each higher timeframe bar.
Instead of reducing momentum to a single line or value, the script reconstructs the internal structure of the bar using lower timeframe data and displays it as a momentum candle. The result is a structural view of direction, stability, expansion, and internal pressure.
🔹 What It Shows
Traditional momentum tools focus on outcome.
Momentum Structure Candles focuses on formation.
Two bars can close in the same direction while having completely different internal behavior:
one builds smoothly
one expands early and fades
one confirms late
one remains internally mixed
This script helps reveal:
whether momentum is building cleanly or fragmenting
whether pressure is stable or unstable
whether late-bar activity confirms or weakens the move
whether the bar is structurally directional or internally rotational
🔹 Intrabar Momentum Reconstruction
The script requests lower timeframe OHLC data and converts it into momentum-relative values using a configurable lookback.
Those intrabars are then aggregated into a synthetic momentum candle that represents the internal structure of the active bar.
This allows you to read:
momentum range
internal pullbacks
final position within the structure
balance versus expansion
🔹 Last-Bar Magnifier
The magnifier expands the current bar into its lower timeframe momentum structure, making it easier to read how the candle is forming in real time.
Useful for:
tracking acceleration or slowdown during bar development
spotting late confirmation versus late failure
avoiding over-reliance on the final candle close
🔹 Volume-Weighted Momentum
Momentum can optionally be weighted by volume to distinguish between:
low-participation movement
stronger momentum backed by active participation
similar structures with different internal conviction
🔹 Anchored Mode
The script can also run in anchored cumulative mode.
In this mode, momentum is accumulated and reset on a selected anchor period, creating a session-style structural model similar to a cumulative flow framework.
This is useful for:
tracking persistent directional pressure
identifying compounding momentum
spotting early loss of structure after expansion
🔹 Heatmap Context
An optional heatmap normalizes current momentum strength relative to recent conditions, helping highlight:
strong expansion versus ordinary movement
active versus passive conditions
high-energy momentum regimes
🔹 Phase Analysis
The current bar can be split into:
Early
Mid
Late
This helps answer a key question:
When was momentum strongest inside the bar?
It can reveal:
early push followed by failure
late expansion after consolidation
internal transitions hidden by the final close
🔹 Additional Notes
Built from lower timeframe structure, not standard price candles
Includes optional Light and Dark visual themes
Best used for structural reading, timing, and execution context
🔹 Practical Use Cases
confirm whether a move is structurally strong or only visually strong
detect weakening momentum before price structure shifts
evaluate continuation versus exhaustion
analyze pullbacks as corrective or structural
monitor the live development of the active bar
combine with liquidity, structure, or SMC-based execution models
🔹 Final Note
Momentum Structure Candles is not built to replace price.
It is built to expose the internal momentum architecture that standard candles hide.
By reconstructing intrabar structure, optionally weighting by volume, supporting anchored cumulative behavior, and providing a real-time magnifier, the script turns momentum into a readable structural process rather than a compressed output.
指标

V/S RSI Signals on ChartWhat does the indicator do?
This indicator does not display a separate RSI pane. Instead, it draws signals directly on the candles:
🟢 Green upward triangle below the candle → LONG signal (RSI crosses above its moving average while RSI value is inside your defined long range).
🔴 Red downward triangle above the candle → SHORT signal (RSI crosses below its moving average while RSI value is inside your defined short range).
All signals can be toggled on/off independently. You can also adjust the RSI range for longs and shorts, as well as all RSI and MA parameters.
⚙️ Input parameters
1. RSI Settings
RSI Length – RSI period (default 14).
RSI Source – price source for RSI calculation (usually close).
Calculate Divergence – enable/disable divergence detection.
2. Smoothing (MA Settings)
MA Type – type of moving average applied to RSI:
None (no MA – cross signals disabled), SMA, SMA + Bollinger Bands, EMA, SMMA (RMA), WMA, VWMA.
MA Length – MA period (default 14).
BB StdDev – standard deviation multiplier for Bollinger Bands (only when SMA + Bollinger Bands is selected).
3. Signal Ranges
Long Signal Min/Max RSI – RSI zone where long signals are allowed (green arrows and Bull labels).
Example: 0–30 – only from oversold area.
Short Signal Min/Max RSI – RSI zone where short signals are allowed (red arrows and Bear labels).
Example: 70–100 – only from overbought area.
4. Cross Signals
Show RSI-MA Crosses – show/hide cross arrows.
Cross Direction – allowed cross direction:
Both, Cross Above (only RSI crossing above MA), Cross Below (only crossing below MA).
🧠 How to use
Example: Longs only in oversold zone
Long Range: Min = 0, Max = 30
Short Range: any (e.g., 0–100 if you don't want shorts)
MA Type: SMA, Length 14
Green arrows will appear only when RSI is below 30 and crosses above its MA. Helps catch reversals after a strong drop.
Example: Shorts only in overbought zone
Short Range: Min = 70, Max = 100
Long Range: 0–100 (effectively disabled)
Cross Direction: Cross Below
📌 Important notes
The indicator does not plot RSI or MA lines – only signals on price.
The calculation timeframe matches the chart's timeframe (timeframe="" in code). If you need a fixed timeframe, change it in the source code (e.g., timeframe="60" for 1H).
Cross signals require MA Type not to be None.
⚠️ Disclaimer
This indicator is an educational and analytical tool only. It does not guarantee profit. All signals require additional confirmation and analysis before making trading decisions. Use at your own risk.
Happy trading! 📊 指标

指标

指标

指标

EagleView - MACD+RSI+StochIndicator Description & Disclaimer
This indicator has been developed independently for educational and personal learning purposes, based on hands-on trading experience and continuous research into multi-timeframe analysis.
What this indicator does:
This tool consolidates three of the most widely used technical indicators — MACD, RSI, and Stochastic Oscillator — into a single, clean dashboard view. Rather than switching between multiple charts and timeframes manually, traders can now see the status and alignment of all three indicators across multiple timeframes (MTF) at a single glance. This helps in quickly identifying trend confluence, momentum shifts, and potential entry/exit zones without cluttering your chart.
Key features:
Multi-Timeframe (MTF) dashboard view in one unified panel
Real-time status display for MACD, RSI, and Stochastic
Designed for clarity, speed, and ease of interpretation
Suitable for indices, equities, forex, and crypto markets
Disclaimer:
This indicator is strictly developed for learning and informational purposes only. It does not constitute financial advice, investment recommendation, or a solicitation to buy or sell any financial instrument. Past performance of any signal generated by this indicator does not guarantee future results. Trading in financial markets involves substantial risk, and you may lose more than your initial investment. Always conduct your own due diligence, apply proper risk management, and consult a certified financial advisor before making any trading decisions.
The author holds no responsibility for any trading losses incurred through the use of this indicator. Use at your own risk.
Future Roadmap:
This indicator is actively being refined. Upcoming versions will aim to improve signal accuracy, add additional confirmation layers, and expand timeframe flexibility based on user feedback and ongoing research.
Developed with passion for the trading community.
Regards,
Ramesh Vaishya
Trader & Indicator Developer 指标

Heikin Ashi Oscillator Trend Engine At its core, this script is a Heikin Ashi-based oscillator designed to translate HA candle behavior into a normalized momentum framework that is easier to read in a separate pane. Instead of only viewing Heikin Ashi candles on price, this script converts HA-derived range behavior into an oscillator that can help show direction, expansion, contraction, and structural shifts in a more organized way. The goal is not just to turn HA into another oscillator. The goal is to build a unified HA engine that can be read through multiple layers while still staying tied to the same foundation.
The script includes two core engine modes:
HA Range Base
This is the more direct and responsive version. It builds the oscillator from signed Heikin Ashi range behavior, then smooths that result into a cleaner momentum read.
HA Blend
This mode keeps the same HA foundation, but blends multiple smoothed HA range relationships together into one output. The result is often smoother and more refined while still staying rooted in Heiken Ashi structure.
That distinction matters because this is not a random stack of unrelated features. Everything in the script is built around the same central idea: use Heikin Ashi-derived behavior as the base signal, then offer different ways to normalize it, smooth it, visualize it, and compare it across timeframes.
The script also includes a normalization layer. A dynamic/manual lookback framework controls the reference window used for normalization and adaptive guide logic, so the oscillator can stay more balanced across different chart speeds. The output is then organized into a broader interpretation framework that includes:
➖ adaptive fast/slow crossover lines
➖ a separate SMA 20 / 50 crossover engine
➖ a rolling oscillator VWA for participation-aware context
➖ a stabilized higher-timeframe oscillator reference line
➖ a pivot-based trend overlay built from confirmed oscillator pivots
➖ adaptive zero / ±50 guide lines
➖ synthetic oscillator candles
➖ a histogram pressure envelope state engine and fill that highlights when the oscillator pushes into user-defined extreme zones inside the pane
➖ optional price-overlay candles that reuse the same oscillator color logic
➖ a compact engine table for quick reference
These are not separate systems bolted on for the sake of adding more features. They are different ways of reading the same Heiken Ashi oscillator engine.
A practical way to think about it:
➡️ When the oscillator is above zero and strengthening, HA-based momentum is expanding in the bullish direction.
➡️ When it is above zero but weakening, the move may still be positive, but the internal pace is cooling.
➡️ When it is below zero and weakening further, bearish pressure is expanding.
➡️ When it is below zero but improving, downside pressure may be easing even if the broader condition is still negative.
The higher-timeframe oscillator line adds another layer of context. It gives you a way to compare the local pane oscillator against the next broader HA context. That can help answer whether the current move is flowing with the higher-timeframe structure or starting to diverge from it.
The pivot overlay serves a different purpose. Rather than acting like another moving average, it behaves more like a structural reference derived from confirmed oscillator pivots. That can make it useful for traders who want a more regime-style guide instead of relying only on crossover behavior.
The synthetic oscillator candles are there to make bar-to-bar behavior easier to read. They can help show when the oscillator is expanding, slowing, or shifting direction more clearly than a line alone. The optional price-overlay candle mode extends that same color logic back onto the main chart so pane-space and chart-space stay visually connected.
This script is not meant to predict reversals by itself, and it should not be treated as a stand-alone signal machine. The way I use it is more practical:
➖ to judge whether HA-based momentum is expanding or contracting
➖ to compare local oscillator behavior against higher-timeframe context
➖ to see whether momentum is strengthening, stalling, or rotating
➖ to keep price-space and pane-space context visually aligned
Bar Replay
Bar Replay is especially useful here. Watching the oscillator build one bar at a time makes it much easier to understand how the HA engine responds to expansion and contraction, how the crossover layers behave during transitions, and how the pivot overlay changes only after structure is confirmed.
Confluence
Like most momentum tools, this works best with confluence. I would not use it in isolation. It becomes more useful when paired with structure, support/resistance, volume, trend context, RSI, or other confirmation tools. The value of this script is not that it replaces those tools. The value is that it gives Heiken Ashi behavior a more organized oscillator-based expression that can be easier to compare, normalize, and monitor over time.
A few example charts:
指标

指标

AG Pro ROC Momentum Shift Map [AGPro Series]AG Pro ROC Momentum Shift Map
Overview / What it does
AG Pro ROC Momentum Shift Map is a momentum-regime tool built around the Rate of Change (ROC) concept, but organized as a transition map rather than a standalone oscillator. Instead of treating ROC as a simple line that moves above or below zero, this script tracks how momentum shifts from one regime to another, whether that transition is strengthening or fading, and whether the current phase is fresh, mature, or beginning to stall.
The script is designed to help users read momentum behavior in a more structured way. It separates bullish and bearish momentum into shift and expansion phases, then adds context through transition-zone logic, baseline separation, freshness tracking, and exhaustion risk. This allows the chart to show not only direction, but also the condition of that direction.
This publication is not intended to forecast tops, bottoms, or future price movement. It is a context tool that organizes ROC behavior into states that may help users evaluate whether momentum is attempting to change character, continue, or lose efficiency.
Unique Edge
The main difference between this script and many ROC-based publications is that it does not present ROC as a raw crossing signal. It reframes ROC as a regime map with state logic, quality scoring, and momentum-stage classification.
Within the AG Pro series, this script also has a different purpose than the previously published tools. It is not a breakout-quality model, not a pullback validator, not a support/resistance reaction map, not a relative-strength rotation framework, and not a correlation-stress tool. Those scripts focus on structure, levels, cross-asset comparison, reclaim behavior, or directional pressure. This script focuses on internal momentum state transitions derived from ROC behavior itself.
More specifically:
- It differs from breakout or retest-oriented scripts because it does not judge price interaction with a key level.
- It differs from reaction-map scripts because it does not score how price behaves around predefined structures such as pivots, support/resistance, or moving-average reclaim zones.
- It differs from pressure or trend-strength tools because its goal is not to estimate directional force in isolation, but to classify whether momentum is transitioning, expanding, contracting, or stalling.
- It differs from relative-strength tools because it does not compare one symbol against another symbol or benchmark.
That distinction is the core of the script’s originality: it uses ROC to map momentum regime transitions, not merely to display momentum magnitude.
Methodology
The script begins with a Rate of Change calculation over a user-defined length and optionally smooths that series to reduce small fluctuations. A regime baseline is then derived from the ROC series to establish whether current momentum is operating above or below its local equilibrium.
A dynamic transition zone is built from ROC volatility. This zone is used to identify areas where momentum is attempting to move from one regime into another. Instead of using a rigid zero-line interpretation alone, the script evaluates whether ROC is operating inside or outside this transition area and whether slope supports the move.
The internal state engine classifies momentum into five main conditions:
- Bull Shift
- Bull Expansion
- Bear Shift
- Bear Expansion
- Neutral / Compression
To add structure beyond simple state assignment, the script estimates Shift Quality using a combination of zone positioning, slope behavior, separation from the regime baseline, and acceleration. A whipsaw-sensitive penalty reduces the score when repeated zero-line crossings suggest unstable momentum behavior.
The script also tracks how long the current state has been active. That information is used to classify the move as Fresh, Active, Mature, Stale, or Stalling. Expansion and contraction logic are then layered on top to provide a clearer view of whether momentum is broadening or fading. Finally, an exhaustion-risk estimate is derived from adverse slope, adverse acceleration, and contraction behavior against the current state.
Signals & Alerts
This script provides state-based informational events rather than trade promises. The built-in alert set is designed to mark notable momentum transitions in a deterministic way:
- Bull Shift Detected
- Bull Expansion Active
- Bear Shift Detected
- Bear Expansion Active
- Momentum Stalling
These alerts are best interpreted as momentum-context events. They are not guarantees of continuation, reversal, or trade outcome.
Key Inputs
Important inputs include:
- ROC Length: defines the main lookback used for Rate of Change.
- ROC Smoothing: reduces short-term noise in the raw ROC series.
- Regime Baseline Length: sets the local reference used for momentum separation.
- Transition Zone Length and Multiplier: control the width and sensitivity of the transition area.
- Quality Normalization Length: affects how the quality model normalizes slope and ROC magnitude.
- Whipsaw Lookback: influences how aggressively unstable zero-line rotation is penalized.
- Freshness thresholds: define how quickly a state progresses from fresh to mature or stale.
Users can also customize visual behavior such as histogram visibility, transition-zone display, background shading, labels, and panel presentation.
Limitations & Transparency
This script is an analytical indicator, not a prediction engine. ROC is a momentum derivative, so it can react quickly but can also become unstable in choppy or mean-reverting environments. During low-quality market conditions, momentum may rotate repeatedly around the transition zone and generate less reliable state changes.
Shift Quality is an internal scoring framework created to organize momentum transitions more clearly. It is not an objective universal measure of trade quality, and it should not be interpreted as proof of future performance.
Freshness, expansion, contraction, and exhaustion labels are contextual classifications based on the script’s internal logic. They are intended to help users structure momentum analysis, not to replace broader chart reading, trend assessment, market structure work, or risk management.
As with any indicator, outputs can vary depending on symbol characteristics, volatility regime, timeframe, and user settings. This script should be used as one analytical layer within a broader decision process.
Risk Disclosure
This indicator is for chart analysis and educational use. It does not provide investment advice, trading advice, or guaranteed results. Financial markets involve risk, and no indicator can ensure favorable outcomes. Users should evaluate the script in their own workflow, test settings carefully, and apply independent judgment before making trading decisions.
指标

指标
