BTC - CII: Drawdown DNA | RMBTC - CII: Drawdown DNA | Rob_Maths
The "Broken Cycle" Series: Pt 1
Welcome to the debut of the Cycle Integrity Index (CII) . This quantitative diagnostic suite was engineered for a singular mission: to determine if Bitcoin’s historical 4-year cycle is still the primary track rhythm, or if the market has shifted into a high-downforce Institutional Regime.
As of January 2026 , the Bitcoin market is at a historical crossroads. According to the classical 4-year model, we have passed the "Theoretical Peak" and are now on the long descent toward a projected cycle low in late 2026 . However, a massive debate is raging: Is the cycle broken?
While legacy models expect a total engine failure (an -80% wipeout) by the end of this year, the ETF-era market structure suggests we may have "re-engineered" the asset's DNA. Pt 1: Drawdown DNA acts as our first telemetry check, auditing the "Structural Fatigue" of every correction to see if we are taking a tactical pit stop or heading for a catastrophic crash.
How to Read the Telemetry
Think of the Bitcoin market as a Formula 1 engine. This indicator audits the "Wear and Tear" (drawdowns) to see if the chassis can sustain its pace or if the structural integrity is failing as we approach the legacy "finish line."
• Vibrant Green (Institutional Sync): Optimal Performance. The engine is healthy. Pullbacks are shallow (-20% to -35% range), representing professional re-fueling stops by smart money. This suggests the "Supercycle" narrative is overriding the 4-year clock.
• Red/Dark Blue (Regime Decay): Loss of Traction. The "Institutional" heartbeat is weakening. Volatility is rising as the engine stalls, drifting back toward the chaotic, un-buffered "Drift" patterns of the retail era.
• Blue Shaded Zones (Legacy DNA): SYSTEMIC CRASH. The price has breached the -50% "G-Force Threshold." At this depth, the correction carries the genetic makeup of a Legacy Bear Market (historically bottoming near -80%). The 4-year cycle is still very much alive—and it's painful.
Behind the Math: ECU Tuning
This script is an original quantitative work utilizing Gaussian Probability Density logic to categorize market drawdowns into distinct historical regimes.
Instead of simple binary "on/off" logic, the code acts like an ECU (Electronic Control Unit) , calculating the mathematical "fit" of the current drawdown against a specific Institutional Mean (-25%) . Why 25%? I chose -25% as the Institutional DNA anchor based on the structural shift observed between 2023 and 2025. While legacy retail cycles were defined by violent 30-40% "shakeouts" during bull phases, the introduction of spot ETFs and corporate treasury adoption has significantly compressed volatility. A -25% correction now represents the maximum "healthy" absorption of sell-side liquidity by institutional "bids." Staying near this level maintains high aerodynamic sync; dropping further suggests the chassis is failing.
How it Audits the Regime
The closer the price stays to this -25% target, the higher the Integrity Score (10/10). By providing unique "DNA Match" calculations and background shading based on specific threshold crossings, this indicator provides utility beyond standard price-change indicators. It allows you to mathematically distinguish between an "Institutional Rebalancing" and the start of a "Legacy Cycle-Ending Termination."
User Inputs & Navigation
• Rolling High Lookback: Default 52 Weeks . Defines our diagnostic lap. It ensures the audit focuses on the current race, not the entire history of the track.
• Inst. Drawdown Target: Default -25% . The "Perfect Pit Stop." Corrections near this level maintain the highest aerodynamic sync.
• Legacy Threshold: Default -50% . The "Point of No Return" where the engine enters total failure and the Blue Legacy Shading triggers.
• Legacy Crash Target: Default -80% . The historical baseline for previous 4-year cycle bear market floors (Expected mid-to-late 2026 in legacy models).
Instructions & Performance
• Preferred Timeframe: This is a macro-telemetry tool. It performs best on Weekly (1W) or Daily (1D) charts.
• The Dashboard: Monitor the INST. DNA MATCH in the table. A score of 8.0+ / 10 provides the "Green Light" that the Supercycle is still the primary driver, effectively breaking the 4-year "Crash" script.
Disclaimer
Trading and investing in digital assets involve significant risk. The Cycle Integrity Index (CII) is a quantitative tool for informational and educational purposes only. Past performance does not guarantee future results. This is not financial advice. Your capital is at risk.
Tags
robmaths, Rob Maths, Bitcoin, CycleTheory, Institutional, Drawdown, Quant, RegimeShift, CII
Check out my published scripts here: de.tradingview.com
Pesquisar nos scripts por "binary"
Session Standard Deviations [IbnHindi]Session Standard Deviation⁺
Introduction
Session Standard Deviation⁺ is a comprehensive technical analysis tool designed to map key session-based price levels through Fibonacci deviation zones while simultaneously tracking real-time market regime conditions. Built for precision intraday analysis, this indicator combines structured session reference points with volatility-based regime filtering to provide traders with both tactical price zones and macro bias context across any liquid instrument.
This indicator does not predict direction or generate trade signals. It operates on confirmed time-based session structures and produces logic-bound visuals designed for traders who understand ICT-based price delivery models and seek consistent visual frameworks for tracking displacement, deviation targeting, and regime-aware decision making.
Key Terms and Definitions
Session Reference Candle : A specific time-stamped candle that serves as the structural anchor for Fibonacci projections. The tool recognizes four distinct session markers: London Open (4:00 AM), Asia Range (8:00 PM–12:00 AM), New York 8:30 AM, and New York 9:30 AM. Each session's high and low become the baseline for calculating all subsequent deviation levels.
Fibonacci Deviations : Price levels calculated as multiples of the session range, extending both above and beyond the reference high and low. Unlike traditional Fibonacci retracements, these deviations project targets at standard levels (0, 0.5, 0.618, 1, 1.618) as well as extended levels (2, 2.25, 2.5, 3, 3.25, 3.5, 4, 4.25, 4.5, 4.618), and their negative equivalents. These zones represent potential areas where institutional orders may cluster during expansion or retracement.
Regime Analysis : A multi-factor assessment of current market conditions based on volatility (ATR), directional bias (EMA), and trend strength (ADX). The regime framework categorizes the market into three states: trending bullish, trending bearish, or consolidating. This classification helps traders contextualize whether session-based deviations are likely to act as continuation targets or reversal zones.
ATR (Average True Range) : A volatility measurement comparing fast and slow periods to determine whether the market is expanding (regime-high volatility) or contracting (regime-low volatility). When fast ATR exceeds slow ATR, the market is considered to be in an elevated volatility state, which often accompanies displacement moves that respect deviation levels.
Trend EMA : A directional filter using an exponential moving average to determine whether price is trading above or below a defined trend anchor. This binary condition helps classify whether the regime is structurally bullish or bearish.
ADX (Average Directional Index) : A momentum oscillator measuring trend strength. When ADX is above 25, the market is considered to have sufficient momentum to support regime classification as trending. Below 25 suggests choppy or non-directional conditions (consolidation).
Session Box (Asia Only) : A visual range overlay drawn for the Asia session (8:00 PM–12:00 AM), highlighting the consolidation zone that often precedes major market expansion. This box is rendered with customizable opacity and provides a structural reference for overnight price action.
Fib Extension Mode : Determines how deviation lines project forward in time. Options include extending right indefinitely, extending a fixed number of bars, or stopping at the session reference point. This allows traders to declutter charts or maintain persistent levels based on their analytical preference.
Description
At its core, Session Standard Deviation⁺ operates on a two-layer framework: structural deviation mapping and dynamic regime classification. Each qualifying session creates a full matrix of Fibonacci-based price levels, calculated from the session's confirmed high and low. These levels remain active and extend forward until the next session triggers, providing persistent reference zones for intraday price delivery.
The tool does not account for partial moves or wick-based touches. Deviation levels are drawn as horizontal lines and remain static once plotted. Labels are positioned to the left of each line by default, displaying the session prefix (LON, ASIA, PRE, NYAM) alongside the deviation multiplier. All labels use a minimal style with no background fill, ensuring clean visual hierarchy.
The regime analysis operates independently and updates in real-time on each new bar. A table positioned in the top-right corner displays the current regime classification, live ATR value, and optional ADX strength. The table's background color shifts dynamically—green for bullish regimes, red for bearish regimes, and gray for consolidation—allowing traders to immediately assess whether session deviation zones should be interpreted as continuation targets or reversal areas.
The model remains active until the next session reference candle is detected, at which point a new set of deviation levels is generated. Older session levels are automatically cleaned up after 300 objects to prevent performance degradation on lower-timeframe charts.
Key Features
Multi-Session Structure : Track up to four distinct session types simultaneously—London (4:00 AM 1H candle), Asia (8:00 PM–12:00 AM range), New York 8:30 AM (5m candle), and New York 9:30 AM (5m candle). Each session generates its own color-coded deviation matrix, allowing traders to differentiate between overnight, pre-market, and intraday structural levels.
Extended Fibonacci Levels : The tool plots 26 unique deviation levels, including both standard and extended targets. Positive deviations (0 through 4.618) project above the session high, while negative deviations project below the session low. Each level can be toggled individually, enabling traders to focus only on the zones relevant to their strategy.
Real-Time Regime Classification : A live regime panel evaluates market conditions using ATR comparison (fast vs. slow), trend EMA positioning, and ADX strength. The regime updates on every bar and displays one of three states: "Reversal to Bullish" (trending up with high volatility), "Bias: Bearish (Hi-Vol)" (trending down with high volatility), or "Consolidating" (low directional conviction). This dynamic classification allows traders to interpret session fibs contextually rather than mechanically.
Customizable Color Coding : Each session type is assigned a unique color—purple for London, blue for Asia, and orange for New York pre-market candles. These colors carry through to both the deviation lines and their labels, maintaining visual consistency across timeframes and chart layouts.
Flexible Extension Controls : Choose how deviation lines project into the future. "Right N Bars" extends lines a fixed number of bars forward (default 50), "Right" extends indefinitely, and "None" stops extension at the session reference point. This flexibility allows traders to maintain clean charts on busy intraday timeframes while preserving structural context.
Minimal Label Design : Labels display session prefix and deviation multiplier (e.g., "LON 2.5" or "NYAM -0.618") with no background fill. Label placement can be toggled between left and right alignment, and padding is customizable to prevent overlap with price action.
Session-Specific Box Overlay : The Asia session (8:00 PM–12:00 AM) is rendered as a semi-transparent box spanning its high and low range. This visual aid helps traders identify the overnight consolidation zone and anticipate expansion moves during London or New York open.
Timezone Awareness : All session detections are timezone-aware and default to America/New_York. Traders can customize the timezone input to align with their broker's server time or preferred regional standard.
Regime Panel Display : The top-right table shows the indicator name, current regime state, live ATR value, and optional ADX reading. The panel's background color shifts with regime changes, providing instant visual feedback without requiring interpretation of numeric values.
Memory Management : The tool automatically deletes lines and labels after 300 objects are created, preventing performance issues on lower timeframes while maintaining enough historical context for multi-session analysis.
How Traders Can Use the Indicator Effectively
Session Standard Deviation⁺ is not a signal generator or automated trading system. It is best used as a visual reference framework for understanding where price may seek liquidity based on session expansion logic and how current volatility conditions contextualize those projections. The tool excels as a companion for:
- Mapping session-based expansion targets and retracement zones for ICT-style price delivery analysis
- Differentiating between low-probability and high-probability deviation zones based on regime classification
- Journaling and reviewing which session structures produce the cleanest reactions across different market conditions
- Identifying when price is respecting session fibs as continuation levels (trending regime) versus when deviation zones may act as exhaustion points (consolidation regime)
Traders using the tool should be familiar with session-based analysis, Fibonacci extension logic, and the role of volatility in price delivery. The indicator is most effective when combined with narrative, higher-timeframe structure, and discretionary interpretation of regime shifts.
Usage Guidance
1. Add Session Standard Deviation⁺ to any TradingView chart. This is a fractal tool and can be applied across any timeframe or liquid instrument.
2. Configure which sessions you want to track using the input toggles. Disable sessions that are not relevant to your trading hours or strategy.
3. Use the regime panel to assess whether the current market environment supports continuation into higher deviation levels (trending regime) or whether deviation zones are more likely to act as reversal points (consolidation regime).
4. Reference session deviation lines as structural zones for limit orders, stop placement, or target setting. Combine these levels with your own narrative and higher-timeframe bias to determine which zones carry the highest probability of reaction.
5. Adjust label placement, line width, and extension mode to match your visual preferences and chart timeframe. Lower timeframes (1m–5m) often benefit from shorter extension lengths, while higher timeframes (15m–1H) may prefer persistent lines.
6. Review how price interacts with session fibs across different regime classifications. Over time, you'll develop discretion for which deviation levels are most respected during specific market conditions.
Session Standard Deviation⁺ provides the structural scaffolding and environmental context for informed intraday decision-making. Use it as a lens—not a crutch—for navigating session-based price delivery.
Quantum Reversal Detector [JOAT]
Quantum Reversal Detector - Multi-Factor Reversal Probability Analysis
Introduction and Purpose
Quantum Reversal Detector is an open-source overlay indicator that combines multiple reversal detection methods into a unified probability-based framework. The core problem this indicator addresses is the unreliability of single-factor reversal signals. A price touching support means nothing without momentum confirmation; an RSI oversold reading means nothing without price structure context.
This indicator solves that by requiring multiple independent factors to align before generating reversal signals, then expressing the result as a probability score rather than a binary signal.
Why These Components Work Together
The indicator combines five analytical approaches, each addressing a different aspect of reversal detection:
1. RSI Extremes - Identifies momentum exhaustion (overbought/oversold)
2. MACD Crossovers - Confirms momentum direction change
3. Support/Resistance Proximity - Ensures price is at a significant level
4. Multi-Depth Momentum - Analyzes momentum across multiple timeframes
5. Statistical Probability - Quantifies reversal likelihood using Bayesian updating
These components are not randomly combined. Each filter catches reversals that others miss:
RSI catches momentum exhaustion but misses structural reversals
MACD catches momentum shifts but lags price action
S/R proximity catches structural levels but ignores momentum
Multi-depth momentum catches divergences across timeframes
Probability scoring combines all factors into actionable confidence levels
How the Detection System Works
Step 1: Pattern Detection
The indicator first identifies potential reversal conditions:
// Check if price is at support/resistance
float lowestLow = ta.lowest(low, period)
float highestHigh = ta.highest(high, period)
bool atSupport = low <= lowestLow * 1.002
bool atResistance = high >= highestHigh * 0.998
// Check RSI conditions
float rsi = ta.rsi(close, 14)
bool oversold = rsi < 30
bool overbought = rsi > 70
// Check MACD crossover
float macd = ta.ema(close, 12) - ta.ema(close, 26)
float signal = ta.ema(macd, 9)
bool macdBullish = ta.crossover(macd, signal)
bool macdBearish = ta.crossunder(macd, signal)
// Combine for reversal detection
if atSupport and oversold and macdBullish
bullishReversal := true
Step 2: Multi-Depth Momentum Analysis
The indicator calculates momentum across multiple periods to detect divergences:
calculateQuantumMomentum(series float price, simple int period, simple int depth) =>
float totalMomentum = 0.0
for i = 0 to depth - 1
int currentPeriod = period * (i + 1)
float momentum = ta.roc(price, currentPeriod)
totalMomentum += momentum
totalMomentum / depth
This creates a composite momentum reading that smooths out noise while preserving genuine momentum shifts.
Step 3: Bayesian Probability Calculation
The indicator uses Bayesian updating to calculate reversal probability:
bayesianProbability(series float priorProb, series float likelihood, series float evidence) =>
float posterior = evidence > 0 ? (likelihood * priorProb) / evidence : priorProb
math.min(math.max(posterior, 0.0), 1.0)
The prior probability starts at 50% and updates based on:
RSI extreme readings increase likelihood
MACD crossovers increase likelihood
S/R proximity increases likelihood
Momentum divergence increases likelihood
Step 4: Confidence Intervals
Using Monte Carlo simulation concepts, the indicator estimates price distribution:
monteCarloSimulation(series float price, series float volatility, simple int iterations) =>
float sumPrice = 0.0
float sumSqDiff = 0.0
for i = 0 to iterations - 1
float randomFactor = (i % 10 - 5) / 10.0
float simulatedPrice = price + volatility * randomFactor
sumPrice += simulatedPrice
float avgPrice = sumPrice / iterations
// Calculate standard deviation for confidence intervals
This provides 95% and 99% confidence bands around the current price.
Signal Classification
Signals are classified by confirmation level:
Confirmed Reversal : Pattern detected for N consecutive bars (default 3)
High Probability : Confirmed + Bayesian probability > 70%
Ultra High Probability : High probability + PDF above average
Dashboard Information
The dashboard displays:
Bayesian Probability - Updated reversal probability (0-100%)
Quantum Momentum - Multi-depth momentum average
RSI - Current RSI value with overbought/oversold status
Volatility - Current ATR as percentage of price
Reversal Signal - BULLISH, BEARISH, or NONE
Divergence - Momentum divergence detection
MACD - Current MACD histogram value
S/R Zone - AT SUPPORT, AT RESISTANCE, or NEUTRAL
95% Confidence - Price range with 95% probability
Bull/Bear Targets - ATR-based reversal targets
Visual Elements
Quantum Bands - ATR-based upper and lower channels
Probability Field - Circle layers showing probability distribution
Confidence Bands - 95% and 99% confidence interval circles
Reversal Labels - REV markers at confirmed reversals
High Probability Markers - Star diamonds at high probability setups
Reversal Zones - Boxes around confirmed reversal areas
Divergence Markers - Triangles at momentum divergences
How to Use This Indicator
For Reversal Trading:
1. Wait for Bayesian Probability to exceed 70%
2. Confirm price is at S/R zone (dashboard shows AT SUPPORT or AT RESISTANCE)
3. Check that RSI is in extreme territory (oversold for longs, overbought for shorts)
4. Enter when REV label appears with high probability marker
For Risk Management:
1. Use the 95% confidence band as a stop-loss reference
2. Use Bull/Bear Targets for take-profit levels
3. Higher probability readings warrant larger position sizes
For Filtering False Signals:
1. Increase Confirmation Bars to require more consecutive signals
2. Only trade when probability exceeds 70%
3. Require divergence confirmation for highest conviction
Input Parameters
Reversal Period (21) - Lookback for S/R and momentum calculations
Quantum Depth (5) - Number of momentum layers for multi-depth analysis
Confirmation Bars (3) - Consecutive bars required for confirmation
Detection Sensitivity (1.2) - Band width and target multiplier
Bayesian Probability (true) - Enable probability calculation
Monte Carlo Simulation (true) - Enable confidence interval calculation
Normal Distribution (true) - Enable PDF calculation
Confidence Intervals (true) - Enable confidence bands
Timeframe Recommendations
1H-4H: Best for swing trading reversals
Daily: Fewer but more significant reversal signals
15m-30m: More signals, requires higher probability threshold
Limitations
Statistical concepts are simplified implementations for Pine Script
Monte Carlo uses deterministic pseudo-random factors, not true randomness
Bayesian probability uses simplified prior/likelihood model
Reversal detection does not guarantee actual reversals will occur
Confirmation bars add lag to signal generation
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied to understand how each component works.
This indicator does not constitute financial advice. Reversal detection is probabilistic, not predictive. The probability scores represent statistical likelihood based on historical patterns, not guaranteed outcomes. Past performance does not guarantee future results. Always use proper risk management, position sizing, and stop-losses.
- Made with passion by officialjackofalltrades
Premium CCT Multi-Timeframe Candle Continuation Theory IndicatorPremium CCT is a multi-timeframe technical analysis indicator implementing a proprietary three-condition sequential confirmation system for identifying structural continuation setups. Unlike standard multi-timeframe approaches that simply display HTF indicators on LTF charts or use basic moving average crossovers, this indicator employs a systematic state-machine architecture with specific entry, validation, and invalidation rules designed to filter low-probability setups.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 TECHNICAL METHODOLOGY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔹 PHASE 1: HTF STRUCTURAL BREAK DETECTION
The indicator implements a specific candle-close comparison algorithm on the higher timeframe (HTF) that differs from standard breakout detection methods:
DETECTION LOGIC:
• Bullish Setup: HTF_Close > HTF_High
(Current closed HTF candle's close price exceeds the previous HTF candle's high)
• Bearish Setup: HTF_Close < HTF_Low
(Current closed HTF candle's close price falls below the previous HTF candle's low)
This is NOT a simple "price broke above high" detection. The requirement for the CLOSE to be above the previous HIGH (rather than just the high being above the previous high) ensures the structural break is confirmed at candle close, filtering wick-only breakouts that often fail.
POINT OF INTEREST (POI) ESTABLISHMENT:
When a setup is detected, the POI is set at:
• Bullish: POI = HTF_High (the previous candle's high that was broken)
• Bearish: POI = HTF_Low (the previous candle's low that was broken)
This POI represents a key structural level where the market previously struggled to move beyond. The hypothesis is that this level will act as support (bullish) or resistance (bearish) during retracement.
INVALIDATION ALGORITHM:
The setup remains valid until:
• Bullish: HTF_Close < Setup_Candle_Low (current HTF candle closes below the low of the candle that created the setup)
• Bearish: HTF_Close > Setup_Candle_High (current HTF candle closes above the high of the candle that created the setup)
This invalidation logic differs from simple "stop loss at low" approaches because it requires a full candle close beyond the extreme, not just a wick, preventing premature invalidation from intrabar volatility.
🔹 PHASE 2: LTF THREE-CONDITION SEQUENTIAL SYSTEM
Once a valid POI is established, the indicator enters a state-machine that tracks three specific conditions on the lower timeframe (LTF). Each condition must be satisfied sequentially, and certain conditions can be invalidated if specific price action occurs.
CONDITION 1 - RETRACEMENT THROUGH POI:
ENTRY CRITERIA:
• Bullish: LTF_Close < POI (candle closes below the POI level)
• Bearish: LTF_Close > POI (candle closes above the POI level)
TRACKING MECHANISM:
Upon Condition 1 satisfaction, the indicator begins tracking two separate extreme values:
1. Momentum Extreme (for Condition 3):
• Bullish: Track the candle with the LOWEST CLOSE during retracement
- If new lower close found: Update Momentum_Extreme_Close and store this candle's HIGH
• Bearish: Track the candle with the HIGHEST CLOSE during retracement
- If new higher close found: Update Momentum_Extreme_Close and store this candle's LOW
2. Stop Loss Extreme (for risk management):
• Bullish: Track the absolute LOWEST LOW reached during retracement
- Update continuously if LTF_Low < Current_SL_Extreme
• Bearish: Track the absolute HIGHEST HIGH reached during retracement
- Update continuously if LTF_High > Current_SL_Extreme
WHY THIS MATTERS:
This dual-tracking system is a key differentiator from standard indicators. Most indicators either:
(a) Only track absolute extremes, which don't help identify momentum shifts
(b) Use fixed ATR-based stops, which don't adapt to actual retracement depth
(c) Use a single reference point for both momentum and risk
By tracking BOTH the candle with the most extreme close (momentum) AND the absolute extreme price (risk), the indicator can identify precise momentum shift points while maintaining appropriate stop placement.
MATHEMATICAL REPRESENTATION:
If Condition_1 == False: If (Bullish AND LTF_Close < POI) OR (Bearish AND LTF_Close > POI): Condition_1 = True Momentum_Close_Extreme = LTF_Close Momentum_HighLow_Reference = (Bullish ? LTF_High : LTF_Low) SL_Extreme = (Bullish ? LTF_Low : LTF_High)
If Condition_1 == True: If Bullish: If LTF_Close < Momentum_Close_Extreme: Momentum_Close_Extreme = LTF_Close Momentum_HighLow_Reference = LTF_High If LTF_Low < SL_Extreme: SL_Extreme = LTF_Low If Bearish: If LTF_Close > Momentum_Close_Extreme: Momentum_Close_Extreme = LTF_Close Momentum_HighLow_Reference = LTF_Low If LTF_High > SL_Extreme: SL_Extreme = LTF_High
CONDITION 2 - POI RECLAIM WITH DYNAMIC INVALIDATION:
ENTRY CRITERIA:
• Bullish: LTF_Close > POI (candle closes back above the POI level)
• Bearish: LTF_Close < POI (candle closes back below the POI level)
CRITICAL DIFFERENCE FROM STANDARD APPROACHES:
This condition implements real-time validation logic. If Condition 2 is satisfied but price subsequently closes back through the POI before all conditions are met, Condition 2 is INVALIDATED and must be re-satisfied.
VALIDATION STATE MACHINE:
If Condition_1 == True AND Condition_2 == False: If (Bullish AND LTF_Close > POI) OR (Bearish AND LTF_Close < POI): Condition_2 = True
If Condition_2 == True: If (Bullish AND LTF_Close < POI) OR (Bearish AND LTF_Close > POI): Condition_2 = False // Invalidated - must reclaim again
WHY THIS IS UNIQUE:
Most indicators treat support/resistance reclaims as binary events - once price crosses back, the condition stays "true." This creates false signals when price oscillates around the level. The dynamic invalidation ensures that the POI must be HELD, not just briefly touched, filtering out weak reclaims.
CONDITION 3 - MOMENTUM SHIFT CONFIRMATION:
ENTRY CRITERIA:
• Bullish: LTF_Close > Momentum_HighLow_Reference
(Current candle closes above the HIGH of the candle with the lowest close during retracement)
• Bearish: LTF_Close < Momentum_HighLow_Reference
(Current candle closes below the LOW of the candle with the highest close during retracement)
TECHNICAL RATIONALE:
This condition confirms that momentum has definitively shifted in the intended direction. By requiring price to break the high/low of the MOST EXTREME CLOSE candle (not just any candle, not just the extreme low/high), the indicator ensures:
1. Price has moved beyond the point of maximum bearish/bullish pressure during retracement
2. The momentum shift is decisive, not just a small bounce
3. The setup shows real follow-through, not just sideways consolidation
COMPARISON TO ALTERNATIVES:
• Simple "close above previous high": Too many false signals during consolidation
• ATR-based breakout: Doesn't account for actual market structure
• Fixed pip movement: Not adaptive to volatility
• Break of retracement low: Triggers too late and misses optimal entry
• Our approach: Break of the high/low of the CANDLE that showed the most extreme close, providing early but confirmed entry
SIGNAL GENERATION:
Entry signal triggers ONLY when:
Condition_1 == True AND Condition_2 == True AND Condition_3 == True AND Entry_Signal_Not_Yet_Shown
All three conditions must be simultaneously true. Once a signal is generated, the tracking system resets only when a new HTF setup is detected or the current setup is invalidated.
🔹 PHASE 3: HTF TREND FILTER IMPLEMENTATION
An optional moving average filter adds a fourth layer of confirmation by ensuring directional alignment with the broader trend.
TREND DETERMINATION LOGIC:
HTF_MA = MA(HTF_Close, Period, Method) Trend_Bullish = (HTF_Close > HTF_MA) Trend_Bearish = (HTF_Close < HTF_MA)
SIGNAL FILTERING:
If Trend_Filter_Enabled: If Entry_Signal == True: If (Setup_Bullish AND NOT Trend_Bullish) OR (Setup_Bearish AND NOT Trend_Bearish): Entry_Signal = False // Block counter-trend signals
WHY THIS IS NECESSARY:
While the three-condition system identifies structural continuation setups, the trend filter prevents taking continuation trades in the opposite direction of the dominant trend. This is particularly important because continuation patterns can form in both trending and counter-trending moves, but success rates differ significantly.
CUSTOMIZATION LOGIC:
• Period: Adjustable 1-500 (default 20)
• Method: SMA (arithmetic mean), EMA (exponential smoothing), SMMA (smoothed MA), LWMA (linear weighted)
• Applied Price: Close/Open/High/Low/Median/Typical/Weighted
The default 20-period SMA provides a balance between responsiveness and noise filtering on the HTF, effectively identifying intermediate trends without being overly sensitive to short-term fluctuations.
🔹 DYNAMIC REFERENCE LEVEL CALCULATION
TAKE PROFIT REFERENCE:
Unlike static targets (ATR multiples, fixed pips, percentage), the indicator dynamically tracks:
• Bullish: Highest HIGH reached after setup formation but BEFORE entry confirmation
• Bearish: Lowest LOW reached after setup formation but BEFORE entry confirmation
TRACKING ALGORITHM:
On_New_HTF_Setup: TP_Reference = (Bullish ? Setup_Candle_High : Setup_Candle_Low)
While Conditions_Not_All_Met: If Bullish AND LTF_High > TP_Reference: TP_Reference = LTF_High If Bearish AND LTF_Low < TP_Reference: TP_Reference = LTF_Low
On_Entry_Signal: Final_TP_Reference = TP_Reference // Lock in the value
WHY THIS APPROACH:
This creates realistic profit targets based on actual market movement, not theoretical calculations. The TP represents a price level the market has ALREADY REACHED and therefore has demonstrated it CAN reach again. This is fundamentally different from:
• ATR-based targets: Theoretical, may not align with structure
• Fixed R:R targets: Arbitrary, ignores market behavior
• Previous swing high/low: Static, doesn't account for current volatility
STOP LOSS REFERENCE:
The SL reference is the absolute extreme reached during the retracement phase (tracked in Condition 1). This ensures:
• Stop is beyond actual retracement depth (not arbitrary)
• Stop accounts for the volatility of this specific setup
• Stop placement adapts to market conditions automatically
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 JUSTIFICATION FOR CLOSED-SOURCE & PAID ACCESS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
While this indicator uses fundamental building blocks available in technical analysis (price comparisons, moving averages, high/low tracking), the value and originality lie in the SPECIFIC IMPLEMENTATION:
1️⃣ PROPRIETARY STATE MACHINE ARCHITECTURE
The exact sequence of conditions, their interaction logic, and the specific invalidation rules constitute a proprietary trading methodology. The state machine ensures conditions are tracked, validated, and invalidated according to precise rules that took extensive development and testing to optimize.
The specific choice of:
• CLOSE vs HIGH for HTF breakout detection
• Tracking the candle with extreme CLOSE vs absolute extreme for momentum
• Dynamic Condition 2 invalidation logic
• The specific relationship between all three conditions
...represents a unique systematic approach not found in standard indicators.
2️⃣ DUAL-TRACKING MECHANISM
The simultaneous tracking of two different extremes during retracement (momentum extreme and SL extreme) with their specific update conditions is a non-obvious implementation that required systematic development. Standard indicators typically track only one reference point.
3️⃣ PRECISE TIMING AND INTERACTION LOGIC
The exact timing of when each condition is checked, how they interact, when they reset, and the specific price action that triggers state changes represents implementation details that distinguish this from generic approaches. For example:
• Checking conditions on bar close (not intrabar)
• Specific invalidation rules for Condition 2
• Continue tracking extremes even after Condition 1 is met
• Lock TP reference only at entry, not at setup
4️⃣ INTEGRATED MULTI-COMPONENT SYSTEM
While each component (HTF analysis, LTF conditions, trend filter) uses standard concepts, the specific way they integrate - including which HTF signals are acted upon, how LTF conditions sequence, when the trend filter applies, how reference levels are calculated - represents a cohesive methodology developed through systematic testing.
5️⃣ OPTIMIZATION AND PARAMETER SELECTION
The specific default parameters (timeframe relationships, condition thresholds, MA periods) were determined through extensive testing and represent proprietary optimization decisions.
COMPARISON TO FREE ALTERNATIVES:
Free indicators typically offer:
• Simple multi-timeframe displays (showing HTF indicators on LTF chart)
• Basic breakout detection (price crosses level)
• Single-condition entry systems
• Static stops and targets
• No systematic state tracking
This indicator differs by providing:
• Systematic three-condition sequential confirmation
• Dynamic state validation with invalidation logic
• Adaptive reference levels based on actual price behavior
• Integrated trend filtering
• Dual-tracking system for momentum and risk
• Complete automation of the methodology
The closed-source protection preserves the specific implementation logic, exact condition relationships, timing mechanisms, and proprietary parameter selections that distinguish this systematic approach from free building blocks.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✨ FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 MULTI-TIMEFRAME COORDINATION
• Three preset combinations: Daily/15M, 4H/5M, 1H/1M
• Automatic HTF/LTF synchronization with request.security() implementation
• Chart timeframe validation preventing incompatible setups
• Real-time HTF bar tracking to detect new setups immediately
🎨 VISUAL INDICATORS
• Dynamic POI horizontal lines with directional color coding
• Automatic SL/TP reference levels displayed after Condition 1
• Real-time condition status in info panel (checkmark system)
• Customizable colors, line styles (solid/dashed/dotted), and widths (1-5px)
• Label annotations showing exact price levels
📊 INFORMATION PANEL
• Current HTF/LTF configuration display
• HTF trend direction with MA value
• Active setup type (Bullish/Bearish/None)
• Three-condition status with real-time updates
• Trend alignment indicator (when filter enabled)
• Position: 4 corners (top-left, top-right, bottom-left, bottom-right)
• Size: Small/Normal/Large
• Theme: Light (light background charts) / Dark (dark background charts)
🎯 ENTRY SIGNALS
• Display modes: Arrows only, Background color only, or Both
• Arrow placement: Above low (bullish) / Below high (bearish)
• Background: 90% transparent fill on signal bar
• Customizable colors for long (default green) and short (default red)
• Signals trigger only when ALL conditions + trend filter pass
🔔 ALERT SYSTEM
• HTF Setup Formation: Notifies when new POI established
• Entry Signal: Full trade details (direction, entry, TP, SL)
• POI Invalidation: Warns when setup is invalidated
• Custom message format compatible with webhook automation
• alert() function calls for flexible notification routing
• Frequency: Once per bar (prevents spam)
⚙️ CUSTOMIZATION
• Trend Filter: Enable/disable, period (1-500), method (SMA/EMA/SMMA/LWMA), applied price
• Visual Settings: All element colors, line styles, widths
• Alert Toggles: Individual on/off for each alert type
• Info Panel: Position, size, theme independently configurable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 USAGE INSTRUCTIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1️⃣ CHART TIMEFRAME REQUIREMENT
Your chart timeframe MUST be equal to or lower than the selected LTF:
• Daily/15M preset: Chart must be 15-minute or lower (15M, 5M, 1M)
• 4H/5M preset: Chart must be 5-minute or lower (5M, 1M)
• 1H/1M preset: Chart must be 1-minute
The indicator displays a warning label if your chart is incompatible. This requirement exists because the indicator needs to process individual LTF bars in real-time to track conditions accurately.
2️⃣ INTERPRETING SIGNALS
Entry signals appear when the complete sequence is satisfied:
• POI line shows the key structural level (blue for bullish, orange for bearish)
• SL reference line appears after Condition 1 (red line at retracement extreme)
• TP reference line tracks highest/lowest point before entry (green line)
• Info panel shows real-time condition status (✓ when met, ✗ when not)
• Entry arrow/background appears when all conditions + trend filter pass
The setup remains active until either:
(a) Entry signal is generated
(b) HTF setup is invalidated
(c) New HTF setup is detected
3️⃣ TREND FILTER OPTIMIZATION
Enable in clearly trending markets:
• Strong uptrends: Enable filter, allows only bullish setups
• Strong downtrends: Enable filter, allows only bearish setups
• Ranging markets: Consider disabling to allow both directions
• Choppy conditions: Enable filter with longer MA period (50-100)
MA Period Selection:
• 20: Default, balances responsiveness and stability
• 50: Intermediate trends, less false signals
• 100/200: Major trends only, very selective
MA Method Selection:
• SMA: Smooth, equal weight to all periods
• EMA: More weight to recent prices, faster response
• SMMA: Double-smoothed, very stable
• LWMA: Linear weighting, moderate responsiveness
4️⃣ ALERT CONFIGURATION
To receive entry signal notifications:
1. Right-click the indicator name on your chart
2. Select "Add Alert on Premium CCT..."
3. In alert dialog, choose "Any alert() function call"
4. Configure notification preferences (app/email/webhook)
5. Set "Once Per Bar Close" to avoid repeated alerts
Alert message format includes:
• Direction (BUY/SELL)
• Symbol
• Entry price (current close when signal triggered)
• TP level (dynamic reference)
• SL level (retracement extreme)
5️⃣ RISK MANAGEMENT CONSIDERATIONS
The indicator provides REFERENCE levels, not trade management:
• SL Reference: Shows the retracement extreme - consider adding buffer
• TP Reference: Shows price level already reached - may not be hit again
• Position Sizing: Calculate based on your account size and risk tolerance
• Actual SL: Should account for spread, slippage, and broker conditions
• Actual TP: May want to take partial profits before reference level
These reference levels represent structural points identified by the indicator's logic, but actual trade management should incorporate:
• Your personal risk parameters
• Current market volatility
• Spread and commission costs
• Your trading plan rules
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 BEST PRACTICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BACKTESTING:
Before live trading, review historical signals on your instruments to understand:
• Signal frequency on different timeframe combinations
• Typical stop-loss distances
• How setups behave in different market conditions
• Average time from setup to entry signal
MARKET SELECTION:
This methodology works best in markets with:
• Clear directional trends on HTF (for trend filter effectiveness)
• Sufficient liquidity (reduces slippage on entries)
• Normal volatility (extreme conditions may cause unusual behavior)
• Avoid during major news events initially until familiar with behavior
TIMEFRAME CONSIDERATIONS:
• Lower timeframe combinations (1H/1M): More signals, faster moves, require more monitoring
• Higher timeframe combinations (Daily/15M): Fewer signals, larger moves, less intensive
• Match timeframe selection to your trading availability and style
INTEGRATION WITH YOUR ANALYSIS:
While this indicator provides a systematic approach, consider:
• Overall market context (trending, ranging, consolidating)
• Key support/resistance levels from higher timeframes
• Economic calendar events that may cause volatility
• Your own chart patterns and technical analysis
• Confluence with other methodologies you use
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is a technical analysis tool that implements a specific systematic methodology. It does NOT constitute financial advice, investment recommendations, or trading signals that should be followed blindly.
RISK ACKNOWLEDGMENT:
• Trading involves substantial risk of loss
• You can lose your entire investment
• Past indicator signals do not predict future results
• No methodology works in all market conditions
• Market conditions change and render historical performance irrelevant
• Backtested results do not account for real-world factors (slippage, spread, execution, psychological factors)
USER RESPONSIBILITY:
• You are solely responsible for all trading decisions
• You should never trade with money you cannot afford to lose
• You should thoroughly understand this methodology before using it
• You should test on demo accounts before live trading
• You should maintain appropriate position sizing and risk management
• You should seek advice from qualified professionals regarding your situation
METHODOLOGY LIMITATIONS:
• This system tracks specific price relationships and conditions
• It cannot predict market behavior with certainty
• It may generate false signals during certain conditions
• It requires proper interpretation within market context
• Signal frequency varies significantly across markets and timeframes
• Performance varies across different market regimes (trending vs ranging)
• The three-condition system filters many setups, which reduces signal frequency
NO PERFORMANCE CLAIMS:
• No claims are made about win rates or profitability
• Historical signals shown are not representative of future performance
• Results vary dramatically based on execution, market selection, and risk management
• What works on one instrument may not work on another
• Different timeframe combinations produce different results
TECHNICAL LIMITATIONS:
• Requires specific chart timeframe compatibility
• Depends on clean price data from broker
• May behave differently with different data providers
• LTF conditions depend on precise bar-by-bar tracking
• Internet connectivity issues may cause missed signals
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 VERSION HISTORY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Version 1.0 - Initial Release
• HTF structural break detection with close-vs-high/low logic
• Three-condition LTF sequential tracking system with state machine
• Dual extreme tracking (momentum reference and SL reference)
• Dynamic Condition 2 validation with real-time invalidation
• Adaptive TP/SL reference levels based on actual price movement
• Visual POI lines with automatic updates
• Comprehensive information panel with real-time status
• Customizable entry signal display (arrows/background/both)
• Complete alert system with structured messages
• HTF trend filter with MA (customizable period, method, applied price)
• Multiple timeframe presets (Daily/15M, 4H/5M, 1H/1M)
• Light and Dark theme support for different chart backgrounds
• Extensive visual customization options
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The information and publications provided by this indicator are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations.
This indicator implements a specific technical analysis methodology. Users must understand the underlying logic, test thoroughly, and integrate it appropriately within their own trading approach and risk management framework.
Adaptive Trend Envelope [BackQuant]Adaptive Trend Envelope
Overview
Adaptive Trend Envelope is a volatility-aware trend-following overlay designed to stay responsive in fast markets while remaining stable during slower conditions. It builds a dynamic trend spine from two exponential moving averages and surrounds it with an adaptive envelope whose width expands and contracts based on realized return volatility. The result is a clean, self-adjusting trend structure that reacts to market conditions instead of relying on fixed parameters.
This indicator is built to answer three core questions directly on the chart:
Is the market trending or neutral?
If trending, in which direction is the dominant pressure?
Where is the dynamic trend boundary that price should respect?
Core trend spine
At the heart of the indicator is a blended trend spine:
A fast EMA captures short-term responsiveness.
A slow EMA captures structural direction.
A volatility-based blend weight dynamically shifts influence between the two.
When short-term volatility is low relative to long-term volatility, the fast EMA has more influence, keeping the trend responsive. When volatility rises, the blend shifts toward the slow EMA, reducing noise and preventing overreaction. This blended output is then smoothed again to form the final trend spine, which acts as the structural backbone of the system.
Volatility-adaptive envelope
The envelope surrounding the trend spine is not based on ATR or fixed percentages. Instead, it is derived from:
Log returns of price.
An exponentially weighted variance estimate.
A configurable multiplier that scales envelope width.
This creates bands that automatically widen during volatile expansions and tighten during compression. The envelope therefore reflects the true statistical behavior of price rather than an arbitrary distance.
Inner hysteresis band
Inside the main envelope, an inner band is constructed using a hysteresis fraction. This inner zone is used to stabilize regime transitions:
It prevents rapid flipping between bullish and bearish states.
It allows trends to persist unless price meaningfully invalidates them.
It reduces whipsaws in sideways conditions.
Trend regime logic
The indicator operates with three regime states:
Bullish
Bearish
Neutral
Regime changes are confirmed using a configurable number of bars outside the adaptive envelope:
A bullish regime is confirmed when price closes above the upper envelope for the required number of bars.
A bearish regime is confirmed when price closes below the lower envelope for the required number of bars.
A trend exits back to neutral when price reverts through the trend spine.
This structure ensures that trends are confirmed by sustained pressure rather than single-bar spikes.
Active trend line
Once a regime is active, the indicator plots a single dominant trend line:
In a bullish regime, the lower envelope becomes the active trend support.
In a bearish regime, the upper envelope becomes the active trend resistance.
In neutral conditions, price itself is used as a placeholder.
This creates a simple, actionable visual reference for trend-following decisions.
Directional energy visualization
The indicator uses layered fills to visualize directional pressure:
Bullish energy fills appear when price holds above the active trend line.
Bearish energy fills appear when price holds below the active trend line.
Opacity gradients communicate strength and persistence rather than binary states.
A subtle “rim” effect is added using ATR-based offsets to give depth and reinforce the active side of the trend without cluttering the chart.
Signals and trend starts
Discrete signals are generated only when a new trend regime begins:
Buy signals appear at the first confirmed transition into a bullish regime.
Sell signals appear at the first confirmed transition into a bearish regime.
Signals are intentionally sparse. They are designed to mark regime shifts, not every pullback or continuation, making them suitable for higher-quality trend entries rather than frequent trading.
Candle coloring
Optional candle coloring reinforces regime context:
Bullish regimes tint candles toward the bullish color.
Bearish regimes tint candles toward the bearish color.
Neutral states remain visually muted.
This allows the chart to communicate trend state even when the envelope itself is partially hidden or de-emphasized.
Alerts
Built-in alerts are provided for key trend events:
Bull trend start.
Bear trend start.
Transition from trend to neutral.
Price crossing the trend spine.
These alerts support hands-off trend monitoring across multiple instruments and timeframes.
How to use it for trend following
Trend identification
Only trade in the direction of the active regime.
Ignore counter-trend signals during confirmed trends.
Entry alignment
Use the first regime signal as a structural entry.
Use pullbacks toward the active trend line as continuation opportunities.
Trend management
As long as price respects the active envelope boundary, the trend remains valid.
A move back through the spine signals loss of trend structure.
Market filtering
Periods where the indicator remains neutral highlight non-trending environments.
This helps avoid forcing trades during chop or compression.
Adaptive Trend Envelope is designed to behave like a living trend structure. Instead of forcing price into static rules, it adapts to volatility, confirms direction through sustained pressure, and presents trend information in a clean, readable form that supports disciplined trend-following workflows.
Institutional Intermarket Score PRO V3.3 (Presets)This indicator is built on an unusual, non-traditional intermarket concept and is designed to provide market context rather than trading signals.
Institutional Intermarket Score – Indicator Description
Overview
The Institutional Intermarket Score is a contextual market indicator designed to provide a macro and intermarket perspective on the current market environment.
It aggregates information from multiple user-selected correlated and inversely correlated assets to determine whether the broader market context favors risk-on, risk-off, or neutral conditions.
This indicator is not a buy or sell signal.
It does not attempt to predict short-term price movements, entries, or exits.
Its sole purpose is to help the trader understand the broader market context before making any trading decisions.
Core Concept
Markets do not move in isolation.
Institutional participants continuously monitor multiple related markets to assess risk, liquidity, and conviction before deploying capital.
This indicator replicates that process by:
Monitoring several correlated assets (assets that tend to move in the same direction)
Monitoring several inversely correlated assets (assets that typically move in the opposite direction)
Combining their behavior into a single, normalized intermarket score
The result is a context filter, not a trading system.
Asset Groups
The indicator supports up to:
5 correlated assets
5 inversely correlated assets
All assets are fully configurable by the user and can be enabled or disabled individually.
Only active assets are included in all calculations.
Market State Evaluation
Each asset is evaluated using a Price vs VWAP relationship:
Price above VWAP → bullish state
Price below VWAP → bearish state
This binary state is used consistently across all assets to maintain clarity and robustness.
Intermarket Score
----------------------
The Intermarket Score represents the average directional alignment of all active assets and is normalized between -1 and +1.
Positive values indicate a risk-on environment
Negative values indicate a risk-off environment
Values near zero indicate balance, rotation, or uncertainty
The score is smoothed to reduce noise and highlight regime persistence rather than short-term fluctuations.
Confirmation Metric (X / Y)
----------------------------------
In addition to the score, the indicator calculates a confirmation ratio:
Y = total number of active assets
X = number of assets aligned with the current regime
Alignment is evaluated relative to the current regime:
In bullish regimes, assets above VWAP confirm
In bearish regimes, assets below VWAP confirm
This metric reflects the quality and conviction of the intermarket consensus.
High confirmation indicates broad agreement across markets.
Low confirmation indicates divergence, uncertainty, or fragile conditions.
Heatmap
-----------
A compact heatmap visually displays the state of each individual asset:
Green indicates alignment with the regime
Red indicates opposition
Neutral indicates inactive assets
This allows immediate identification of:
Which markets are confirming
Which markets are diverging
Whether consensus is broad or fragmented
Intended Use
----------------
This indicator is designed to be used:
Before evaluating trade setups
As a filter, not a trigger
In combination with price action, structure, and risk management
Typical applications include:
Avoiding trades against the broader market context
Distinguishing strong trends from fragile moves
Identifying periods of institutional alignment or hesitation
What This Indicator Is Not
It is not a buy or sell indicator
It does not provide entry or exit signals
It does not predict price direction on its own
It does not guarantee profitable trades
Any trading decisions remain entirely the responsibility of the user.
Summary
The Institutional Intermarket Score provides a high-level market image based on assets selected by the user.
It reflects context, alignment, and conviction, not timing.
Used correctly, it helps traders avoid low-quality trades, understand when markets are aligned or fragmented, and make decisions with greater awareness of the broader environment.
It is a decision support tool, not a trading system.
This indicator, is still evolving and its structure will continue to develop as new insights are tested...
OBV 3 MA Delta V2 + VWOBV Momentum
OBV 3 MA Delta – Adaptive OBV for Different Market Structures
Most traders use traditional OBV as a universal tool across all markets.
However, after extensive testing, I realized this assumption is fundamentally flawed.
👉 Each market has a different relationship between price and volume.
Crypto, equities, indices, and futures do NOT distribute volume the same way.
________________________________________
The Core Problem with Traditional OBV
Classic OBV relies on a binary logic:
• If price closes up → add full volume
• If price closes down → subtract full volume
This works reasonably well in some markets, but fails in others:
• In Crypto (BTC, ETH) → strong volatility, momentum-driven volume
• In Equity Indices (S&P 500) → smoother trends, institutional volume absorption
As a result:
• OBV can lag,
• miss early divergences,
• or completely flatten important volume signals.
________________________________________
What This Indicator Does Differently
This indicator introduces multiple OBV calculation modes, allowing OBV to adapt to the market structure instead of forcing one formula everywhere.
Calculation Modes Included
OBV Close
Uses price change × price level × volume
→ More sensitive to real price effort, especially effective for crypto markets
OBV Standard
Classic OBV logic
→ Kept for comparison and backward compatibility
VWOBV % (Volume-Weighted OBV by % Price Change)
Volume is weighted by percentage price movement, not just direction
→ Excellent for indices and large-cap markets
VWOBV Momentum
Measures volume-weighted price acceleration, not just accumulation
→ Highlights hidden institutional momentum that standard OBV often misses
________________________________________
BTC vs S&P 500 — Why One OBV Is Not Enough
Bitcoin (BTCUSDT)
Using OBV Close, bearish divergence appears early and clearly, well before price breaks down.
Traditional OBV also shows divergence, but later and weaker.
S&P 500
With classic OBV, divergence is shallow and often unclear.
However, when switching to VWOBV % or VWOBV Momentum,
the divergence becomes deep, structured, and visually obvious.
👉 Same indicator, same settings — different market, different behavior.
This clearly demonstrates:
OBV must adapt to the market, not the other way around.
________________________________________
Additional Features
• Optional Heikin Ashi smoothing (auto-disabled on higher timeframes)
• Flexible reset modes (daily, weekly, monthly, custom bars, specific date)
• 3 Moving Averages on OBV for structure & trend confirmation
• Clean visuals, minimal clutter
• Designed for comparison & experimentation, not black-box signals
________________________________________
Final Thoughts
This indicator is not claiming one OBV formula is “the best”.
Instead, it provides a framework:
• Test how price and volume interact in your market
• Choose the OBV model that reflects that behavior
• Use divergences as context, not blind signals
Enjoy and happy trading!
DISCLAIMER
This script is intended for informational and educational purposes only. It does not constitute financial, investment, or trading advice. All trading decisions made based on its output are solely the responsibility of the user
M.KHOA
Supertrend, by ParagonSignalsThis indicator implements a trend-following overlay with flow-conditioned preprocessing, regime conditioning, and explicit signal lifecycle governance.
Input engineering (flow-conditioned baseline):It replaces raw price with an engineered baseline designed to capture effective directionality modulated by relative participation.
The internal signal is kept robust and stable via robust scaling, outlier clipping, and a finite-memory integrator to mitigate structural drift.
Trend engine (SuperTrend on engineered series): It computes SuperTrend on the engineered baseline, shifting the trend logic from pure price to a more stable representation of directional pressure and reducing sensitivity to single-bar noise.
Regime conditioning: It estimates a continuous tradeability index (0–1) combining directional efficiency, relative volatility expansion, and return-sign stability.
This index governs the system’s aggressiveness.
Signal governance (stateful execution proxy): It maintains a discrete LONG/SHORT/FLAT state with dynamic TTL, cooldown, persistence-gated flips, and degradation-based exits—enforcing hysteresis and exposure control in adverse regimes.
Relative to a classic SuperTrend (fixed parameters and binary logic), this design adds context awareness, signal quality gating, and lifecycle management, with the intent of reducing whipsaw and formalizing entry/exit behavior under uncertainty.
Hope you enjoy this SuperTrend—consider it a free, research-oriented release.
The methodology reflects professional quant practice—robust preprocessing, regime conditioning, and signal governance—features typically reserved for paid toolkits.
Research-grade release, provided as-is: no edge promised, no warranty, no liability — validate statistically and manage risk accordingly.
Disclaimer: This indicator is for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy, sell, or trade any asset. Trading involves risk and you may lose part or all of your capital. You are solely responsible for your decisions.
Precision Structure Pro [BOSWaves]Precision Structure Pro - Multi-Tier Market Structure Execution with HTF Trend Alignment
Overview
Precision Structure Pro is a market analysis system designed to provide traders with structural understanding of price action. The system operates on the principle that markets follow observable patterns that can be systematically identified and interpreted. Precision Structure Pro combines adaptive indicators, dynamic visualizations, and customizable alerts to support both trend-following and contrarian strategies. Each feature translates technical concepts into actionable, on-chart insights, allowing traders to make informed decisions without information overload. The system emphasizes clarity, precision, and adaptability, enabling users to interpret market behavior in real time with risk-aware, disciplined trading practices.
Structural Analysis Engine
At the core of Precision Structure Pro lies the Structural Analysis Engine, a sophisticated framework designed to detect meaningful shifts in market structure with minimal lag and maximum reliability. Traditional swing-based systems merely connect price highs and lows, often generating false signals during periods of noise or minor retracement. Precision Structure Pro's engine goes deeper, analyzing market momentum, volatility, and price clusters to distinguish between genuine structural breaks and minor fluctuations.
The engine employs a configurable lookback period ranging from 5 to 50 bars, allowing traders to calibrate sensitivity based on their preferred timeframe and trading style. Shorter periods produce more frequent signals suitable for scalping and intraday trading, while longer periods generate fewer but more significant structural markers ideal for swing and position trading. This adaptability ensures the system remains relevant across all trading methodologies.
Break of Structure (BOS) Detection
Break of Structure (BOS) signals are provided whenever price decisively moves beyond a previous swing high or low, highlighting potential continuation setups. The system offers two confirmation methodologies: body-based confirmation, which requires candle closes beyond structural levels for conservative validation, and wick-based confirmation, which triggers on price touches for more aggressive entry opportunities. This dual-option approach allows traders to align the tool's sensitivity with their risk tolerance and market conditions.
Use Case 1: Trend Continuation Trading
A trader identifies a pullback within an established uptrend. The dashboard confirms higher timeframe alignment remains bullish despite the short-term retracement. When price breaks back above the pullback structure, the system generates a BOS signal and activates the trade dashboard with entry, stop-loss, and three profit targets. As targets are hit sequentially, the trader takes partial profits while trailing the remainder, combining systematic risk management with the flexibility to capture extended moves.
Change of Character (CHoCH) Recognition
Change of Character (CHoCH) alerts indicate early reversal opportunities, marking the transition from trending to counter-trend behavior before it becomes evident to the naked eye. CHoCH signals emerge when price breaks a structural level counter to the established trend direction, providing advance warning of potential trend exhaustion or reversal. These signals are particularly valuable for identifying market turning points that precede traditional reversal indicators, offering traders strategic positioning advantages for both exits and counter-trend entries.
By combining BOS and CHoCH signals, traders can identify both continuation and reversal scenarios, enabling them to adapt strategies to shifting market conditions without relying solely on lagging indicators. The engine maintains a persistent memory of structural levels, tracking which pivots remain relevant and which have been invalidated by price action, ensuring that only significant structural events generate signals while noise is systematically filtered.
Use Case 2: Counter-Trend Reversal Trading
During an established trend, price breaks structure in the opposite direction, triggering a CHoCH signal. The candles begin changing color to reflect the structural shift. However, the dashboard shows the higher timeframe remains in the original trend direction, alerting the trader to timeframe conflict. This prompts tighter profit management focused on early targets rather than extended holds, as the setup represents a counter-trend opportunity requiring tactical rather than strategic positioning.
Multi-Timeframe Integration
Multi-timeframe integration within the Structural Analysis Engine provides an additional layer of context that dramatically enhances signal reliability. For instance, a BOS signal on a lower timeframe gains significantly more weight when aligned with the trend observed on a higher timeframe. This hierarchical approach allows traders to confirm signals against broader market trends, reducing exposure to false breakouts and enhancing confidence in entries and exits.
The system continuously monitors a user-selected higher timeframe - configurable to any interval from minutes to weekly charts - and compares its structural trend against current timeframe signals. When lower timeframe BOS or CHoCH events align with higher timeframe directional bias, the system validates these as premium opportunities. The on-chart dashboard displays real-time higher timeframe trend status, showing whether the broader context is bullish, bearish, or neutral, providing traders with instant situational awareness without requiring manual chart switching.
Hierarchical Confirmation and Filtering
Traders can enable higher timeframe alignment requirements, which filters out signals that conflict with the dominant trend on larger timeframes. This filtering mechanism significantly reduces false signals during counter-trend noise while preserving high-probability setups that ride institutional momentum. The result is a trading system that respects market hierarchy, acknowledging that larger timeframe structures exert gravitational influence on smaller timeframe movements, and positioning traders on the right side of dominant flows.
The engine is designed to be highly adaptive, factoring in price volatility and recent momentum to filter out noise while emphasizing meaningful structural changes. The result is a system that not only identifies key market turning points but does so in a way that is sensitive to context, volatility, and timeframe alignment, creating a comprehensive structural narrative that evolves with market conditions.
Volatility-Adaptive Stop-Loss Calculation
Managing risk is as important as identifying opportunities, and Precision Structure Pro addresses this through its Volatility-Adaptive Trade Management system. Unlike static stop-loss levels that fail to account for changing market conditions, this system calculates dynamic stop-loss points based on volatility measurements and market structure. The system employs an analysis window that captures current market movement characteristics and serves as the foundation for all risk calculations.
The system employs a multi-layered calculation methodology. First, it establishes a base distance by applying a user-configurable volatility multiplier (0.5 - 5.0x, default 2.0x) to the measured market volatility. This base distance is then scaled by a stop-loss multiplier (0.1-5.0R, default 1.2R) to determine final stop placement. In high-volatility environments - such as during major news events or market opens - stops are adjusted wider to avoid premature exits from normal price oscillation, while in calm, low-volatility periods, stops tighten to prevent unnecessary exposure and improve capital efficiency.
Tiered Take-Profit System
Take-profit levels are tiered into three distinct targets, each calculated as a ratio of the stop-loss distance. The first target typically sits at 0.8R (80% of the risk distance), providing a conservative profit-taking opportunity that's frequently achieved. The second target extends to 1.6R, capturing intermediate moves while maintaining realistic probability. The third target reaches for 2.8R or beyond, designed to capture extended trend moves and maximize profit potential when momentum continues. These ratios are fully customizable, allowing traders to adapt the system to their profit-taking preferences and market characteristics.
This tiered approach enables traders to lock in profits progressively, reducing psychological pressure while allowing portions of positions to capture larger moves. Traders can take partial profits at early targets and move stops to breakeven to create risk-free positions, while letting remaining size run toward final targets or trailing stops. This partial exit strategy dramatically improves trading psychology by removing the binary pressure of all-or-nothing exits, while maintaining exposure to extended moves that generate outsized returns.
Visual Trade Mapping
Visual representations of dynamic levels are overlaid on the chart with sophisticated rendering techniques. Each level features a multi-layer glow effect - a translucent outer layer for ambient visibility, a semi-transparent middle layer for depth, and a solid core line marking precise price levels. Entry levels appear in bright white, stop-loss zones in vibrant red with danger shading, and take-profit levels in neon green with success-themed styling. Risk and reward zones are represented by translucent boxes that span from entry to stop (risk) and entry to final target (reward), providing immediate visual assessment of trade quality without manual calculation.
Dynamic Status Labels
Labels accompany each level, displaying precise price values and status indicators. Take-profit labels show "PENDING" status until price reaches them, at which point they dynamically update to "HIT" with altered styling to celebrate achievement. Stop-loss labels remain prominent throughout the trade, maintaining awareness of maximum risk. This comprehensive visual mapping ensures traders understand trade structure at a glance, facilitating faster decision-making and reducing cognitive load during active trading sessions.
Intelligent Position Sizing Calculator
Position sizing translates risk percentage into actual trade size. Precision Structure Pro includes a position sizing calculator that performs this computation automatically, eliminating manual calculation errors that can lead to over-leverage or inefficient capital utilization.
The calculator employs a standardized formula that works across all asset classes: Position Size equals Account Size multiplied by Risk Percentage, divided by Stop Distance. This calculation automatically accounts for varying instrument characteristics - whether trading cryptocurrencies with multiple decimal places, forex pairs with pip-based measurements, stocks with dollar-based stops, or futures with point-based movements.
Position Sizing Configuration
Traders configure two key parameters: total account size (their available trading capital) and risk percentage per trade (typically 1-2% for conservative risk management). When a trade signal generates, the system instantly calculates the exact number of units, shares, contracts, or coins to trade based on the automatically-determined stop distance. This calculation appears directly in the on-chart dashboard, displaying both the dollar amount at risk and the precise position size.
This functionality ensures consistent risk across all trades - whether stop distance is narrow or wide, position size adjusts to maintain identical dollar risk. It eliminates execution delays caused by manual calculation and prevents common position sizing errors that plague discretionary traders. The position sizing display can be toggled on or off based on user preference.
On-Chart Dashboard Overview
Information overload impairs decision-making, particularly during fast-moving market conditions. Precision Structure Pro's on-chart dashboard consolidates critical market information into a single, scannable interface that provides situational awareness without requiring navigation between multiple indicators or charts.
The dashboard features a hierarchical information architecture designed for rapid comprehension. At the top, a bold status header announces trade state - LONG ACTIVE or SHORT ACTIVE - with color-coded backgrounds matching trade direction. This visual confirmation prevents confusion about current exposure, particularly when managing multiple positions across different instruments.
Dashboard Components
The higher timeframe status section displays the broader market context, showing whether the selected higher timeframe is BULLISH, BEARISH, or NEUTRAL with corresponding color coding. This provides instant confirmation that current trade direction aligns with dominant market structure, or warns when taking counter-trend positions that require tighter management.
The core metrics section presents trade fundamentals in clean, organized rows: direction confirmation, precise entry price, stop-loss level with distance percentage, and three take-profit targets each showing status (PENDING or HIT), price level, and percentage gain from entry. Visual separators organize these sections, creating clear information boundaries that facilitate quick scanning during time-sensitive decisions.
When position sizing display is enabled, the bottom section shows calculated risk amount in dollars and exact position size in trading units. This eliminates the cognitive step of mental calculation, allowing traders to execute positions immediately with confidence in their risk management.
Dashboard Customization
The dashboard supports four positioning options - top-right, top-left, bottom-right, or bottom-left - allowing traders to anchor it in their preferred location based on personal workflow and chart layout. Importantly, the dashboard only appears when an active trade exists, preventing chart clutter during pure analysis phases when no positions are held. This adaptive visibility ensures the interface remains clean and focused, presenting information only when relevant.
Dynamic Candle Coloring
Technical precision means little if the information isn't immediately digestible. Precision Structure Pro employs sophisticated visualization techniques to transform complex structural data into intuitive visual language that communicates market state at a glance.
The system implements dynamic candle coloring that reflects current structural trend. When market structure is bullish - characterized by BOS signals breaking upward - candles render in cyan tones, creating a visual flow that reinforces upward momentum. When structure turns bearish, candles shift to magenta, immediately communicating downward pressure. During transitional or consolidative periods when structure is unclear, candles display in neutral gray, signaling caution and the absence of clear directional bias. This color-coded system allows traders to interpret market character without analyzing individual price bars, dramatically accelerating pattern recognition.
Structural Level Visualization
Structural break events are marked with multi-layered horizontal lines that employ sophisticated rendering techniques. Each structural level features three layers: a wide, highly transparent outer glow creating ambient visibility, a medium-width semi-transparent middle layer adding dimensional depth, and a solid, precise core line marking the exact price level. This gradient effect makes critical levels stand out prominently even on cluttered charts, while maintaining visual elegance and professional aesthetics.
Professional Label System
Labels accompany each structural event with clean, professional text. BOS events are marked simply as "BOS," while CHoCH events receive distinctive "CHoCH" labeling. These labels are positioned intelligently using volatility-based offsets - appearing above price highs for bearish breaks and below price lows for bullish breaks - ensuring they float in whitespace rather than obscuring candles or overlapping with price action. The system limits the number of simultaneously visible labels (configurable from 1 - 10, default 3) to prevent chart clutter, automatically removing the oldest labels as new signals emerge.
Signal Alerts
Real-time monitoring of multiple charts across various timeframes is impractical for discretionary traders. Precision Structure Pro's alert system helps traders track critical market events, even when away from their trading stations.
The system provides distinct alerts for each signal type. Bullish and bearish Break of Structure alerts fire when upward or downward BOS events occur, with alert messages including current entry price and ticker symbol for context. Bullish and bearish Change of Character alerts notify traders of potential reversals, providing warning to either exit existing positions or prepare counter-trend entries. A generic "New Trade Signal" alert triggers on any valid BOS or CHoCH event, useful for traders monitoring multiple instruments simultaneously.
Trade Management Alerts
Trade management alerts operate independently from signal alerts. Take Profit 1, 2, and 3 alerts fire when price reaches each respective target level, prompting traders to execute their planned partial exit strategy. The Stop Loss Hit alert provides critical notification when trades fail, enabling rapid response to adverse movements and preventing extended drawdowns from unmonitored positions.
The system incorporates intelligent alert tracking to prevent notification spam. Each alert type fires once per event - when a profit target is hit, for example, the system sends a single notification rather than repeatedly alerting as price fluctuates around the level. Alert states reset when new trade signals generate, ensuring fresh monitoring for each position.
Alert Delivery
Alerts route through TradingView's native alert infrastructure, providing multiple delivery options. Traders can receive pop-up notifications during active monitoring, email alerts for remote tracking, mobile push notifications through the TradingView app. This provides flexibility for traders to remain connected to market developments regardless of their physical location or monitoring capabilities.
Design Philosophy
Precision Structure Pro emphasizes clarity, adaptability, and risk-aware execution. Every feature - from structural analysis to dynamic visualizations and customizable alerts - is intended to provide insight, not guarantees. Markets are inherently uncertain, and no indicator can predict future price movements with certainty. Rather than promoting false confidence, the toolkit is designed to enhance situational awareness, improve pattern recognition, and streamline execution of sound trading strategies.
Traders are encouraged to integrate toolkit outputs with personal judgment, broader market context, and sound risk management principles. The system excels at identifying structural patterns and managing trade logistics, but ultimate decision authority rests with the trader. This approach fosters a disciplined, systematic mindset that prioritizes high-probability setups, multi-timeframe confluence, and methodical execution over reactive, emotion-driven trading.
Trading Psychology Benefits
The progressive profit-taking system embedded in the tiered take-profit structure addresses a critical psychological challenge: the tension between capturing large moves and avoiding profit give-backs. By systematically reducing position size at early targets while maintaining exposure to extended moves, traders experience regular positive reinforcement that reduces emotional stress and prevents premature exits. This psychological framework promotes patience and discipline, allowing traders to let winners run without the paralyzing fear of watching profits disappear.
Similarly, the volatility-adaptive stop-loss system prevents two common psychological traps: using stops that are too tight (leading to death by a thousand cuts from repeated small losses) and using stops that are too wide (resulting in catastrophic losses that damage both capital and confidence). By anchoring stop distance to current volatility, the system ensures stops are neither arbitrary nor divorced from market reality, promoting acceptance of losses as normal cost of business rather than personal failures.
Final Notes
Precision Structure Pro provides a layered, multi-dimensional perspective of the market, helping traders interpret price action with confidence, refine strategies, and improve trade quality over time. Its combination of adaptive signals, visual clarity, and comprehensive dashboarding creates a system that is both functional and intuitive, enabling both novice and experienced traders to operate efficiently in complex markets. The system supports trader judgment by providing the structural foundation upon which trading decisions are built.
Practical Use & Context
Precision Structure Pro performs best in markets exhibiting clear structural formation with meaningful momentum shifts at key levels. In highly compressed or low-liquidity environments where price drifts without conviction, structural signals may be sparse or unreliable. During extended consolidation with minimal directional variance, the system may generate fewer actionable signals as formation events fail to meet validation thresholds.
The system identifies structural breaks and generates complete trade setups including entry levels, stop-loss placement, and tiered profit targets. For optimal results, traders may choose to combine these signals with additional confirmation tools or filters based on their individual trading methodology and risk tolerance.
Risk Disclaimer
Precision Structure Pro is designed for educational and informational purposes only. Past performance does not guarantee future results. Trading involves substantial risk of loss and is not suitable for all investors. Traders should employ proper risk management, never risk more than they can afford to lose, and consider all outputs as advisory information requiring independent verification. All trading decisions should be made with full awareness of market uncertainty and personal risk tolerance. No indicator or system can guarantee profitable trades, and users accept full responsibility for their trading outcomes.
CVD Oscillator ToolkitGENERAL OVERVIEW:
The CVD Oscillator Toolkit is a volume-driven market analysis indicator designed to highlight buying and selling pressure that is not directly visible through price alone. Price shows where the market traded, but volume imbalance helps explain who was in control. This indicator is built around Cumulative Volume Delta (CVD) and its related measurements to separate aggressive buying from aggressive selling, highlight volume behavior that develops independently of price movement, and expose divergence between price action and underlying volume imbalance behavior. Signals are derived from normalized and smoothed volume data rather than simple price-based conditions.
Unlike raw CVD plots, which often drift endlessly and become difficult to interpret across different symbols or sessions, the CVD Oscillator Toolkit normalizes and structures volume data into a stable oscillator format. This allows volume behavior to remain readable and comparable across different market conditions and instruments, without being distorted by session length or cumulative drift.
This indicator was developed by Flux Charts in collaboration with Chris Drysdale (Trader Drysdale), author of the best-selling book VWAP Wave System.
WHAT IS THE THEORY BEHIND THIS INDICATOR?:
The indicator is built on the idea price movement is driven by imbalance, not by candles alone. Every candle represents an interaction between buyers and sellers. While the direction of the candle shows which side gained ground, volume reveals the intensity of that effort.
The CVD Oscillator Toolkit reconstructs this interaction by estimating buying and selling pressure on each bar, accumulating that imbalance over time, and then normalizing the result so volume behavior can be compared meaningfully across different symbols, sessions, and timeframes. This volume behavior is further structured into directional, momentum, and divergence components, allowing buying and selling pressure to be analyzed from multiple perspectives.
Rather than treating volume as a secondary confirmation, the toolkit treats volume delta as the primary source of information, with price acting as a contextual reference. This approach is particularly useful in market conditions where price alone can be misleading. For example, during consolidations where volume pressure may be building beneath the surface, during extensions where price continues to make new highs or lows while buying or selling pressure weakens, or during breakouts that lack sustained volume support.
In many cases, shifts in buying and selling pressure can become visible through volume behavior before the price structure visibly updates. The indicator is designed to surface those changes without attempting to predict outcomes, allowing traders to interpret volume dynamics alongside their own price-based analysis.
CVD OSCILLATOR TOOLKIT FEATURES:
The CVD Oscillator Toolkit indicator includes 10 main features:
Delta Volume & CVD Core Engine
Normalized CVD Oscillator with Adaptive Coloring
CVD Cloud, Edges, Highlight Candles & Bands
Signals
CVD Divergence
Flow Behavior
Rate of Change (ROC) Momentum Meter
Advanced Visualization & Theme System
Input Settings
Alerts
DELTA VOLUME & CVD CORE ENGINE:
This feature forms the foundation of the entire indicator.
🔹Cumulative Volume Delta (CVD):
CVD is a measure of net buying and selling volume over time. It is built by estimating whether each candle’s traded volume was driven primarily by buyers or sellers, and then accumulating that imbalance across consecutive bars. When buy-dominant volume exceeds sell-dominant volume, CVD rises. When sell-dominant volume exceeds buy-dominant volume, CVD falls. Because TradingView does not provide true bid/ask volume data, the indicator infers participation (buyer vs seller activity) using price behavior within each bar. Each candle is evaluated to determine directional intent. Bars that close higher than they open, or otherwise show upward intent, are treated as buy-dominant, while bars that close lower, or show downward intent, are treated as sell-dominant. The candle's volume is then assigned a positive value when buy pressure dominates and a negative value when sell pressure dominates. By accumulating this signed volume, the engine produces a continuous measure of who is applying pressure, independent of candle size or price range. This allows delta volume strength to be analyzed separately from price movement itself. Throughout this indicator, “volume pressure” refers to the net effect of delta volume over time.
🔹How to interpret CVD
When CVD is rising, buying pressure is more aggressive than selling pressure. When CVD is falling, sellers are exerting greater control. Flat or sideways CVD behavior indicates balanced or uncertain buyer vs seller activity, where neither side is clearly dominant. One of the most important insights provided by CVD is its relationship to price. Price can continue rising even while CVD declines, suggesting weakening buying pressure and potential distribution. Conversely, price can fall while CVD rises, indicating absorption (where selling pressure is being met by opposing buy orders, limiting downside progress despite continued activity). These situations often reveal information that price alone does not clearly communicate. For this reason, CVD is especially useful during consolidations, false breakouts, liquidity sweeps, and late-stage trend conditions, where price action may appear convincing while delta volume tells a different story.
🔹Long-term vs short-term Volume calculation modes
The indicator supports two volume perspectives. In long-term accumulation mode, delta volume is accumulated continuously, providing a broader view of sustained buyer and seller control across sessions or trends. In short-term rolling window mode, delta volume is summed over a fixed rolling window to emphasize local momentum and short-term shifts in buying and selling pressure. Together, these modes allow the same core engine to be used for higher-timeframe bias analysis as well as intraday momentum and reversal observation, without changing the underlying logic.
🔹How is it calculated?
Each candle's volume is first evaluated based on price behavior to determine whether it is buy-weighted or sell-weighted. That signed volume is then processed in one of two ways, depending on the selected volume calculation mode. In long-term mode, delta volume is accumulated continuously to reflect a broader market pressure over time. In short-term mode, delta volume is summed over a rolling window to emphasize local momentum and shorter-horizon shifts. The resulting series forms the raw CVD, which is then used for normalization, smoothing, and signal generation. All calculations rely only on confirmed historical bars, ensuring consistency and non-repainting behavior.
🔹Delta Volume Histogram
In addition to the cumulative CVD calculation, the indicator includes an optional Delta Volume Histogram that displays raw buy/sell imbalance on a per-bar basis. This view highlights short-term volume bursts that may not be immediately reflected in cumulative behavior, such as sudden spikes in buying or selling pressure, absorption events, or volume surges that fail to produce meaningful price movement. Because raw delta volume can be noisy and highly sensitive to short-term fluctuations, the histogram is visually muted by default.
NORMALIZED CVD OSCILLATOR:
🔹What is normalization?
Normalization is the process of rescaling data so it can be interpreted consistently over time. In this indicator, normalization transforms accumulated volume delta into a stable oscillator that remains readable across different sessions, symbols, and market conditions.
🔹CVD normalization modes (Adaptive vs Relative)
The accumulated delta is normalized to create a stable, interpretable oscillator. This process reshapes volume pressure so it can be compared consistently over time, without changing how delta volume itself is calculated. In Adaptive mode, normalization responds to recent behavior, allowing the oscillator to self-scale as volatility and market conditions change. This keeps the reading responsive and readable across shifting environments. In Relative mode, normalization compares current CVD against a fixed historical reference, preserving proportional relationships in volume behavior and making extremes easier to compare over longer structural moves.
Normalization affects how CVD is interpreted and visualized, not how delta volume is calculated. In both modes, the same underlying volume logic is used; only the framing and scaling of that data changes.
The CVD Oscillator Toolkit presents normalized volume behavior as a bounded oscillator that preserves directional intent while preventing cumulative drift. Rather than emphasizing the absolute size of volume imbalance, the oscillator focuses on where current buying and selling pressure stands relative to recent behavior. This structure keeps volume pressure interpretable across different market conditions, allowing the oscillator to remain comparable across assets and timeframes.
🔹How to interpret the normalized CVD Oscillator
The oscillator revolves around a central equilibrium level, represented by the zero line. When the oscillator is above zero, net buying pressure dominates. When it is below zero, net selling pressure dominates. Transitions across the zero line indicate a shift in volume control rather than a price-based event. The depth of the oscillator's movement provides additional context. Shallow oscillations reflect weak or hesitant order-flow pressure, while deeper extensions suggest stronger conviction from one side of the market. Periods where the oscillator compresses near the zero line often indicate balance, absorption, or indecision between buyers and sellers. Because the oscillator is smoothed, it emphasizes sustained volume behavior rather than reacting to single-bar fluctuations or short-lived volume spikes.
🔹How is it calculated?
Raw Cumulative Volume Delta is first evaluated over a configurable lookback window to establish recent volume pressure behavior. A momentum-based normalization process is then applied to compress extreme values, preventing the oscillator from drifting or becoming distorted during high-volume periods. To further refine the signal, multiple smoothing passes are used to reduce noise while still preserving meaningful directional turns. The result is a stable oscillator centered around zero, designed to behave consistently across different symbols, sessions, and timeframes. This structure avoids infinite drift, minimizes session bias, and allows volume pressure dynamics to remain comparable across instruments without relying on fixed thresholds.
🔹Adaptive Coloring & Directional Gradients
The oscillator is not plotted as a static line or a simple histogram. Instead, it uses adaptive coloring to communicate both direction and intensity of volume pressure through visual cues. Rather than relying on binary green/red coloring, the indicator applies smooth gradient transitions, strength-weighted opacity, and direction-aware color logic to reflect how volume pressure evolves. This visual design allows changes in volume behavior, such as acceleration, deceleration, or momentum fatigue, to be identified quickly without requiring precise numerical interpretation. Color intensity increases as pressure strengthens and fades as pressure weakens, helping maintain situational awareness even during fast-moving conditions.
🔹How to interpret the coloring
The oscillator uses momentum-based coloring to reflect changes in volume pressure strength and direction. Colors respond to acceleration and deceleration in volume pressure rather than simple position alone. Brighter, more saturated colors indicate stronger momentum and expanding buying or selling pressure, while muted or fading colors reflect slowing momentum and weakening pressure. The coloring does not generate signals and should be read as visual context that complements the oscillator’s structure, helping identify momentum shifts, continuation, and exhaustion at a glance.
CVD EDGES, CLOUDS & HIGHLIGHT CANDLES:
🔹CVD Edges
This feature adds a thin directional outline around the oscillator body, designed to emphasize the current directional volume bias without overpowering the main visual structure. The edge acts as a subtle visual guide, reinforcing directional dominance while keeping the focus on the oscillator itself. By separating the outline from the oscillator's fill or columns, CVD Edges make directional bias easier to identify at a glance, particularly in situations where histogram columns overlap or visual density increases. This feature is intended to enhance readability and orientation, not to introduce additional signals or conditions.
🔹CVD Clouds
CVD Clouds add a soft envelope above and below the oscillator to provide visual context around volume behavior. These clouds represent upper and lower volume pressure zones derived from the oscillator, helping frame how volume pressure expands or contracts around the core signal. When the cloud expands, it reflects increasing volume commitment and stronger involvement from one side of the market. When the cloud compresses, it indicates diminishing conviction and reduced pressure intensity. A flip in the cloud structure reflects a change in volume control rather than a price-based event. CVD Clouds are designed to provide context, not signals. They help answer a simple but important question: Is the current move supported by volume effort, or is pressure fading beneath the surface?
🔹Highlight Candles
Instead of rendering the oscillator as a simple line or histogram, this feature displays it using candle-style bodies. Each oscillator candle visually represents the underlying volume behavior, conveying direction, strength, and momentum continuity in a format that closely resembles price action. Larger candle bodies indicate stronger and more sustained volume pressure, while smaller bodies reflect indecision, balance, or transitional phases. Sequences of candles with consistent coloring help visualize directional continuity in pressure flow, making it easier to distinguish persistent pressure from short-lived fluctuations.
🔹Upper / Lower Bands
The Upper and Lower Bands are simple visual background guides drawn above and below the oscillator. They do not generate signals, thresholds, or analytical conditions. Their only purpose is to make the current CVD state easier to read at a glance. When the oscillator is above zero, the upper band is highlighted to reflect bullish volume pressure. When it is below zero, the lower band is highlighted to reflect bearish volume pressure. The inactive side remains muted. These bands do not represent overbought or oversold conditions and should not be used for entries or exits. They exist purely to improve orientation and reduce visual effort when reading the oscillator.
SIGNALS:
The indicator includes an optional signal system designed to respond to changes in volume pressure, rather than relying solely on price-based conditions such as moving-average crossovers. Signals are generated based on defined CVD behavior and volume flow logic, allowing volume dynamics to be evaluated directly instead of inferred from price alone. Signals can be displayed directly within the oscillator pane, overlaid on the main price chart, or shown in both locations simultaneously. In this indicator, directional momentum refers to the direction and slope of the normalized CVD oscillator itself, not price momentum. A change in directional momentum occurs when the CVD oscillator shifts from rising to falling, or from falling to rising.
🔹Signal modes
The indicator supports two independent signal philosophies, selectable by the user. Each mode interprets volume pressure changes differently and is suited to different market conditions.
◇ Zero-Line State Shifts
In this mode, signals are generated when the normalized CVD oscillator crosses its central equilibrium level. A cross above the zero line represents a transition from net selling pressure to net buying pressure, while a cross below zero represents a transition from net buying pressure to net selling pressure. From an interpretive standpoint, a bullish signal indicates that buying volume pressure has become dominant, while a bearish signal indicates that selling volume pressure has taken control. These signals are most useful during transitions in market behavior, such as when markets move from consolidation into expansion or when price structure begins to compress ahead of a directional move. Rather than reacting to price structure alone, this mode highlights shifts in buying and selling pressure derived directly from volume behavior
◇ Directional Momentum & Thresholds
Instead of waiting for the CVD oscillator to cross the zero line, this mode generates signals when there is a switch in directional momentum. A directional switch occurs when the CVD oscillator’s momentum has been moving in one direction and then turns to move in the opposite direction. Every signal in this mode begins with a confirmed change in direction. Because directional momentum can flip frequently, especially during ranging or low-conviction conditions, this mode incorporates user-defined thresholds to control which direction changes are allowed to generate signals. The thresholds act as a filter, ensuring that only momentum reversals occurring from a sufficient depth are considered, while shallow or minor flips are ignored.
🔹How it works:
For a bullish signal to be generated, two conditions must be met. First, the CVD oscillator must be below the user-defined bullish threshold. Second, directional momentum must switch from downward to upward. Only when both conditions occur together is a bullish signal produced. If momentum turns upward while the oscillator is above the bullish threshold, no signal is generated. The same logic applies on the bearish side. A bearish signal requires the oscillator to be above the bearish threshold and directional momentum to switch from upward to downward. Momentum reversals that occur closer to equilibrium are filtered out.
🔹How to interpret signals
A bullish signal below zero indicates that directional momentum has switched from bearish to bullish and that the reversal occurred below the bullish threshold. A bearish signal above zero indicates that directional momentum has switched from bullish to bearish and that the reversal occurred above the bearish threshold. In both cases, the signal simply means that direction changed and the threshold filter was satisfied. The mode does not attempt to predict outcomes or replace price-based confirmation, but instead highlights filtered momentum shifts in volume behavior.
CVD DIVERGENCE:
The divergence detection feature identifies situations where price continues to push toward new extremes while volume pressure weakens or moves in the opposite direction. This behavior often reflects absorption, distribution, or exhaustion that is not immediately obvious from price action alone.
🔹Types of divergences
Bearish divergence occurs when the price pushes higher, but CVD fails to confirm the move or forms a lower high, indicating weakening buying pressure behind the advance. Bullish divergence occurs when price pushes lower while CVD fails to confirm or forms a higher low, suggesting that selling pressure is losing strength. Divergences are evaluated only near meaningful swing points and after confirmation. This filtering helps reduce noise and avoids highlighting minor or premature divergence conditions.
🔹How to interpret divergences
Divergences can indicate that momentum may be weakening, control between buyers and sellers may be shifting, or that the risk–reward profile of the current move is changing. Divergences provide insight into underlying volume behavior but do not replace confirmation from price.
🔹Swing reference source
The indicator allows divergence detection to be anchored to either volume structure (CVD swings) or price structure (price swings). This distinction matters because CVD and price often pivot at different times. Anchoring divergences to the wrong structure can produce misleading results. By allowing the user to choose the reference source, the divergence system adapts more effectively to trending conditions, mean-reverting environments, and periods of elevated volatility.
🔹How divergences are calculated
The indicator identifies significant swing points and compares the relationship between price behavior and CVD behavior at those locations. Divergence conditions are validated before being displayed, and only confirmed divergences are plotted. To prevent clutter, only the most recent divergences are shown on the chart. Older divergence markings are automatically removed as new ones form.
🔹Main chart synchronization
The indicator allows divergences and signals to be displayed either within the oscillator pane or directly on the main price chart. Using the oscillator-only view is well-suited for volume behavior analysis and directional bias, while displaying signals and divergences on the main chart provides a clearer execution context alongside price structure. This ensures that volume insights can be adapted to different workflows without changing the underlying logic.
FLOW BEHAVIOR:
This feature group highlights situations where price behavior and CVD behavior begin to separate, without relying on traditional swing-point divergence logic.
🔹Absorption
Absorption highlights candles where price continues to advance or decline while CVD pressure moves against that direction. In simple terms, absorption reflects situations where aggressive buying or selling is being met and absorbed by opposing volume, preventing volume pressure from confirming the price move.
This behavior often appears:
During late-stage trends
Near range boundaries
Around liquidity-driven extensions
Absorption highlights do not predict reversals. They provide context when volume pressure is no longer aligned with price movement. Absorption is identified through disagreement between price progression and CVD behavior, not by raw volume spikes alone.
🔹Directional Divergence
Directional Divergence identifies moments where price continues to extend in one direction while CVD momentum shifts or weakens in the opposite direction. Unlike classic divergence tools, this behavior does not require confirmed swing highs or lows. It focuses purely on directional disagreement between price and volume pressure, allowing early detection of weakening moves or hidden opposition beneath continued price expansion. Directional Divergence focuses on ongoing disagreement without swing confirmation, while CVD Divergence evaluates confirmed swing-based divergence.
🔹Directional Anchor Price
An optional directional anchor line can be plotted to mark the price level at the bar where CVD last changed direction. This level serves as a visual reference, allowing traders to observe how the price behaves after a shift in the underlying CVD direction, without introducing new signals or conditions. These tools are designed to complement the core oscillator by visually exposing price–volume disagreement.
RATE OF CHANGE (ROC) MOMENTUM METER:
The Rate of Change (ROC) Momentum Meter measures how quickly the CVD oscillator itself is accelerating or decelerating. While the oscillator describes directional volume pressure, the ROC Meter focuses on a different dimension: whether volume pressure is gaining speed or losing momentum. This distinction is important because directional pressure and momentum strength do not always change at the same time. Trends can lose momentum without immediately reversing direction, and volume shifts often begin with changes in acceleration rather than visible price structure breaks. The ROC Meter is designed to surface those changes in volume momentum without replacing the oscillator's directional context.
🔹How to interpret the ROC Meter
The ROC Meter is displayed as a vertical gradient bar positioned alongside the oscillator pane. It is intentionally placed in the periphery to provide continuous momentum awareness without interfering with price action or the oscillator itself. A dynamic label marks the current ROC position, allowing quick reference without drawing focus away from the main analysis. When the ROC reading is positioned higher on the meter, volume acceleration is stronger. When it is positioned lower, acceleration is weaker. Readings near the center indicate balanced conditions. Sustained high ROC readings often accompany strong trends, reflecting continued acceleration in volume pressure. As momentum fades, ROC readings contract, indicating slowing acceleration even if directional pressure has not yet reversed.
🔹How ROC is calculated
The oscillator's rate of change is measured over a short lookback period and then normalized to prevent extreme spikes. The resulting values are mapped to a bounded vertical scale, ensuring the meter remains stable, comparable across assets, and resistant to distortion during periods of elevated volatility.
COLOR THEMES & VISUAL ADAPTABILITY:
The indicator includes multiple built-in color themes. Themes can be adjusted to suit dark or light chart backgrounds, varying screen brightness levels, and long trading sessions where visual comfort becomes important. Each theme affects key visual elements such as bullish and bearish colors, gradient intensity, cloud opacity, and overall contrast.
Users can choose between the following color themes:
Default
Bright
Sunset
Aqua
🔹MODULAR VISUAL CONTROLS
Every major visual component of the indicator can be enabled or disabled independently, allowing users to tailor the display to their preferred workflow and level of detail. This includes elements such as the delta histogram, oscillator columns, highlight candles, edges, clouds, upper / lower bands, the ROC Momentum Meter, and threshold reference lines.
INPUTS:
🔹CVD Normalization Mode
Selects how CVD is normalized into the oscillator: Adaptive adjusts dynamically to recent behavior, while Relative emphasizes volume pressure relative to recent extremes.
🔹Volume Calculation
Long-term mode accumulates volume pressure continuously for broader bias and structure.
Short-term mode uses a rolling window to emphasize local momentum and intraday shifts.
🔹 Delta Volume Display
The Delta Volume Histogram toggles the display of per-bar buy and sell imbalance to provide more granular insight into short-term volume behavior. Bullish and bearish delta colors can be customized to improve visibility and contrast based on personal preference or chart theme.
🔹 CVD Oscillator Display
These settings control how the normalized CVD oscillator is displayed. CVD Columns enable or disable the main oscillator body, while Adaptive Coloring automatically adjusts colors based on direction and volume strength. Color Themes provide preset visual styles designed for different lighting conditions and extended viewing sessions.
🔹 Visual Enhancements
◇ CVD Highlight Candles
Displays oscillator movement using candle-style bodies for intuitive reading.
◇ CVD Edges
Thin outlines that emphasize directional volume bias.
◇ CVD Cloud
Shows volume envelopes and expansion or contraction in volume pressure.
◇ Upper / Lower Bands
Provides directional background context relative to equilibrium.
🔹 Rate of Change (ROC) Meter
The ROC Meter toggle enables the vertical ROC Momentum Meter, and the ROC Color option allows users to select the meter’s color to suit visibility and chart contrast.
🔹 Flow Behavior
Controls visual cues that highlight price and CVD behavior when direction and volume pressure begin to diverge.
◇ Highlight Absorption Candles
Marks candles where price continues to move while CVD pressure shifts in the opposite direction, indicating potential absorption of aggressive buying or selling.
◇ Main Chart
Displays absorption highlights directly on the main price chart for execution-focused workflows.
◇ Directional Divergence
Highlights directional disagreement between price movement and CVD momentum without requiring traditional swing-point divergence.
🔹 Divergences
Controls divergence detection and display.
◇ Enable Divergences
Master toggle for all divergence logic.
◇ Display Location
Divergences can be shown in the oscillator pane, on the main chart, or both.
◇ Swing Reference Source
Anchor divergence detection to either CVD structure or price structure.
◇ Swing Length
Adjusts divergence sensitivity. Shorter lengths increase frequency and noise, while longer lengths produce fewer, more selective divergences.
◇ Plot Directional Anchor Price
Plots the price level where CVD last changed direction, providing a visual reference to observe how price behaves after a CVD directional shift.
🔹 Signals
Controls signal generation and display.
◇ Enable Signals
Turns signal logic on or off.
◇ Signal Display Location
Signals can be shown in the oscillator pane, on the main price chart, or both.
◇ Signal Logic Mode
Choose between zero-line state shifts or directional momentum thresholds.
◇ Threshold Visibility
Optional dashed reference levels for transparency when using threshold-based signals.
ALERTS:
The CVD Oscillator Toolkit includes full alert functionality using AnyAlert(), allowing users to receive notifications in real time for all major model components and signal events.
Users can enable or disable each alert type in the “Alerts” section of the settings. After selecting which alerts they want active, they can create a single TradingView alert using the AnyAlert() condition. All alerts are triggered only after confirmation, not on provisional or forming conditions.
Available Alerts:
Bullish Crossover
Bearish Crossover
Bullish Divergence
Bearish Divergence
How to Receive Alerts:
Open the TradingView alert creation window.
Select the CVD Oscillator Toolkit indicator as the alert condition.
Choose AnyAlert() from the condition dropdown.
Create the alert.
UNIQUENESS:
The CVD Oscillator Toolkit focuses on identifying volume-driven behavior rather than simply plotting cumulative volume. In addition to normalized CVD, it highlights absorption candles, directional divergences, directional anchor price levels, and a Rate of Change (ROC) momentum meter that tracks acceleration and deceleration in volume pressure. Together, these components expose situations where price continues in one direction while volume pressure weakens, stalls, or reverses beneath the surface. The toolkit emphasizes interpretation over signal quantity, structuring volume behavior into momentum, divergence, and flow-based components that complement price analysis without attempting to replace it.
HoneG_Mid-Term Tick Counter-Trend v4HoneG_Mid-Term Tick Counter-Trend v4
This is a counter-trend signal tool for binary options.
Place it on a 1-minute or 5-minute chart.
Most of the time, a preliminary alert like ‘High - Ready’ (‘Low - Ready’) will appear, but do not enter at this point.
When the entry conditions are met, you will receive an entry alert with the following text:
‘High - Mid-Term Tick Entry’ (‘Low - Mid-Term Tick Entry’)
Enter immediately upon receiving the entry alert.
At this time, either ▲ or ▼ will appear on the chart, though it may occasionally disappear mid-alert.
Even if ▲ or ▼ vanishes, proceed with the entry if the alert log and chart pattern indicate it's viable.
Recommended entry duration is mid-term high/low, meaning 4 to 9 minutes.
For cryptocurrencies, use 5-minute charts since high/low options are unavailable.
HoneG_中期Tick逆張りv4
バイナリーオプションの逆張り用サインツールです
1分足または5分足チャートに入れてください。
大抵は事前に、『ハイ・準備』(『ロー・準備』)
というような予告アラートが出ますが、この時点ではエントリーしないで下さい。
エントリー条件が揃ったら、下記文言のエントリーアラートが届きます。
『ハイ・中期ティックエントリー』(『ロー・中期ティックエントリー』)
エントリーアラートが発せられたら即エントリーです。
この際、チャート上には▲か▼が表示されるのですが、たまに途中で消える場合があります。
▲や▼が消えていても、アラートログとチャートの形を見て行けそうならエントリーしてokです。
エントリー時間はhigh/lowの中期、つまり4分~9分推奨です。
仮想通貨の場合はhigh/lowが使えないので5分でお願いします。
Conditions GateNon-directional indicator gating risk and permissions based purely on seasonal calendar patterns and mechanical event window detection without price analysis.
---
Key Insights from HUD
What to watch:
- State: Primary output for permission decisions
- SeasonPrior vs State: Difference shows event impact
- EventWindow + ActiveEvent: Explains why State changed (seasonal vs event-driven)
- RiskMult: Direct risk cap applicable to position sizing
- Runner / MarketMaker: Binary permission gates (green = allowed, red = blocked)
- ForcedState: If not "—", an override is active (useful for manual testing)
Color Logic:
- Green: FAVOURABLE state or allowed (1.0 risk, YES permissions)
- Orange: NEUTRAL state or event window active (0.5 risk, NO permissions)
- Red: UNFAVOURABLE state or blocked (0.25 risk, NO permissions)
- Gray: Neutral info (inactive event, no override)
BTC - RVPM: Run Velocity & Probability MapBTC – RVPM: Run Velocity & Probability Map | RM
Strategic Context: Understanding Price Runs
A "Price Run" (also known as a streak or consecutive sessions) is a foundational concept in time-series analysis that measures the duration of a price movement without a significant counter-signal. While common indicators like RSI or MACD measure magnitude or momentum, they often ignore the Persistence of the trend. Historically, markets move through cycles of expansion and mean-reversion. A Price Run represents a period of "Unidirectional Flow" — a fingerprint of institutional accumulation or systematic distribution. However, standard "run-counting" is often too simplistic for the volatile crypto markets.
What Makes RVPM Special?
Most community run-counters are binary; they simply tell you if X days were green or red. The RVPM distinguishes itself through three proprietary layers:
• The Intensity Filter: It doesnt just count days; it counts effort . By ignoring "flat" days through a percentage-return threshold, it filters out noise that would otherwise skew the statistical probability.
• Dynamic Benchmarking: Instead of using an arbitrary number (like "7 days"), the RVPM looks back at 200 bars of history to find the local "Persistence Ceiling." It adapts to the current volatility regime of Bitcoin.
• The Velocity Score: It transform simple counts into a -100 to +100 histogram, allowing traders to see momentum "decaying" (e.g., dropping from 90 to 70) even if the price continues to rise.
The 3 Pillars of the Engine
1. Velocity Mapping (Persistence Histogram)
The histogram calculates the density of directional effort within a defined window. It functions as the "Pulse" of the trend, mapping market behavior into three distinct zones:
• High Velocity Zone (> 80 or < -80): Institutional Expansion. This identifies a "clean" move where one side of the market possesses total structural control. In this zone, the trend is efficient, and counter-signals are immediately absorbed.
• The Neutral Zone (Near Zero): Momentum Equilibrium. When the histogram fluctuates near the zero line, the market is in a "Recharge Phase." Neither bulls nor bears are achieving persistent dominance. Tactically, this is the "Waiting Room" where range-bound chop is likely, and traders should wait for a new "Expansion" spike before committing.
• Velocity Decay: The Exhaustion Warning. Velocity Decay occurs when the indicator moves from an extreme (e.g., +95) back toward the zero line (e.g., +50) while the price is still rising. This is a "Persistence Divergence." It tells you that while the trend is still moving, the consistency of the bars is fragmenting. The "fuel" is being depleted, and the trend is transitioning from an "Institutional Expansion" into a "Speculative Exhaustion."
2. n-of-m Consistency (The Pips)
The "Pips" (Circles) mark when a specific consistency threshold is met (e.g., 5 out of 7 bars in one direction). This identifies "Leaky Trends" that are still statistically dominated by one side of the ledger.
3. Statistical Exhaustion (The Arrows)
The Dark Red (Top) and Dark Green (Bottom) triangles represent the engine's "Mean-Reversion Signal." The calculation is based on a Relative Maximum Streak (RMS) logic: the script tracks the current linear, consecutive bar count (ignoring bars that fail the Intensity Filter) and continuously benchmarks this against the highest streak recorded over the last 200 bars ( ta.highest(streak, 200) ). The triangles are triggered specifically when the current run reaches 80% of this historical record (the "Anomaly Threshold"). Mathematically, this identifies a move that is statistically pushing against its half-year limit. By using this dynamic threshold rather than a fixed number, the "Extreme" signal automatically tightens during low-volatility regimes and expands during high-volatility expansions, ensuring the signal only appears when the "statistical rubber band" is at a true breaking point.
Operational Interface: The RVPM Dashboard
The Status Dashboard (Top Right) serves as a real-time monitor for momentum health, providing a clean summary of the underlying persistence data:
• Current STREAK: The active, consecutive count of bars meeting the Intensity Filter. It is dynamically color-coded (Cyan/Bullish or Red/Bearish) to provide an instant read on trend seniority.
• WINDOW Consistency: Measures the Momentum Density (the n-of-m value). A value of "6" in a "7-bar" window indicates a high-conviction regime that is successfully absorbing pullbacks without losing its primary trajectory.
Tactical Playbook: The Mean-Reversion Rule
Price action typically follows a "Rubber Band" effect. The further it is stretched without a break, the more "unstable" the trend becomes as the pool of available buyers or sellers is depleted.
• The Setup: Wait for the Triangle Arrows to appear.
• The Logic: The move has reached a 200-day anomaly. A "Liquidity Vacuum" is forming on the opposite side.
• The Action: This is a high-probability Mean-Reversion signal. It is a tactical time to take profits or look for a sharp snap-back move toward the 20-period moving average or the "Institutional Mean."
Settings & Parameters
• Window Length (m): The lookback window used to calculate the Velocity Score.
• Required Days (n): The minimum number of directional bars needed within the window to trigger a "Consistency Pip."
• Intensity Filter (%): The minimum % change required for a bar to be counted toward a run.
• Lookback Period: The historical window (Default: 200 bars) used to calculate the "Maximum Streak" records for exhaustion alerts.
Timeframe Recommendation
The RVPM is best viewed on the Daily (1D) timeframe. This filters out intraday noise and provides the most reliable statistical mapping for macro exhaustion points.
Credits & Verification
The RVPM logic aligns with institutional "Persistence" models and Glassnode's Price Stretch benchmarks. By benchmarking against a rolling 200-day window, the indicator automatically adapts to changing market volatility.
Risk Disclaimer & No Financial Advice
The information, data, and analytical models provided in this publication are for educational and informational purposes only. This script does not constitute financial, investment, or trading advice. Trading cryptocurrencies and other financial instruments carries a high degree of risk, and statistical anomalies or "Extreme Runs" do not guarantee future price action. Past performance is never indicative of future results. Every trader is responsible for their own due diligence and risk management. Rob Maths and the associated entities are not liable for any financial losses incurred through the use of this tool. Always consult with a certified financial professional before making significant investment decisions.
Tags:
bitcoin, btc, persistence, streaks, price-runs, momentum, mean-reversion, exhaustion, Rob Maths
Statistical Reversion FrameworkIntroduction and Core Philosophy
The Statistical Reversion Framework constitutes a sophisticated quantitative trading instrument designed to identify high-probability mean reversion opportunities across financial markets. Unlike traditional technical indicators that rely on a single dimension of market data, this framework adopts a multi-faceted approach, synthesizing statistical probability, volume profile analysis, institutional money flow proxies, and standard technical momentum into a singular composite score. The core philosophy driving this script is the concept of confluence through heterogeneity; by combining uncorrelated or loosely correlated market factors—such as price deviation (statistics), participant commitment (volume), and macro sentiment (intermarket data)—the algorithm aims to filter out the noise inherent in standard oscillators and isolate moments where market pricing has deviated unsustainably from its intrinsic equilibrium. This tool is specifically engineered to detect market extremes—tops and bottoms—where the probability of a counter-trend move or a snap-back to the mean is mathematically significant. It operates on the premise that while asset prices can remain irrational in the short term, they are bound by statistical variance and mean-reverting properties over longer horizons, particularly when institutional flows and volume exhaustion patterns align with those statistical extremes.
Methodology: The Composite Scoring Architecture
The underlying methodology of the framework relies on a weighted composite scoring system. Rather than generating binary buy or sell signals based on a threshold crossover, the script calculates a granular score ranging from zero to one hundred for various market dimensions. These dimension-specific scores are then weighted according to user-defined inputs to produce a final "Composite Score." This approach allows for a nuanced assessment of market conditions; a setup might have extreme statistical deviation but lack volume confirmation, resulting in a lower confidence score than a setup where price, volume, and macro factors all align. The algorithm normalizes all input data into a standardized scale, typically converting raw values—such as Z-Scores or volume ratios—into a zero-to-ten ranking before aggregating them. This normalization process is critical because it allows the algorithm to compare apples to oranges mathematically, treating a standard deviation of 3.0 and a Relative Strength Index (RSI) of 20 as compatible inputs within the same equation. By summing these normalized values and applying regime-based confidence adjustments, the framework produces a dynamic signal that adapts to the volatility and trend intensity of the current market environment.
Algorithmic Component I: Statistical Analysis via Multi-Timeframe Z-Scores
The backbone of the framework is the Statistical Component, which utilizes the Z-Score (or Standard Score) to quantify the degree of price deviation. The Z-Score measures how many standard deviations the current price is from its moving average. A crucial aspect of this algorithm is its fractal nature; it does not rely on a single lookback period. Instead, it computes Z-Scores across three distinct timeframes—Daily, Weekly, and Monthly—and within each timeframe, it calculates deviations for short, medium, and long-term periods. For instance, on the daily timeframe, it assesses deviation from 50-day, 200-day, and 500-day means simultaneously. This multi-timeframe approach is designed to filter out ephemeral noise. A price move that appears extreme on a 10-day basis but is normal on a 200-day basis is likely a trend pull-back rather than a reversal. Conversely, when the Z-Scores across daily, weekly, and monthly timeframes all register values beyond significant thresholds (such as 2.0 or 3.0 standard deviations), it indicates a rare fractal alignment where the asset is historically overextended on all relevant scales. The algorithm aggregates these nine distinct Z-Score data points to form the "Statistical Score," heavily rewarding scenarios where multiple timeframes show directional alignment, as these synchronized deviations often precede powerful mean-reversion events.
Algorithmic Component II: Volume Signature and Participation Analysis
While statistical deviation highlights where the price is, the Volume Component analyzes the conviction behind the move to determine if a reversal is imminent. This section of the code employs several sophisticated logic gates to identify specific volume signatures known as Capitulation and Exhaustion. The algorithm compares current volume against a 50-day moving average to generate a volume ratio. It then correlates this ratio with price action. For example, the script identifies "Capitulation" when price collapses significantly (more than 2%) on volume that is at least three times the average. This specific signature—panic selling—often marks the psychological wash-out necessary for a market bottom. Conversely, the script detects "Volume Exhaustion" when prices drift without conviction on extremely low volume, indicating a lack of participant interest in pushing the trend further. Furthermore, the algorithm integrates On-Balance Volume (OBV) analysis, specifically looking for divergences. It detects subtle shifts where the price makes a new low, but the OBV makes a higher low, signaling that smart money is accumulating positions despite the falling price. This divergence logic is automated using pivot-based high/low detection arrays, adding a layer of foreshadowing that price-only indicators often miss.
Algorithmic Component III: Institutional Proxy and Intermarket Correlations
The Institutional Component distinguishes this framework from standard retail indicators by incorporating intermarket data that serves as a proxy for macro sentiment and institutional flow. The script pulls data from extraneous tickers—specifically the VIX (Volatility Index), Government Bond Yields (10-year and 2-year), Copper, Gold, and the Dollar Index (DXY). The logic here is grounded in fundamental market mechanics. For instance, the script analyzes the VIX to gauge market fear; however, it applies a contrarian logic. An extremely high VIX (panic) coincident with a low equity price is scored as a bullish factor, while a complacently low VIX at market highs is viewed as bearish. Similarly, the algorithm analyzes the Yield Curve (the spread between 10-year and 2-year yields). A steepening or flattening curve provides context on economic expectations, influencing the score based on whether the environment is "risk-on" or "risk-off." The Copper/Gold ratio is utilized as a barometer for global economic health; rising copper relative to gold suggests industrial demand and growth, confirming bullish setups, whereas falling copper prices signal contraction. By integrating these non-price variables, the framework ensures that a trade signal is not just technically sound but is also supported by the broader macroeconomic undercurrents that drive institutional capital allocation.
Algorithmic Component IV: Technical Momentum and Structure
The final layer of input comes from standard Technical Analysis, which serves to fine-tune the timing of the entry. This component aggregates readings from the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), Bollinger Bands, and Support/Resistance proximity. While Z-Scores measure linear distance from the mean, the RSI and Bollinger Bands measure the velocity and elasticity of that move. The algorithm assigns higher scores when RSI hits extreme levels (below 20 or above 80) and when price action pierces the outer bounds of the Bollinger Bands. Additionally, the MACD is monitored for histogram reversals and signal line crosses that align with the mean reversion bias. A unique feature of this component is the proximity logic, which calculates how close the current price is to a 50-period high or low. If a statistical extreme coincides with a retest of a major structural support level, the technical score is maximized. This ensures that the trader is not catching a falling knife in a void, but rather identifying a reversal at a location where technical structure provides a natural floor or ceiling for price.
Regime Detection and Confidence Adjustment
A critical vulnerability of mean reversion strategies is that they can suffer severe drawdowns during strong, unidirectional trending markets (momentum regimes). To mitigate this, the framework incorporates a Regime Detection module using the Average Directional Index (ADX) and volatility thresholds. The script calculates the ADX to measure trend strength regardless of direction. If the ADX is above a certain threshold (default 25), the market is classified as "Trending." The script then cross-references this with volatility data to classify the environment into regimes such as "Crisis," "Trending," "Range," or "Mean-Revert." This classification is not merely cosmetic; it actively influences the final output through a "Regime Confidence" multiplier. If the system detects a strong trending regime, it dampens the Composite Score, requiring extraordinary evidence from the other components to trigger a signal. Conversely, if the market is detected as "Mean-Revert" or "Low-Vol Range," the confidence multiplier boosts the score, making the system more sensitive to reversion signals. This adaptive logic helps protect the trader from fading strong breakouts while aggressively capitalizing on ranging markets.
Usage Instructions and Dashboard Interpretation
Traders utilizing this framework should primarily interact with the on-screen Dashboard, which provides a real-time summary of all computed metrics. The dashboard is organized hierarchically, with the "Composite Score" and "Signal Status" at the top. A Composite Score above 70 is generally considered actionable, with scores above 85 representing "Exceptional" setups. The Dashboard is color-coded: green hues indicate bullish/oversold conditions suitable for buying, while red hues indicate bearish/overbought conditions suitable for selling or shorting. Traders should look for "Confluence" across the rows. Ideally, a robust signal will show a high Statistical score (indicating price is cheap/expensive), a high Volume score (indicating capitulation or accumulation), and a supportive Institutional score. If the Composite Score is high but the Institutional score is low, the trader should proceed with caution, as the macro environment may not support the trade.
The chart visuals provide immediate entry triggers. "Strong Bottom" (Green Triangle) and "Strong Top" (Red Triangle) shapes appear when the Composite Score breaches the high threshold and Z-Scores are at extremes. These are the primary execution signals. Smaller "Potential" markers indicate developing setups that may require lower timeframe confirmation. Additionally, specific volume icons (Diamonds) will appear to denote Capitulation or Climax events. A trader should ideally wait for the candle to close to confirm these signals. The alerts configured in the script allow the trader to be notified of these events remotely. For risk management, because this is a mean reversion tool, stop-losses should typically be placed below the swing low of the capitulation candle (for longs) or above the swing high of the climax candle (for shorts), anticipating that the statistical extreme marks the distinct turning point. By systematically waiting for the Composite Score to align with the visual signals and verifying the regime context on the dashboard, the trader effectively filters out low-probability trades, engaging only when statistics, volume, and macro-economics align.
XSP 5 DTE Combo: Safe & AggressiveStrategy Document: XSP 5 DTE Trend-Follower
Objective: Systematic capital growth using weekly XSP (Mini-SPX) Options while maintaining a high-interest cash reserve.
1. The Core Philosophy
The strategy is built on three pillars: Directional Trend Following, Volatility Filtering, and Capital Preservation. Unlike "Buy & Hold," this system only risks capital when the market shows clear momentum. By using XSP Options, we gain leveraged exposure with a defined maximum risk (the premium paid).
2. Capital Management (The 70/30 Rule)
70% Safety Reserve: Held in low-risk, interest-bearing instruments (e.g., US Treasury Bills or Money Market Funds). This acts as a collateral base and generates a steady 4–5% yield, offsetting trading costs and providing a psychological "anchor."
30% Active Trading Capital: Used for purchasing XSP Options.
Scaling: Start with 1 contract. Increase position size by 1 contract for every $10,000 of account growth.
3. Execution Rules
Trading Day: Every Thursday.
Entry Time: 15:30 – 16:00 CET (Wall Street Open).
Instrument: XSP Index Options (Standard Delta 50 / At-The-Money).
Expiration: 5 Days to Expiration (DTE) – typically the following Tuesday.
Exit: Hold to expiration (maximum gain) or close manually at +100% ROI.
Technical Script Description: "ATR Pro Trend Combo"
The Pine Script (v6) serves as a binary gatekeeper. It suppresses trades during low-probability environments and highlights entries during high-conviction trends.
Key Indicators & Logic:
Trend Filter (EMA 50): Determines the "Primary Trend." We only buy Calls if the price is above the 50-period EMA, and Puts if it is below. This prevents trading against the institutional flow.
Momentum Switch (SuperTrend): Acts as a trailing volatility-based confirmation. The script requires the SuperTrend to align with the EMA direction (Green for Calls, Red for Puts).
Volatility Threshold (ATR): Filters out "flat" markets. A trade is only signaled if the current Average True Range (ATR) is at least 80–90% of its long-term average. This ensures there is enough "swing" in the market to overcome the Theta (time decay) of the options.
Seasonal Overlay: An automated hard-stop for January and September, months that historically exhibit high randomness and trend reversals.
Multi-Mode Functionality:
Safe Mode: Uses a tighter 2.0 SuperTrend multiplier and 0.9 ATR threshold. Best for accounts under $15,000 to maximize Capital Preservation.
Aggressive Mode: Uses a 2.5 multiplier and 0.8 ATR threshold. Increases trade frequency to accelerate compounding once a capital buffer is established.
How to use this in TradingView:
Copy the latest code provided into the Pine Editor.
Add to Chart and ensure you are on the Daily (1D) or 4-Hour (4H) timeframe for the best signal quality.
Check the Dashboard on the top right for the current Season and Trend status before executing your Thursday trade.
VCTOS - Volatility & Candle Transition OscillatorShort Description (one-line summary)
Displays candle and volatility-based trend transitions using EMA relationships and adaptive dynamic thresholds.
Full Description
Overview
This VCTOS (Volatility & Candle Transition Oscillator System) indicator visualizes market structure, volatility, and transition phases using a custom oscillator-based candle model.
Its purpose is to provide contextual insight into pressure, strength, and loss of momentum, not to predict future price movement and not to provide trading signals.
________________________________________
What Makes This Script Distinct
The indicator is designed to make relative market strength observable:
• Taller candles reflect higher volatility
• Shorter candles reflect reduced activity
• Candles extending far beyond the threshold suggest stronger conditions
• Compression toward the threshold suggests weakening pressure
While the base calculations use EMA-derived components, the indicator’s distinguishing feature is its adaptive advanced threshold logic, which frames volatility in a consistent and measurable way across different conditions.
________________________________________
How to Read It
One way to interpret the oscillator candles is by comparing them against price to observe divergence, compression, and loss of momentum.
To support this, candles are labeled with incrementing numbers.
These numbers do not represent signals, probabilities, or trade instructions. They simply indicate how long a sequence has been developing.
The label colors reflect transition phases:
• Blue – early phase
• Orange – transition building
• Green – late phase
A green label indicates that a sequence has matured, not that a transition will occur. Interpreting whether this information is meaningful depends on broader market context.
________________________________________
Oscillator Candle Representation
Price action is transformed into candles plotted around a zero line in oscillator form.
Each candle reflects relative movement and is color-coded based on its current state:
• Green – upward pressure
• Orange – range or transitional behavior
• Red – downward pressure
Because absolute market tops and bottoms cannot be known in advance, the oscillator format focuses on relative extremes and structural behavior, rather than fixed price levels.
________________________________________
Dynamic Candle Threshold Line
A dotted Candle Threshold Line is plotted above and below the oscillator candles.
This line is not a simple average. It dynamically adapts using the most relevant extreme values observed over time, allowing it to adjust automatically to changing volatility conditions.
The threshold line serves as a reference zone where market conditions may become stretched. It is a dynamic indication only and should not be interpreted as a reversal level or predictive boundary.
________________________________________
Volatility Line
The indicator includes a Volatility Line representing directional pressure:
• Above zero – downward pressure
• Below zero – upward pressure
Short colored threshold lines appear on the indicator right areas where pressure threshold was in the past. These segments are contextual references, not triggers.
The slope and magnitude of the volatility line are emphasized, as they reflect increasing or decreasing pressure rather than binary conditions.
________________________________________
Timeframes and Assets
The indicator is designed to work on any asset and any timeframe.
The active timeframe is displayed in the top-right corner of the chart.
Using multiple timeframes can help place short-term structure within broader market context.
________________________________________
Usage Notes
• This indicator does not generate trade entries, exit signals, or financial recommendations.
• This indicator does not predict future price movement
• Colored candles and labels highlight contextual phases within market behavior and should not be interpreted as buy or sell signals.
• Zero-line interactions in the volatility line visually mark potential phase transitions, not confirmed trend changes.
• All visuals are intended for analytical and educational purposes only.
• Users are encouraged to integrate this indicator within their own analytical or confirmation framework.
• Numerical labels are iterative and do not carry standalone predictive meaning.
• The distance between the oscillator candles, the candle threshold line, and the volatility threshold levels can help visualize relative market strength and pressure, but should not be interpreted as a forecast or signal.
The indicator is intended as a market-structure and volatility visualization tool, not as a standalone decision system.
________________________________________
Access
This is an invite-only script.
Access is restricted to users who have been granted permission by the author.
To request access, contact me through vtostrading@gmail.com
Approved users will find the indicator under Invite-only scripts in the TradingView Indicators panel.
________________________________________
Disclaimer
VCTOS is provided strictly for informational and educational purposes.
It does not constitute financial advice, investment guidance, or performance assurance.
All users should conduct independent analysis and manage their own risk responsibly.
RSS3 - Reversal Score System v3 [Rulph]RSS3 - Reversal Score System v3
RSS3 is a quantitative reversal detection system that combines volatility pressure analysis with directional momentum exhaustion to produce a unified reversal strength score from -1 (extreme bullish) to +1 (extreme bearish).
Unlike traditional single-indicator divergence systems (RSI, MACD), RSS3 cross-validates signals between two independent analytical engines (VPI and TDFI) and applies multi-timeframe contextual filtering to reduce false signals.
RSS3 is not a visual overlay of separate indicators. It implements a unified calculation pipeline where VPI and TDFI components feed into a single normalized Score through weighted aggregation. The divergence bonus system creates feedback loops where price-indicator relationships dynamically adjust the final Score, producing signals that cannot be replicated by simply viewing RSI, Bollinger Bands, and moving averages side-by-side.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY COMBINE VOLATILITY + TREND FORCE?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Most reversal systems rely on a single dimension:
• RSI divergence tracks momentum exhaustion
• Bollinger extremes track volatility expansion
• MACD divergence tracks trend deceleration
RSS3 recognizes that major reversals typically require both :
1. Volatility pressure buildup (market stretched beyond normal range)
2. Directional force exhaustion (trend losing momentum despite stretched price)
When VPI (volatility) and TDFI (trend force) diverge simultaneously from price, it signals a high-probability reversal zone. When only one diverges, the signal is weighted accordingly.
This dual-validation approach filters out:
• Momentum exhaustion in low-volatility consolidations (no VPI confirmation)
• Volatility spikes within strong trends (no TDFI exhaustion)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMPONENT 1: VOLATILITY PRESSURE INDEX (VPI)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VPI quantifies how far the market has deviated from its equilibrium state using four factors:
1. RSI deviation from 50
Measures directional bias accumulation. When RSI stays at 70+ or 30- for extended periods, it signals persistent one-sided pressure.
2. Annualized volatility (VIX-style)
Calculates rolling standard deviation of returns scaled to annual terms. Rising volatility indicates increasing uncertainty and potential for mean reversion.
3. Normalized candle range
Compares current bar's range to recent average range. Expanding ranges signal climactic moves.
4. Bollinger Band position
Measures price distance from statistical mean (middle band). Touches or penetrations of outer bands indicate statistical overextension.
How they combine:
Each component is normalized to 0-1 scale, then weighted based on current market regime (trending vs ranging). The weighted average produces VPI reading where:
• VPI > 0.5 = overbought pressure zone
• VPI < -0.5 = oversold pressure zone
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMPONENT 2: TREND DIRECTION FORCE INDEX (TDFI)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TDFI measures the strength and sustainability of directional movement using moving average dynamics:
1. MA spread (fast MMA vs slow SMMA)
When fast MA pulls far from slow MA, it indicates strong directional momentum. When the spread contracts, momentum is fading.
2. Average impulse between MAs
Calculates the velocity of the spread change. Rapid expansion = acceleration phase; slowing expansion or contraction = deceleration/exhaustion.
3. Normalized trend strength
The spread and impulse are normalized relative to recent volatility to make TDFI comparable across different instruments and market conditions.
Output:
• TDFI > 0.7 = unsustainably strong bullish momentum
• TDFI < -0.7 = unsustainably strong bearish momentum
• TDFI near 0 = directionless or balanced market
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SCORE CALCULATION & DIVERGENCE INTEGRATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Base Score:
Score = (VPI_weight × VPI) + (TDFI_weight × TDFI)
This creates a continuous measure where:
• Score > +0.5 = bearish reversal zone (high VPI + weak bullish TDFI)
• Score < -0.5 = bullish reversal zone (low VPI + weak bearish TDFI)
Divergence Bonus System:
When classic divergences are detected (price makes new high/low but VPI or TDFI doesn't), a bonus/penalty is applied to Score:
• Decay mechanism: Divergence influence fades linearly over 15 bars (default). Fresh divergences have maximum impact; older ones gradually lose weight.
• Amplitude weighting: Larger divergences (bigger spread between price and indicator pivots) receive stronger bonuses.
• Dual-source amplification: When VPI and TDFI diverge on the same pivot (double divergence), their bonuses stack, creating extreme Score readings near ±1.0.
This means:
• Score = 0.9 with v3t2 label = third VPI + second TDFI bearish divergence, very high confidence
• Score = -0.85 with v1 label = first VPI bullish divergence, strong but early signal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CALCULATION MECHANICS (DETAILED)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VPI Component Weighting:
Weights are dynamically adjusted based on market regime detected by TDFI:
• Trending regime (|TDFI| > 0.5): RSI deviation 40%, BB position 30%, volatility 15%, range 15%
• Ranging regime (|TDFI| < 0.3): Volatility 35%, range 35%, RSI deviation 15%, BB position 15%
• Transition zones: linear interpolation between the two weight sets
Normalization Approach:
Each VPI/TDFI component is rescaled using rolling percentile rank over 100-bar window:
• Value at 100th percentile (highest) → 1.0
• Value at 0th percentile (lowest) → 0.0
• Current value → percentile position between 0-1
This makes the indicator adaptive to changing volatility and comparable across instruments.
Divergence Amplitude Measurement:
When a divergence is detected, its strength is quantified as:
Amplitude = (price_pivot_delta / ATR) × (indicator_pivot_delta / indicator_stddev)
Where:
• price_pivot_delta = distance between current and previous pivot
• indicator_pivot_delta = distance between indicator values at those pivots
• ATR and stddev provide normalization
Larger amplitude → larger bonus/penalty to Score (up to ±0.3 maximum).
Decay Function:
Divergence bonus decays linearly: Bonus(t) = Initial_Bonus × (1 - t/15), where t is bars since divergence. After 15 bars, bonus reaches zero. This ensures recent divergences dominate the Score.
Why This Design:
This architecture creates a system where:
• Components adapt to market regime automatically
• Signals are normalized across timeframes and instruments
• Multiple divergences create amplification (bonuses stack)
• Stale signals fade out naturally
This is fundamentally different from displaying RSI + Bollinger + MA separately, as the unified Score cannot be replicated by visual inspection alone.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SEQUENTIAL DIVERGENCE LABELS (v/t SYSTEM)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Each divergence is tracked separately for VPI and TDFI:
v-series: VPI divergences (v1, v2, v3...)
t-series: TDFI divergences (t1, t2, t3...)
The counter increments each time a new divergence appears in the same direction (e.g., consecutive bearish divergences). When direction flips (bearish → bullish), counters reset to 1.
Why this matters:
• v1 or t1 = early warning, potentially premature
• v3 or v4 = late-stage exhaustion, higher probability of reversal
• v2t3 = double divergence with second VPI + third TDFI = strong confluence
Traders can filter signals by label:
• Aggressive: trade v1/t1
• Conservative: wait for v2+/t2+ or double divergences
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MULTI-TIMEFRAME FILTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The MTF filter analyzes a higher timeframe to determine if the current market structure supports the divergence signal.
Modes:
• Off: All divergences shown
• Reduce: Counter-trend divergences have their bonus reduced by 70% (visual indication: dimmed/gray markers)
• Block: Counter-trend divergences completely hidden
Logic:
If 1H shows bearish divergence but 4H is in strong uptrend (Score < -0.3), the 1H signal is likely premature. MTF filter prevents entering shorts against higher timeframe momentum.
This protects against:
• Catching falling knives in strong downtrends
• Shorting pullbacks in strong uptrends
• Low-probability mean-reversion attempts
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE RSS3
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Entry Setup:
1. Wait for divergence marker (green = bullish, red = bearish)
2. Check Score magnitude:
• |Score| > 0.5 = higher confidence
• |Score| > 0.8 = extreme zone
3. Check v/t label:
• v1/t1 = early (more risk, more reward potential)
• v2+/t2+ or double = late but more reliable
4. Optional: wait +2 bars for pivot confirmation
Exit Options:
• Conservative: opposite divergence appears
• Aggressive: Score crosses through 0 or opposite ±0.5 threshold
• Always use volatility-based stop (2-3× ATR)
Timeframe Recommendations:
• 5-15m: intraday (use MTF 1H-4H)
• 1-4H: swing trading (use MTF Daily-Weekly)
• Daily: position trading (use MTF Weekly-Monthly)
Complementary Tools:
RSS3 is a reversal timing engine, not a complete strategy. Combine with:
• Support/resistance for target zones
• Volume analysis for confirmation
• Trend filters for directional bias
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT MAKES RSS3 ORIGINAL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
vs Traditional RSI Divergence:
• RSI divergence = binary yes/no
• RSS3 = quantified strength score with dual-source validation
vs MACD Divergence:
• MACD = single dimension (momentum)
• RSS3 = volatility pressure + trend force + MTF context
vs Bollinger + RSI mashup:
• Standard mashup = two separate signals
• RSS3 = unified scoring system where components interact through weighted bonuses
Unique features:
• Decay-weighted divergence bonuses (recent divergences matter more)
• Amplitude-sensitive scoring (stronger divergences = higher score impact)
• Sequential tracking (v/t labels show signal maturity)
• MTF-aware filtering (context-dependent signal validation)
• Closed-loop system (divergences → Score → priority weighting → signal)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EXAMPLE INTERPRETATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Scenario: BTC 2H chart shows:
• Red triangle appears above price
• Label: v1 + t2
• Recent Score Value: 1
What this means:
• Second consecutive TDFI bearish divergence detected (t2)
• First VPI bearish divergence on same pivot (v1)
• Double divergence stacking → Score near maximum
• Market is in extreme overbought/overextended zone
• High probability of short-term reversal
Trading decision:
• Aggressive trader: short immediately with tight stop
• Conservative trader: wait for Score to drop below 0.5 or opposite divergence for exit
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CHART LEGEND
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The published chart shows:
• Green triangles below price = bullish divergences (v/t labels indicate sequence)
• Red triangles above price = bearish divergences
• Score line in lower panel = reversal strength from -1 to +1
• Colored clouds = pressure accumulation zones (optional display)
• Text annotations = example entry/exit points for educational purposes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Disclaimer: All trading involves risk. This indicator does not guarantee profits. Always backtest and apply proper risk management.
AVAX Bot-Safe SuperTrend FastConfirm v1 (No Repaint for BOT)BETA version - (still in testing)
AVAX Bot-Safe SuperTrend FastConfirm v1 is a TradingView indicator designed to generate stable, non-repainting trade signals for automated execution, while also offering optional visual “early” cues for discretionary monitoring. The script combines a SuperTrend trend engine with a FastConfirm mechanism based on lower-timeframe closes, plus optional confirmation via Hull Moving Averages (HMAs) and risk overlays (ATR-based SL/TP) for execution planning.
1) Core Trend Engine (SuperTrend)
The indicator computes a SuperTrend using ATR (Wilder ATR via ta.atr() by default, optional SMA-TR alternative).
It tracks a binary trend state:
* Trend = bullish when price is above the trailing bearish band.
* Trend = bearish when price is below the trailing bullish band.
“Early” SuperTrend flips (trend change points) can be shown as visual-only markers, intended for human observation rather than bot execution.
2) Hull Moving Averages (Context / Optional Confirmation)
* Two Hull MAs are calculated:
* Fast Hull (short length)
* Slow Hull (longer length)
* Hull alignment is used as an optional confirmation layer (recommended for AVAX) to reduce whipsaws:
* Bullish bias when Fast Hull > Slow Hull
* Bearish bias when Fast Hull < Slow Hull
* Hull lines can be plotted for trend structure and momentum context.
3) Momentum Burst (Visual Only)
* The script includes a momentum “burst / continuation” visual module:
* Measures impulse using either ATR-normalized movement (default) or percentage change.
* Flags continuation patterns (e.g., consecutive rising/falling closes after a burst).
* These markers are not used for bot execution, and are intended to assist human interpretation.
4) Optional Filters (Only Applied to BOT if Enabled)
The script contains optional execution filters that can be applied to bot signals (toggleable):
* Volume filter: compares current volume to a volume moving average.
* RSI filter: avoids entries in overstretched conditions.
* ADX filter: requires a minimum trend strength.
A dedicated switch (“BOT: apply Volume/RSI/ADX if enabled”) determines whether these filters impact automated entries.
5) Bot-Safe Signal Logic (No Repaint)
The indicator’s primary purpose is to produce bot-safe entries that do not “blink” intrabar:
A. Candidate trigger (stable bands + buffer)
* Uses previous bar SuperTrend levels and an ATR-based buffer to avoid micro-touch signals.
* Detects whether price action meaningfully penetrates the relevant band.
B. FastConfirm via lower timeframe closes
* Pulls lower-TF closes inside the current candle (e.g., 1m confirmations) and requires N consecutive closes beyond the threshold level.
* This is intended to reduce false flips while still entering earlier than pure bar-close logic.
C. Two execution modes
* FastConfirm: faster entries, confirmation from lower timeframe closes (recommended for latency-sensitive automation).
* BarClose: waits for bar close confirmation (slowest but maximally conservative).
D. Latching + cooldown
* Signals are latched per bar so they do not disappear within the same candle.
* A direction lock and cooldown prevents immediate opposite signals in rapid chop.
6) Risk Levels (ATR-Based SL/TP + JSON Payload)
* On each bot signal, the indicator calculates:
* Stop Loss = ATR-multiple away from price
* Take Profit = based on a configurable risk:reward ratio
* SL/TP lines can be plotted for a limited number of bars after the signal for clarity.
* For automation, the script can send dynamic JSON alerts via alert() including:
* action (BUY/SELL), symbol, timeframe, confirmation TF, suggested entry, SL, TP, and latency cushion.
A configurable latency cushion (%) adjusts the “entry” field to account for real execution delay/slippage (useful when routing signals to bots/exchanges with a few seconds latency).
Recommended Usage (TradingView + Bot Execution)
Best practice for bot safety
* Use Bot Signal Mode = FastConfirm for earlier entries while keeping confirmations.
* Keep FastConfirm TF = 1m and start with Confirm Bars = 2 (then tune to 3 if too many false signals).
* Maintain a modest ATR buffer (e.g., 0.10–0.20 × ATR ) to reduce noise triggers.
How to set alerts
* For bot routing that expects structured data: enable Send JSON via alert(), and create the TradingView alert using:
* “Any alert() function call”
* For simpler setups: use the built-in alertcondition() alerts (“AVAX BOT BUY/SELL”).
Filter policy (risk control)
* If you trade during choppy ranges, consider enabling ADX and/or Hull alignment.
* Enable Volume/RSI/ADX filters for the bot only if you accept fewer trades in exchange for higher selectivity.
Operational notes
* Prefer lower chart timeframes (e.g., 1m–5m) with FastConfirm to limit reaction time.
* Calibrate latency cushion (%) to match your observed end-to-end delay (TradingView → webhook → bot → exchange).
* Always validate settings in BarClose mode first to benchmark “safest behaviour,” then switch to FastConfirm and tune confirm bars/buffer.
!!!! - The algorithm was designed with ChatGPT 5.2 Pro
ABC Risk Management SystemOverview
This script is a comprehensive execution engine designed for high-frequency momentum trading (optimized for MES/ES Futures). It solves the problem of "grade inflation" in trading by strictly categorizing setups based on Multi-Timeframe (MTF) alignment and volatility.
How it Works
The script utilizes a 5-Minute Bias Engine to filter a 1-Minute Execution Chart. It relies on the relationship between the CCI (Commodity Channel Index) and its 20-period SMA using Typical Price (HLC3).
The Grading Hierarchy
Grade A+ (The Trend Follower): Triggered when the 5m Trend is strong (ADX > 25) and 1m momentum is perfectly aligned.
Grade B (The Momentum Burst): Triggered in "Lazy Markets" (5m ADX < 25). The script automatically raises the entry requirement to a 140 CCI burst to filter out noise.
Grade C (The Mean Reversion): Triggered when 1m internals (ADX/DI/CCI) are powerful enough to trade against the 5m Bias.
Key Indicators Included
T3 Pulse Lead: A specialized, color-coded trailing line used for dynamic stop-loss management.
Price-Locked Labels: Signals are pinned to the High/Low of the specific candle to provide exact price levels for entry.
🚀 Release Notes: Version 3.0 (The "ABC" Update)
New Features & Logic Fixes:
Strict Binary Bias: Removed all level-based filters for the HTF trend. The bias is now determined solely by the crossover of the 5m CCI and its SMA.
Bullish: 5m CCI > 5m SMA (regardless of positive/negative value).
Bearish: 5m CCI < 5m SMA.
Adaptive ADX Scaling: If 5m ADX falls below 25, the 1m CCI trigger is automatically moved from 100 to 140 to compensate for the lack of trend strength.
Visual Overhaul: Replaced generic shapes with Price-Locked Text Labels.
Longs: Labels appear below the candle (Green/Lime/Purple).
Shorts: Labels appear above the candle (Red/Maroon/Orange).
T3 Pulse Integration: Added the T3 Pulse Lead (8-period) directly into the overlay to facilitate the "T3 Trailing Stop" methodology.
Typical Price Standard: Standardized all calculations to HLC3 to align with professional S&P 500 momentum standards.
How to Setup the Chart:
Apply script to a 1-Minute Chart.
Ensure your 5-minute CCI settings in your separate indicator match (20 SMA, HLC3 Source).
Follow the A/B/C Risk Management Protocol (0.5% / 0.25% / 0.10% risk)
Trend FilterTrend Filter
Summary
Trend Filter is a multi-factor trend-confidence indicator that produces a simple, actionable output: Direction (Up / Down / Ranging) and a normalized Confidence %. It is intended as a decision-support overlay to help traders quickly identify whether a market is trending or rangebound, and how strong that directional bias is.
What it shows
A single line in the on-chart table: Direction (Up / Down / Ranging).
A Confidence % (0–100) that combines multiple normalized market signals into a single score.
Optional notification row when a manually-selected reference timeframe does not match the chart timeframe.
Alert conditions when direction changes to Up, Down, or Ranging.
How the indicator works (concise, non-proprietary explanation)
Trend Filter computes a weighted confidence score from several complementary components, each normalized to a 0–100 scale and combined into a single confidence value. The components and their roles are:
EMA structure & spread (trend breadth)
-Uses three EMAs (fast / mid / slow) computed at lengths that scale with the selected/reference timeframe. The EMA spread (fast vs slow) quantifies directional separation.
HH/HL structure and streaks (price structure)
-Counts higher highs/higher lows (and the reverse) across a scaled lookback to measure whether price structure is predominantly bullish, bearish or mixed.
EMA slope (momentum of trend)
-A robust slope approximation (smoothed) measures whether the short EMA is rising/falling relative to its own smoothed history.
ADX / DMI (trend strength)
-Uses a standard ADX-style component to capture directional persistence and dampen the confidence score when the ADX is weak.
ATR (volatility context)
-ATR expressed as a percentage of price helps detect abnormal volatility regimes which affect the validity of trend signals.
Volume context
-Simple volume vs a short SMA gives a participation signal that increases confidence when moves occur with higher volume.
Each component is capped to avoid outsized influence. Components are scaled by a set of weights (configurable in code) and then combined. The final confidence is lightly smoothed before being used to determine direction and to feed alert conditions.
Important implementation & safety design choices (why it’s not a simple mashup)
Adaptive timeframe scaling: EMA lengths and lookbacks are proportionally scaled based on the chosen reference timeframe (Auto or manual). This preserves relative indicator behavior across 1-minute → Daily timeframes without manual retuning of each parameter.
HH/HL structure plus streaks: Instead of relying solely on moving averages or ADX, the script explicitly measures price structure (HH/HL counts and streaks) and blends that with slope/ADX. This reduces false trending signals on noisy price action.
Normalized, weighted combination with caps: Each component is normalized (0–100) and combined by predefined weights; cap thresholds prevent extreme component values from dominating the result. This is a design intended to produce interpretable confidence % rather than opaque binary outputs.
History and loop safety: The code enforces a cap and protects loop lengths against available historical bars to avoid runtime errors and to ensure the script remains stable on short data series.
Practical guardrails: The script includes notification behavior to highlight manual timeframe mismatches and avoids dynamic indexing patterns that can cause unreliable results on small bar histories.
These design decisions — adaptive scaling, structural HH/HL scoring, capped normalization and explicit safety limits — are the elements that distinguish Trend Filter from simple, single-indicator overlays (EMA-only, ADX-only, etc.) and form the basis for why closed-source protection is reasonable for commercial/invite-only publication.
User controls & recommended usage
Reference Timeframe: Auto (uses chart TF) or choose a manual reference TF (1min → D). When manual TF is selected, the table shows a mismatch warning if the chart TF differs.
Table placement & colors: Positioning and appearance of the on-chart table are configurable.
Confidence thresholds: The indicator uses internal thresholds to mark high/medium/low confidence. Users can interpret the Confidence % relative to those ranges.
Alerts: Built-in alerts fire only on direction changes (to Up, Down, or Ranging). Use alerts as a signal to review the chart rather than an instruction to trade automatically.
How traders typically use it
Add Trend Filter as an overlay to your chart.
Confirm that the recommended reference timeframe is appropriate (Auto will adjust automatically).
Use Direction and Confidence % together: high Confidence + Up (or Down) suggests staying with trend; Ranging suggests avoiding trend-following entries.
Combine this filter with your entry/exit rules (price structure, support/resistance, or your preferred signal generator).
Disclaimers & limitations
This is a decision-support indicator, not an automated execution strategy. It does not place orders and does not provide P/L or backtesting statistics.
Confidence % is an aggregated measure — treat it as context, not a guarantee.
Results vary across symbols and timeframes; use appropriate position sizing and risk controls.
The code intentionally includes history and loop safeguards; on very short histories the indicator may display conservative results.
strongResistanceActually it is education purpose. This indicator is designed to help traders clearly identify strong Support & Resistance (SNR) levels along with high-probability Buy & Sell..
The indicator works smoothly on lower timeframes for binary trading.
Leading Leaders: RS / 52W / EPS+Sales + Volume (Clustered)Leading Leaders – Multi-Factor Institutional Strength & Accumulation Framework
This indicator is a multi-factor leadership and accumulation framework designed to identify stocks that are behaving like institutional leaders, not just showing temporary strength.
It is not a mashup of unrelated indicators.
Each component measures a different dimension of leadership, and the script combines them into a structured scoring and clustering model to identify persistent, high-quality candidates suitable for swing trading, momentum continuation, and breakout anticipation.
🔹 Core Idea
True leaders show repeated constructive behavior, not one-day spikes.
This script evaluates four independent dimensions of leadership on every bar and then measures persistence over time using a rolling cluster score.
The goal is to answer one question clearly:
Is this stock consistently behaving like a leader while institutions are accumulating?
🔹 Components Explained
1) Relative Strength (RS Approximation)
The script compares the stock’s daily performance against a benchmark index over a configurable lookback period and normalizes it.
This identifies stocks that are outperforming the broader market, similar in concept to RS ranking models used by professional momentum traders.
2) Proximity to 52-Week High
Strong leaders tend to trade near their highs, not deep below them.
The script checks whether price is within a defined percentage of its 52-week high, filtering out structurally weak stocks.
3) Fundamental Growth (EPS & Sales)
Institutional leadership is usually backed by real business growth.
The script evaluates:
EPS YoY growth
EPS QoQ growth
Sales YoY growth
Only stocks meeting minimum growth thresholds contribute to the leadership score.
4) Volume Health (Accumulation Logic)
Instead of using raw volume spikes, the script evaluates contextual volume behavior:
Advances with expanding volume → institutional participation
Pullbacks or tight bars with contracting volume → lack of selling pressure
This aligns with accumulation principles used by O’Neil, Minervini, and professional momentum traders.
🔹 Leadership Scoring Model
Each bar receives a binary score for each component:
Relative Strength
52-Week High Proximity
Fundamental Growth
Volume Health
Each bar scores 0–4 points.
This creates a daily leadership score, not a trade signal.
🔹 Cluster Scoring (Persistence Filter)
Rather than acting on a single bar, the script computes a rolling cluster score across recent bars.
The cluster score represents:
How often the stock has shown leadership behavior recently
This persistence filter is what separates:
one-day wonders
from
true institutional leaders under accumulation
Stocks triggering strong cluster conditions have shown repeated strength, not isolated spikes.
🔹 Visual Design Philosophy
This script is intentionally designed for clarity and scan-ability:
Background shading highlights leadership intensity
Bar coloring emphasizes strongest conditions
Optional labels summarize why a bar qualifies
No external indicators are required, and the chart remains clean and readable.
🔹 How to Use
This indicator does NOT generate buy/sell signals.
Typical professional use cases include:
Building watchlists of high-quality leaders
Identifying accumulation before breakouts
Filtering for momentum continuation candidates
Avoiding low-quality or noisy stocks
Market condition analysis during weak breadth environments
Best suited for:
Daily and higher timeframes
Swing trading
Momentum and breakout strategies
⚠️ Important Notes
This is a research and analysis tool, not a trading system.
No future data is used; calculations are non-repainting.
Always combine with market context, risk management, and execution rules.
✅ Why This Script Is Original
Uses a multi-dimension leadership framework, not a single indicator
Focuses on behavioral persistence (cluster scoring) rather than point-in-time signals
Applies contextual volume logic, not raw volume spikes
Designed specifically for leader identification and accumulation analysis
This combination and scoring methodology is not a direct reproduction of any single open-source script and is intended to provide structured insight into institutional stock behavior.
NQ Market DNA MapNQ Market DNA Map
The Market DNA Map indicator is designed to visualize key trading sessions (Asia, London, and New York) on the chart while providing a probabilistic lookup table based on historical session patterns. This tool draws session boxes with midline references, extends session highs and lows until mitigated or a daily hardstop (16:00 in the selected timezone), and displays a summary table with statistical metrics derived from predefined historical data. The data mappings are hardcoded, reflecting an analytical approach for session-based price action. Note that all probabilities and metrics are based on past observations and should not be interpreted as predictions or guarantees of future market behavior. These statistics are only tested and generated based on NQ futures. This indicator is for educational and informational purposes only; trading decisions should incorporate additional analysis and risk management.
Key Features
• Session Visualization:
o Draws colored boxes for the Asia, London, and New York sessions, updating in real-time as the session progresses.
o Includes a dotted midline within each box for quick reference to the session's midpoint.
o Extends horizontal lines from the final session high and low until price mitigates them (crossing both above and below) or the daily hardstop is reached.
• Probabilistic Table:
o A customizable-position table appears on the chart (once the New York open is detected), summarizing conditions and metrics for the current day's setup.
o Conditions include: Asia range relative to its rolling average, London open relative to Asia's midpoint, London sweep type (high only, low only, both, or none), and New York open relative to London's midpoint.
o Metrics displayed include:
First High Sweep %: Probability (based on historical data) that the high of the prior session is swept first during New York.
First Low Sweep %: Probability that the low is swept first.
Med Pen ↑ (High): Median penetration distance (in points) above the session high.
Med Pen ↓ (Low): Median penetration below the session low.
Fail High -> Low %: Failure rate where an initial high sweep fails and reverses to sweep the low.
Fail Low -> High %: Failure rate for an initial low sweep reversing to the high.
Sample Size: Number of historical observations for the matching pattern (n value), with a rating of "High" (n ≥ 150), "Mid" (n ≥ 75), or "Low" (n < 75) to indicate data reliability.
o The table uses color-coding for quick interpretation: Green for above-average/above-mid conditions, red for below, and neutral tones for metrics.
• Asia Range Ratio: Calculates a rolling average of Asia session ranges over a user-defined lookback period to classify the current Asia range as above or below average.
• Hardstop Logic: All extensions cease at 16:00 in the selected timezone to align with typical daily cycle resets.
Inputs and Customization
• Calculation Timezone: Select from predefined options (e.g., "America/New_York", "Europe/London") to align session times with your preferred market clock. Default: "America/New_York".
• Session Times:
o Asia Session: Default "2000-0200" (8:00 PM to 2:00 AM in the selected timezone).
o London Session: Default "0200-0800" (2:00 AM to 8:00 AM).
o NY Session: Default "0800-1600" (8:00 AM to 4:00 PM). These can be adjusted to match specific market hours or personal preferences.
• Asia Ratio Rolling Window: Integer lookback (default: 20) for calculating the average Asia session range ratio (range divided by open price).
• Table Position: Choose where the summary table appears on the chart (e.g., top_right, bottom_right). Default: top_right.
• Colors: Customizable box fill and border colors for each session (Asia: yellow tones, London: blue, NY: gray) with transparency settings for overlay compatibility.
How It Works
1. Session Detection: The indicator checks the current bar's time against user-defined sessions in the selected timezone. Sessions are non-overlapping and assume a 24-hour cycle.
2. Box and Line Drawing:
o At session start, a box is initialized from the open/high/low.
o As the session progresses, the box expands to capture the live high/low, with the midline updating dynamically.
o Upon session end, final high/low are locked, and extension lines are drawn horizontally.
o Extensions persist until price fully mitigates the level (high ≥ level and low ≤ level) or the hardstop time is passed.
3. Asia Ratio Calculation: Maintains a historical array of Asia range ratios (high-low divided by open). The current ratio is compared to the average over the lookback to classify as "Above Avg" or "Below Avg".
4. Key Generation and Lookup:
o A unique key is built from four binary/ternary codes: Asia classification (0/1), London open vs. Asia mid (0/1), London sweep type (0=high only, 1=low only, 2=both, 3=none), NY open vs. London mid (0/1).
o This key queries a hardcoded map of historical data (e.g., "0_0_0_0" for above-avg Asia, above-mid London open, high-only sweep, above-mid NY open).
o Data includes sample size, probabilities, failure rates, and median penetrations, all derived from historical analysis (total samples across all keys: approximately 5,000+ based on the provided mappings).
5. Table Rendering: On the last bar (real-time), the table populates with the current key's data. Metrics are formatted for readability, and penetration values are scaled to the current London high/low in points for context.
6. Performance Notes: The indicator uses up to 500 lines and boxes for extensions and visuals, ensuring compatibility with TradingView limits. It is overlay=true, so it plots directly on the price chart.
Data Source and Limitations
The probabilistic data is hardcoded and represents a compilation of historical session patterns from backtested or observed market behavior on NQ futures. Exact data collection methodology is not specified in the script, but values are presented as-is for illustrative purposes. Users should verify applicability to their specific symbol/timeframe, as markets evolve and past patterns may not repeat. Low-sample patterns (rated "Low") have higher uncertainty.
This indicator does not generate buy/sell signals, alerts, or trading strategies—it solely provides visual and statistical context. Always combine with other tools, fundamental analysis, and proper risk controls. Trading involves risk of loss; no performance guarantees are implied. If republishing or modifying, please credit the original structure and adhere to TradingView's publication guidelines. For questions on usage, refer to TradingView documentation on session indicators and probabilistic tools.






















