Pine Script® indicator
Trend Analysis
25GN-Intraday Reversals and MomentumThe 25GN-Intraday Suite is a high-performance visual interface designed for professional traders on the 5m, 10m, and 15m timeframes. This master version combines two distinct proprietary signal paths into one streamlined overlay.
CORE CAPABILITIES
Precision Reversal Bubbles (25GN-B / 25GN-S): Identifies significant trend exhaustion and pivot points using a multi-layered validation engine.
Trend Momentum Triangles: Real-time identification of high-velocity breakout phases.
Price Action Lock: An automated filtering system that invalidates signals during periods of market indecision or low-conviction price action.
OPERATIONAL GUIDELINES
Strict Timeframe Optimization: Engineered specifically for the 5-minute, 10-minute, and 15-minute charts.
Smart Alerts: Fully compatible with TradingView alerts for modular trade automation.
Plug-and-Play: Designed to work out of the box with calibrated defaults for the supported timeframes.
This script is strictly for educational and informational purposes and does not constitute financial, investment, or trading advice. It is not an investment or trade suggestion. Users must evaluate all signals and execute trades based on their own independent analysis and risk assessment. Past performance is not indicative of future results. Trading involves significant risk of loss.
Pine Script® indicator
Triple RCZR 1.3Triple RCZR — Regime Compression & Release (v1.3)
Triple RCZR is a regime-reading oscillator built to identify compression, alignment, and release across time horizons using a structured triple-RSI framework.
This script is not designed to predict direction.
It is designed to reveal when the market is storing energy and when that storage resolves.
Core Idea
Markets rarely move cleanly.
Before expansion, price usually compresses across multiple sensitivities.
Triple RCZR tracks this process by observing three RSI speeds simultaneously:
Fast RSI → short-term reaction
Medium RSI → execution / decision layer
Slow RSI → higher-timeframe memory
When these layers compress into a shared zone — and especially when they align tightly — the market enters a coil state.
When alignment breaks, expansion becomes more likely.
Key Features
🔹 Triple RSI Framework
Three RSI curves run in parallel, each representing a different response speed.
Preset configurations included:
6 / 12 / 18
7 / 14 / 21
8 / 16 / 24
9 / 18 / 27
Optional custom lengths for advanced tuning.
🔹 Coil Zone Detection
A configurable RSI band defines the compression zone.
The script continuously evaluates how many RSIs are inside the zone:
1 RSI → early compression
2 RSIs → building agreement
3 RSIs → full compression
🔹 Anchored Coil (Higher-TF Compression)
An anchored coil occurs when:
All three RSIs are inside the coil zone, and
Fast and Medium RSIs remain tightly aligned to the Slow RSI.
This state represents multi-timeframe agreement and stored momentum.
Anchored duration is tracked in bars to distinguish fleeting pauses from meaningful compression.
🔹 Breakout & Release Awareness
Breakouts are detected only when RSI exits the coil after compression.
Anchored coil start, confirmation, and release events can trigger alerts.
Emphasis is placed on context, not raw signals.
Visual Design Philosophy
Colors are intentionally restrained and functional.
Importance is communicated through density and structure, not brightness.
Anchored coils are visually distinct from ordinary coils without overwhelming the chart.
Designed for long sessions and multi-symbol scanning.
How to Use
Triple RCZR works best when used to:
Identify regime transitions
Compare behavior across markets, indices, or timeframes
Filter trades based on compression quality, not impulse
It is especially effective in:
Sideways or corrective environments
Macro and index analysis
Situations where time matters more than price
This is not a standalone trading system.
It is a context engine.
Version Notes (v1.3)
Added RSI preset selector for fast regime tuning
Improved anchored coil visibility
Refined color system for clarity and reduced fatigue
Core logic intentionally unchanged
Final Note
Triple RCZR is built on the idea that
markets reveal intent before they reveal direction.
If you trade execution, this shows you when to care.
If you study markets, this shows you when structure is changing.
Pine Script® indicator
Market Structure BOS - Session Based (5m, NY Time) This indicator visualizes market structure using a strict, rule-based
Break of Structure (BOS) logic, calculated on the 5-minute timeframe
and evaluated in New York time.
The script detects swing Highs and Lows based on candle direction
(bullish → bearish for Highs, bearish → bullish for Lows). From each
validated structure point, a horizontal level is drawn at the true
price extreme (wick included). Once created, structure levels never
repaint or move.
A Break of Structure is confirmed only when a candle CLOSES beyond
the most recent valid structure level:
- Bullish BOS: close above the latest High
- Bearish BOS: close below the latest Low
The indicator is trend-aware: once a bullish or bearish BOS is confirmed,
only BOS signals in the same direction are shown until the trend changes.
This prevents duplicate or redundant structure breaks during trends.
Session logic is fully integrated and based on New York time:
- Asia
- London (with pre-open range)
- New York (with pre-open range)
Structure levels and BOS logic can optionally reset at the end of each
New York trading day, keeping the chart clean and session-relevant.
The indicator is designed for traders who focus on intraday price action,
market structure, and session-based behavior without visual clutter.
No labels, alerts, or signals are plotted — only clean structure levels.
Pine Script® indicator
JOWY LA VERDADERA ESTRUCTURABasically it is an indicator that perfectly represents the typical BoS Market structure in the fastest way. It is advisable to study several temporalities at the same time and not focus on just one.
Pine Script® indicator
Broadening Formation + Failed 2 CandlesThis indicator is a technical analysis tool designed to identify potential trend reversals at the boundaries of Broadening Formations (BF). It combines structural pivot analysis with the "Failed 2" candle pattern (a variation of an outside-bar or stop-run reversal) to highlight zones of technical alignment.
How it Works
1. Structural Detection (Broadening Formations)
The script identifies market structure using pivot-based logic:
* Auto Mode: Dynamically identifies Pivot Highs and Pivot Lows to plot the upper and lower boundaries of a broadening range.
* Manual Mode: Allows users to input specific price levels for fixed horizontal support and resistance.
2. The "Failed 2" Reversal Pattern
The script looks for specific price action exhaustion at the boundaries:
* Failed 2 Down (Long): Occurs when a candle creates a New Low (taking out the previous candle's low) but reverses to close higher than its open (Bullish).
* Failed 2 Up (Short): Occurs when a candle creates a New High (taking out the previous candle's high) but reverses to close lower than its open (Bearish).
3. Proximity Filtering
The Proximity Engine acts as a filter. A label will appear and will only be valid if the price is within a user-defined threshold of the BF lines. Users can define this "strike zone" via:
* Percent / Points / Ticks: Static distance from the level.
* ATR Multiple: Volatility-adjusted distance, ensuring the zone expands or contracts based on current market conditions.
Key Features
* On-chart Visualization of Stop and Target Reference Levels: On-chart plotting of Stop Loss and Profit Targets (Target modes include Opposing BF Line, 50% Range, or Fixed Amount).
* Real-Time Statistics: An on-screen dashboard tracks Win Rate, Hit/Fail counts, and Risk-to-Reward ratios for the last N bars. Statistics reflect historical signal outcomes only and do not predict future performance.
* Visual Customization: Fully adjustable markers, line styles, and table positioning to fit any chart layout.
* Alerts: Integrated alert functionality for Long and Short triggers.
Usage Note
This tool is intended to help identify structural exhaustion. Like all technical indicators, it is most effective when used in conjunction with other forms of analysis (such as volume or higher-timeframe trend context). It does not constitute financial advice.
Pine Script® indicator
Daily Bias Trade Manager [MarkitTick]💡 The Daily Bias Trade Manager is a sophisticated technical analysis suite designed to automate the identification of high-probability intraday setups based on liquidity concepts and structural shifts. By synthesizing Previous Day High/Low (PDH/PDL) interactions with momentum confirmation and strict risk management protocols, this tool assists traders in navigating the "Daily Bias." It moves beyond simple signal generation by offering a complete trade management visualization system, projecting entries, stop losses, and take-profit levels directly onto the chart in real-time.
✨ Originality and Utility
This script distinguishes itself by integrating institutional price action theory—specifically Liquidity Sweeps and Change in State of Delivery (CISD)—with mechanical filtering. While many indicators simply highlight highs and lows, the Daily Bias Trade Manager validates these levels by analyzing what happens *after* price tests them.
It solves a common problem for intraday traders: "Analysis Paralysis." By automating the detection of structure breaks (MSS) and Fair Value Gaps (FVG) following a sweep of daily liquidity, it provides an objective framework for entry. Furthermore, the built-in "Position Box" feature removes the guesswork from trade execution by instantly calculating risk-to-reward ratios and visualizing them, allowing traders to see the feasibility of a trade before execution.
🔬 Methodology and Concepts
The core logic operates on a sequential detection model:
Liquidity Identification: The script first plots the Previous Day High (PDH) and Previous Day Low (PDL). These are critical institutional reference points where stop-loss orders (liquidity) often reside.
The Sweep: A "Sweep" is confirmed when price breaches a PDH/PDL but fails to sustain the breakout, closing back inside the previous day's range. This suggests a "Fake-out" or liquidity grab, often a precursor to a reversal.
Change in State of Delivery (CISD): Following a sweep, the script monitors local market structure. It looks for a decisive close past a recent swing point (Swing High for shorts, Swing Low for longs) within a user-defined bar window. This confirms that the counter-trend move has momentum.
Confluence Filtering: To reduce false positives, the engine applies optional filters:
RVOL (Relative Volume): Ensures the sweep occurred on significant volume (Climax behavior).
RSI Momentum: Verifies that momentum supports the reversal direction.
Trend Filter: Uses a long-term EMA to ensure trades align with the broader market direction.
Entry Model: Upon validation, the script calculates an entry at the close (or optionally at a Fair Value Gap), places a Stop Loss at the sweep extreme, and projects three Take Profit targets based on configurable R:R ratios.
🎨 Visual Guide
The indicator uses a distinct color-coded system to keep the chart clean yet informative:
● Liquidity Levels & Sweeps
Orange/Blue Lines: Represent the PDH (Previous Day High) and PDL (Previous Day Low).
Teal Shaded Zones: Indicate a "Buy-Side Sweep" (Price took highs and rejected).
Red Shaded Zones: Indicate a "Sell-Side Sweep" (Price took lows and rejected).
● Position Management Boxes
When a signal triggers, a structured box appears:
Solid Gray Line: The theoretical Entry Price.
Solid Red Line: The Stop Loss (SL), typically placed at the swing high/low of the sweep.
Dashed Blue Lines: Represent TP1, TP2, and TP3 targets based on Reward-to-Risk settings.
Labels: Data tags on the right side of the box show exact price coordinates for Entry, SL, and Targets.
● Signals & Clouds
Green "BUY" Labels: Appear below the bar when a bullish sweep and structural shift are confirmed.
Red "SELL" Labels: Appear above the bar when a bearish sweep is validated.
Yellow Clouds: Highlight Fair Value Gaps (FVG) used for entry confluence or retests.
● Multi-Timeframe (MTF) Dashboard
A panel (default: Top Right) displays the status of up to three higher timeframes.
Trend: Shows "BULL" or "BEAR" based on EMA alignment.
Liquidity: Indicates if the timeframe is "Taking Buy Liq", "Taking Sell Liq", or "Inside Range".
📖 How to Use
● Bullish Reversal Setup
Wait for price to drop below the Blue PDL Line.
Look for a Red Sell-Side Sweep Zone to form, indicating price has rejected lower prices.
Wait for the Green BUY Signal . This confirms a shift in structure (CISD) back to the upside.
Observe the Position Box. If the Risk/Reward is favorable (targets are within reasonable reach), consider the trade.
Optional: Use the "Dynamic Targets" setting to target the previous swing high instead of a fixed ratio.
● Bearish Reversal Setup
Wait for price to rally above the Orange PDH Line.
Look for a Teal Buy-Side Sweep Zone .
Wait for the Red SELL Signal confirming the rejection.
Ensure the dashboard shows alignment (e.g., Higher Timeframe Trend is Bearish) for higher probability.
● Trade Management
Enable the "ATR Trailing Stop" in settings to have the Stop Loss line dynamically adjust as price moves in your favor, locking in potential gains.
⚙️ Inputs and Settings
● General & Display
Show Daily Liquidity: Toggles the PDH/PDL lines.
Max Signals/Zones: Limits the visual clutter by restricting historical shapes.
● Detection Logic
Swing Detection Length: Controls the sensitivity of pivot points. Higher numbers = fewer, more significant swings.
CISD Window: How many bars after a sweep are allowed for the structure shift to occur.
Use FVG Entry: If true, the signal waits for a retest of a gap rather than entering immediately at the close.
● Filters
Volume (RVOL): Requires the sweep candle volume to be X times larger than average.
Trend Filter: Only allows Buy signals above the EMA and Sell signals below it.
Session Filter: Restricts signals to specific hours (e.g., New York Killzone).
● Targets & Management
Target R:R: Sets the multiplier for TP1, TP2, TP3 relative to the stop loss distance.
Use Dynamic Targets: Targets structural liquidity (Previous Highs/Lows) instead of fixed math ratios.
ATR Trailing Stop: Activates the trailing stop mechanism.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator is grounded in the principles of Market Microstructure and Mean Reversion theory .
1. Liquidity Pools & Stop Runs:
Academic literature on market microstructure suggests that order flow clusters around obvious visual references (PDH/PDL). Large market participants often utilize this "resting liquidity" to fill large block orders with minimal slippage. The "Sweep" logic detects this absorption phase.
2. Volatility Breakout vs. Fake-out:
The script differentiates between a genuine breakout and a mean-reverting "fake-out" by analyzing the Close relative to the Range . A close back within the prior day's range after a breach signifies a failure of auction in the new territory, statistically increasing the probability of a reversion to the mean (equilibrium).
3. Momentum Validation (RSI & RVOL):
By integrating Relative Volume (RVOL) and RSI, the script applies statistical significance testing to the price action. High volume at a range extreme without price progress (the sweep) indicates "Stopping Volume" or absorption, a key concept in Volume Spread Analysis (VSA).
🙏 Gratitude
I would like to express my gratitude to harry040708 for sharing the insightful idea that made this script possible.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Pine Script® indicator
Pine Script® indicator
Pine Script® indicator
Pine Script® indicator
AngleAura UTAngleAura UT is an advanced trading indicator built on top of the classic UT Bot concept, enhanced with modern risk‑management logic, next‑candle execution, and a clean visual interface.
The script uses a modified algorithm based on:
- ATR‑adjusted trailing levels
- EMA crossover logic
- Dynamic trend switching
This helps identify trend reversals with minimal noise.
Pine Script® indicator
Matrix OrderflowMatrix Orderflow Technical Documentation
Matrix Orderflow is a Pine Script v6 execution engine that integrates Machine Learning regime detection with real-time orderflow imbalance tracking.
1. Functional Logic
Matrix ML Regime Detection
The indicator calculates a prediction using the Matrix ML library.
Bullish Regime: Triggered when the prediction slope exceeds the positive threshold. Visualized by a Cyan line.
Bearish Regime: Triggered when the prediction slope falls below the negative threshold. Visualized by a Hot Pink line.
Micro-Momentum Gating: Signals are strictly gated by the rate of change (p_slope) of the ML prediction.
Smart Trend Fallback
In instances where the ML prediction is neutral (below slope thresholds), the engine switches to a Macro Trend fallback. Bias is determined by the relationship between the closing price and the selected Baseline (Matrix ML or EMA).
Persistent Liquidity Zones (FVG)
Detects Fair Value Gaps using confirmable bar logic.
Persistence: Boxes remain active on the chart until the price trades through the mid-point or the entire gap (mitigation).
Directional Bias: Active long FVGs provide a bullish bias; active short FVGs provide a bearish bias.
Footprint Imbalance Tracking
Scans for stacked imbalances within a single candle.
Bullish Imbalance: Aggressive buying clustered at specific price levels.
Bearish Imbalance: Aggressive selling clustered at specific price levels.
These clusters act as rejection zones for high-conviction entries.
Trap Detection
Identifies instances where price interacts with a liquidity zone (FVG) but fails to maintain the move, accompanied by opposing orderflow. These are marked with "X" symbols.
2. Signal Generation (Confluence)
Signals are generated based on a "Triple-Lock" alignment system:
Regime Alignment: Price must be on the correct side of the ML/Trend baseline.
Bias Alignment: Most recent FVG and Imbalance must agree with the directional trade.
Momentum Confirmation: The ML slope must be trending in the direction of the signal.
3. Visualization Guide
Cyan Shapes/Lines: Bullish confluence and aggressive buying.
Hot Pink Shapes/Lines: Bearish confluence and aggressive selling.
Yellow Circle: Point of Control (POC).
Yellow X: Trap detection / Potential exhaustion.
Triangles: High-conviction entry signals.
4. Input Configuration
Delta Sensitivity: Sets the minimum volume delta required for institutional force confirmation.
ML Sensitivity: Adjusts the slope thresholds for regime changes.
Baseline Type: Toggle between Matrix ML prediction and a standard EMA for trend tracking.
Table Controls: Configuration for the top-right dashboard display. village
Pine Script® indicator
CTR Weekly MA + 1D MA (v1)I built this simple pine script to help me trade on the lower timeframe (1d) while still showing my key weekly moving averages to help me trade with the macro trend.
Rules for trading...
Steps for taking a Short position:
1. Wait for all 3 weekly moving averages to be in alignment (8EMA<21SMA<50SMA). When these aligned the candles will change to bright red, meaning bearish.
2. Wait for a pullback to the 1 Day 21SMA. When a candle touches the 21SMA, that candle will change color to white. This will be your alert to get ready to enter into a short.
3. On the next candle you can then take a short position as long as that candle is below the 21SMA, if not, wait for the net daily candle to close. If that is below the 21SMA you can then enter into a short on the opening of the next daily candle.
I built this to trade the Bear Market but this same method can also work in a Bull Market but just do the opposite.
Pine Script® indicator
Pip Surgeon DeluxePip Surgeon Deluxe – Precision Trade Execution System
Pip Surgeon Deluxe is a proprietary, invite-only trading indicator designed for traders who demand clarity, structure, and precision. It blends multi-timeframe trend alignment with refined entry logic, partial profit management, trailing stops, and real-time market condition awareness.
Built for both scalping and swing trading, Pip Surgeon Deluxe adapts to changing market environments using EMA trend structure, VWAP positioning, RSI confirmation, and ADX-based market strength filtering — all presented through a clean on-chart dashboard.
Key Features
Scalp & Swing modes with automatic bias selection
Multi-timeframe confirmation (5m, 30m, 1H)
EMA trend-based structure with dynamic color cues
VWAP positional confirmation
Partial TP (TP1), final TP (TP2), and intelligent trailing stops
Automatic support & resistance levels
Real-time ADX market condition analysis
One-click master alert system (entries, TP, exits)
On-chart dashboard for instant decision-making
Best Used On
Forex, indices, and metals
5m & 15m execution charts
London and New York sessions
⚠️ Disclaimer: This indicator is for educational purposes only. Past performance does not guarantee future results. Trading involves risk, and users are solely responsible for their trading decisions.
Invite-only access. Source code is private and protected.
Pine Script® indicator
Relative Strength Leadership Engine v2.0Relative Strength Leadership Engine v2.0OverviewThe Relative Strength Leadership Engine v2.0 is a context-first diagnostic tool designed to identify true market leadership. Instead of simple ratio lines, this script employs a multi-layered scoring model to determine if a symbol is truly outperforming its benchmark (e.g., SPY) or simply riding market beta.The Problem It SolvesMany relative strength indicators fail to distinguish between idiosyncratic leadership and market correlation. A stock might look strong simply because it is a high-beta names moving in lockstep with a rising index. This engine uses Pearson Correlation Filtering and Volatility Normalization to decouple these factors.How It Works (The Math)To ensure full transparency for the TradingView community, the "Leadership Score" (0–100) is calculated based on four proprietary technical pillars:Baseline Alignment (30 pts): Measures if the $Price / Benchmark$ ratio is above its 21-period EMA.Volatility-Normalized Momentum (25 pts): We calculate a Z-score of the RS slope and divide it by the asset's ATR % of price. This ensures momentum is measured by "clean" price action rather than high-beta volatility spikes.Beta-Decoupling (20 pts): Using ta.correlation, the script penalizes "Market Huggers." Points are awarded when a stock shows strength independent of the benchmark's immediate fluctuations.Freshness & Highs (25 pts): Points are awarded for proximity to 252-day relative strength highs, identifying stocks entering a "Power Zone" of leadership.Interpreting the StatesThe dashboard in the bottom-right identifies three distinct permission states:ENGAGE (Score 80+): Full leadership permission. The asset is outperforming with idiosyncratic strength and clean momentum (See FDX example in the gallery).OBSERVE (Score 50–79): Leadership is present but aging or overly correlated to the market (See MU example in the gallery).STAND DOWN (Score <50): Leadership is broken; the asset is a relative laggard (See CBLL example in the gallery).Technical FeaturesMulti-Timeframe Validation: Optional Weekly/Monthly RS confirmation to filter out "noise."Benchmark Timing Filter: A built-in gate that checks if the broader market (Benchmark) is in a "Risk-Off" regime.Non-Repainting: All security calls use lookahead=barmerge.lookahead_off to ensure historical accuracy.Customizable UI: Toggle the dashboard on/off via the "Style" menu for a cleaner workspace.DisclaimerThis script is an informational diagnostic tool and does not generate trade signals, entries, or exits. Educational use only.
Pine Script® indicator
UCTB BTC[CoinTadpole]UCTB BTC
UCTB is a specialized RSI-based momentum indicator engineered for Bitcoin trading. It introduces a Sustainment Verification Architecture — a structured approach that filters premature signals by requiring RSI conditions to persist across multiple consecutive bars before generating alerts.
Unlike standard RSI threshold alerts that trigger immediately upon crossing, UCTB implements a principle-based filtering system with dual operational modes and configurable signal confidence levels. This architecture addresses the core challenge of volatile cryptocurrency markets: distinguishing between momentary noise and genuine momentum shifts.
🔶 WHAT MAKES THIS INDICATOR ORIGINAL
This is NOT another RSI threshold alert or delayed entry script.
While several RSI-based scripts exist that incorporate bar counting or delay mechanisms, UCTB introduces a fundamentally different approach through its Sustainment Verification Architecture.
The Key Differentiator — Sustainment vs. Delay:
Existing scripts like delayed RSI strategies simply wait N bars after a threshold cross before signaling. UCTB takes a different approach: it requires the RSI condition to be actively maintained throughout the verification period, not merely elapsed time since the initial cross.
How Different Approaches Compare:
Standard RSI signals on threshold cross, which produces many false signals from wicks. Delayed RSI signals N bars after cross, but still triggers on brief touches that bounce back. UCTB Sustainment signals only if the condition persists continuously for N bars, filtering brief touches entirely.
Example Scenario — RSI drops to 29, bounces to 35, then drops to 28 over 3 bars:
Standard RSI would generate 2 signals (Bar 1 and Bar 3). Delayed RSI with 3-bar delay would generate 1 signal after the initial cross plus delay. UCTB Conservative Mode would generate 0 signals because the condition was not sustained continuously — RSI exited the zone on Bar 2 when it bounced to 35.
This sustainment-based filtering represents a structural difference, not merely a parameter adjustment.
🔶 FOUR INTEGRATED COMPONENTS
1. Sustainment Verification Engine
The core innovation. Rather than counting bars since a threshold cross, the algorithm verifies that RSI , RSI , and RSI all remain within the threshold zone. This continuous zone maintenance requirement is what distinguishes sustainment from simple delay.
2. Adaptive Dual-Period System
Automatically selects RSI calculation period based on trading style. Scalping Mode uses RSI(14) for faster response to intraday movements. Swing Mode uses RSI(21) for smoother readings suitable for position trading. This is not simply a toggle between two presets — the entire signal generation logic adapts to the selected period's characteristics.
3. Signal Confidence Filtering
Two distinct verification requirements, not just sensitivity adjustment. Conservative Mode requires continuous zone maintenance where RSI must stay in zone for all 3 bars. Aggressive Mode requires only elapsed time since breach — 3 bars passed, regardless of intermediate exits. These modes apply fundamentally different verification logic, not just different threshold values.
4. Bar-Close Confirmation Protocol
All signals validate against barstate.isconfirmed before dispatch, ensuring that only finalized bar data triggers alerts.
🔶 THE SUSTAINMENT PRINCIPLE
Understanding the value of sustainment verification requires examining how RSI behaves in volatile markets.
The Problem with Threshold-Only Detection:
When RSI briefly touches 30 on a single bar, it often represents a momentary price wick extending beyond the candle body, temporary liquidity gaps that reverse within the same bar, or news-driven spikes that do not reflect underlying momentum. These brief threshold touches generate signals that lack follow-through. Price frequently reverses direction immediately after the touch, creating poorly-timed entries.
The Sustainment Solution:
Requiring RSI to remain below 30 (or above 70) for multiple consecutive bars applies three filtering principles.
Noise Filtering Principle — Random price fluctuations rarely maintain extreme RSI readings for 3+ consecutive bars. The probability of random noise sustaining an extreme condition decreases with each additional bar requirement.
Momentum Confirmation Principle — Sustained extreme RSI readings indicate that buying or selling pressure has persisted over multiple price intervals. A single-bar extreme may be noise; a multi-bar extreme suggests genuine momentum shift.
Signal Processing Foundation — Each additional bar of confirmation serves as an independent verification. This is analogous to requiring multiple sensor readings before triggering an alarm — it reduces false positives from transient spikes.
Practical Demonstration:
Consider this sequence: RSI = 29 → 35 → 28 over three bars. A delayed RSI script (3-bar delay after first crossing below 30) would still generate a signal, because it only checks if 3 bars have elapsed since the threshold was first crossed. UCTB Conservative mode generates no signal, because the RSI exited the zone on Bar 2 (RSI = 35 > 30), breaking the sustainment requirement. This distinction matters in choppy, ranging markets where RSI frequently oscillates around threshold boundaries.
🔶 WHY BITCOIN MARKETS REQUIRE THIS APPROACH
Bitcoin's market microstructure creates specific challenges that make sustainment verification particularly valuable.
High Wick-to-Body Ratio Characteristic:
Bitcoin candles frequently exhibit large wicks relative to their bodies, especially during high-volume periods and around key price levels. These wicks can briefly push RSI into extreme territory without representing genuine trend exhaustion. Sustainment verification filters these wick-driven signals by requiring the condition to persist beyond the initial spike.
Continuous Market Structure:
Unlike traditional markets with defined session breaks, Bitcoin trades 24/7/365. This continuous structure creates more low-liquidity periods (weekends, holidays) where brief RSI extremes occur without follow-through, and more opportunities for unsustained threshold touches during off-peak hours. The sustainment requirement helps filter signals that occur during these transient conditions.
Adaptive Period Rationale:
The dual-period system addresses different Bitcoin trading approaches. RSI(14) is more responsive, suitable for capturing Bitcoin's rapid intraday movements. RSI(21) is smoother, filtering out more short-term fluctuations for swing trading. Manual switching between periods is operationally inconvenient. The mode selector automates this based on declared trading style.
🔶 PRACTICAL VALUE PROPOSITION
What This Indicator Automates:
Manually implementing sustainment verification requires tracking when RSI first entered the threshold zone, whether RSI has remained in the zone for each subsequent bar, and applying different verification rules based on trading mode. Doing this across multiple timeframes while managing active positions is error-prone. UCTB automates this entire verification process.
Operational Benefits:
Reduced Alert Noise — Instead of receiving alerts on every RSI threshold cross (many of which reverse immediately), traders receive alerts only when the sustainment criteria are met.
Consistent Methodology — Human traders often apply confirmation checks inconsistently, sometimes waiting, sometimes not. UCTB applies identical verification logic every time, removing execution variability.
Mode-Based Flexibility — Conservative and Aggressive modes allow traders to adjust verification strictness based on current market conditions without manually reconfiguring parameters.
🔶 ALGORITHM SPECIFICATION
The indicator operates through a sequential verification process:
Step 1: RSI Calculation — Computes RSI using the adaptive period. Scalping mode uses ta.rsi(close, 14). Swing mode uses ta.rsi(close, 21).
Step 2: Threshold Breach Detection — Identifies when RSI transitions into oversold (≤30) or overbought (≥70) territory from outside the zone.
Step 3: Bar Counting — Tracks elapsed bars since the trigger using ta.barssince().
Step 4: Sustainment Verification — Applies mode-specific verification. Conservative Mode verifies that RSI , RSI , and RSI all remain within the threshold zone. Aggressive Mode only verifies that 3 bars have elapsed since initial breach.
Step 5: Signal Dispatch — Signals are generated only when barstate.isconfirmed is true, ensuring bar-close confirmation.
🔶 RECOMMENDED USAGE
Timeframe Selection:
For Scalping Mode, use 15-minute to 1-hour charts. For Swing Mode, use 4-hour to Daily charts.
Mode Selection Guide:
In high volatility conditions, Scalping with Conservative mode provides stricter filtering for noisy conditions. In trending markets, Swing with Conservative mode offers higher confidence entries on pullbacks. In ranging or consolidating markets, Scalping with Aggressive mode captures more signals for range-bound trading. In low volatility environments, either style with Aggressive mode works well since looser filtering is acceptable when noise is lower.
Integration Recommendations:
Combine with support/resistance analysis for entry refinement. Use with volume confirmation for additional validation. Apply standard position sizing and risk management protocols.
🔶 SIGNAL INTERPRETATION
🟢 BUY Signal
Generated when RSI has sustained below 30 for the verification period (mode-dependent). Indicates that selling pressure has persisted across multiple bars, suggesting potential momentum exhaustion. Important: This is NOT a guarantee of reversal. It identifies conditions where sustained RSI weakness may precede a bounce.
🔴 SELL Signal
Generated when RSI has sustained above 70 for the verification period. Indicates that buying pressure has persisted across multiple bars, suggesting potential distribution. Use for exit planning or short consideration, not as an automatic execution trigger.
🔶 NON-REPAINTING CONFIRMATION
This indicator does NOT repaint. All signals validate against barstate.isconfirmed before generation. Historical signals remain fixed once the bar closes. What appears on historical charts is exactly what was displayed in real-time. Intrabar fluctuations may show preliminary readings, but final signals confirm only at bar close.
🔶 IMPORTANT LIMITATIONS
This indicator identifies sustained RSI threshold conditions; it does not predict price direction. Signals indicate potential reversal zones, not guaranteed reversals. Strong trends can maintain oversold/overbought conditions for extended periods without reversing. The 3-bar verification period is optimized for typical Bitcoin volatility; different assets may require adjustment. Sustainment verification reduces signal frequency — traders seeking high-frequency signals may find this limiting. Always use in conjunction with other analysis methods. Past signal patterns do not guarantee future performance. This is an analysis tool, not a standalone trading system.
🔶 RISK DISCLAIMER
Trading cryptocurrencies involves substantial risk of loss and is not suitable for all investors. Bitcoin markets are highly volatile and can experience rapid price movements. This indicator is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Past performance does not guarantee future results. All trading decisions are entirely your own responsibility. Never risk more than you can afford to lose.
🔶 HOW TO GET ACCESS
This script is provided as Invite-Only. To request access, please check the links in my TradingView profile.
Pine Script® indicator















