Enhanced Holt-Winters RSI [BOSWaves]Enhanced Holt-Winters RSI – Next-Level Momentum Smoothing & Signal Precision
Overview
The Enhanced Holt-Winters RSI transforms the classic Relative Strength Index into a robust, lag-minimized momentum oscillator through Holt-Winters triple exponential smoothing. By modeling the level, trend, and cyclical behavior of the RSI series, this indicator delivers smoother, more responsive signals that highlight overbought/oversold conditions, momentum shifts, and high-conviction trading setups without cluttering the chart with noise.
Unlike traditional RSI, which reacts to historical data and produces frequent whipsaws, the Enhanced Holt-Winters RSI filters transient price fluctuations, enabling traders to detect emerging momentum and potential reversal zones earlier.
Theoretical Foundation
The traditional RSI measures relative strength by comparing average gains and losses, but suffers from:
Lag in trend recognition : Signals often arrive after momentum has shifted.
Noise sensitivity : High-frequency price movements generate unreliable crossovers.
Limited insight into structural market shifts : Standard RSI cannot contextualize cyclical or momentum patterns.
The Enhanced Holt-Winters RSI addresses these limitations by applying triple exponential smoothing directly to the RSI series. This decomposes the series into:
Level (Lₜ) : Represents the smoothed central tendency of RSI.
Trend (Tₜ) : Captures rate-of-change in smoothed momentum.
Seasonal Component (Sₜ) : Models short-term cyclical deviations in momentum.
By incorporating these elements, the oscillator produces smoothed RSI values that react faster to emerging trends while suppressing erratic noise. Its internal forecast is mathematical, influencing the smoothed RSI output and signals, rather than being directly plotted.
How It Works
The Enhanced Holt-Winters RSI builds its signal framework through several layers:
1. Base RSI Calculation
Computes standard RSI over the selected period as the primary momentum input.
2. Triple Exponential Smoothing (Holt-Winters)
The RSI is smoothed recursively to extract underlying momentum structure:
Level, trend, and seasonal components are combined to produce a smoothed RSI.
This internal smoothing reduces lag and enhances signal reliability.
3. Momentum Analysis
Short-term momentum shifts are tracked via a moving average of the smoothed RSI, highlighting acceleration or deceleration in directional strength.
4. Volume Confirmation (Optional)
Buy/sell signals can be filtered through a configurable volume threshold, ensuring only high-conviction moves trigger alerts.
5. Visual Output
Colored Candles : Represent overbought (red), oversold (green), or neutral (yellow) conditions.
Oscillator Panel : Plots the smoothed RSI with dynamic color coding for immediate trend context.
Signals : Triangular markers indicate bullish or bearish setups, with stronger signals flagged in extreme zones.
Interpretation
The Enhanced Holt-Winters RSI provides a multi-dimensional perspective on price action:
Trend Strength : Smoothed RSI slope and color coding reflect the direction and momentum intensity.
Momentum Shifts : Rapid changes in the smoothed RSI indicate emerging strength or weakness.
Overbought/Oversold Zones : Highlight areas where price is stretched relative to recent momentum.
High-Conviction Signals : Combined with volume filtering, markers indicate optimal entries/exits.
Cycle Awareness : Smoothing reveals structural patterns, helping traders avoid reacting to noise.
By combining these elements, traders gain early insight into market structure and momentum without relying on raw, lag-prone RSI data.
Strategy Integration
The Enhanced Holt-Winters RSI can be applied across trading styles:
Trend Following
Enter when RSI is aligned with price momentum and color-coded signals confirm trend direction.
Strong slope in the smoothed RSI signals trend continuation.
Reversal Trading
Look for RSI extremes with momentum shifts and strong signal markers.
Compression in oscillator values often precedes reversal setups.
Breakout Detection
Oscillator flattening in neutral zones followed by directional expansion indicates potential breakout conditions.
Multi-Timeframe Confluence
Higher timeframes provide directional bias; lower timeframes refine entry timing using smoothed RSI dynamics.
Technical Implementation Details
Input Source : Close, open, high, low, or price.
Smoothing : Holt-Winters triple exponential smoothing applied to RSI.
Parameters :
Level (α) : Controls smoothing of RSI.
Trend (β) : Adjusts responsiveness to momentum changes.
Seasonal Length : Defines cycles for short-term adjustments.
Delta Smoothing : Reduces choppiness in smoothed RSI difference.
Outputs :
Smoothed RSI
Colored candles and oscillator panel
Buy/Sell signal markers (with optional strength filtering)
Volume Filtering : Optional threshold to confirm signals.
Optimal Application Parameters
Asset-Specific Guidance:
Forex : Use moderate smoothing (α, β) to capture medium-term momentum swings while filtering minor price noise. Works best when combined with volume or volatility filters.
Equities : Balance responsiveness and smoothness to identify sustained sector momentum or rotational shifts; ideal for capturing clean directional transitions.
Cryptocurrency : Increase smoothing parameters slightly to stabilize RSI during extreme volatility; optional volume confirmation can help filter false signals.
Futures/Indices : Lower smoothing sensitivity emphasizes macro momentum and structural trend durability over short-term fluctuations.
Timeframe Optimization:
Scalping (1-5m) : Use higher sensitivity (lower smoothing factors) to react quickly to micro-momentum reversals.
Intraday (15m-1h) : Balance smoothing and responsiveness for detecting short-term acceleration and exhaustion zones.
Swing (4h-Daily) : Apply moderate smoothing to reveal underlying directional persistence and cyclical reversals.
Position (Daily-Weekly) : Use stronger smoothing to isolate dominant momentum trends and filter temporary pullbacks.
Integration Guidelines
Combine with trend filters (EMAs, SuperSmoother MA, ATR-based tools) for confirmation.
Use volume and signal strength markers to filter low-conviction trades.
Slope, color, and signal alignment can guide entry, stop placement, and scaling.
Disclaimer
The Enhanced Holt-Winters RSI is a technical analysis tool, not a guaranteed profit system. Effectiveness depends on proper settings, market structure, and disciplined risk management. Always backtest before live trading.
Oscillators
Puell Multiple Variants [OperationHeadLessChicken]"Puell Multiple Variants" includes three related indicators for analysing Bitcoin miner revenue dynamics:
Classic Puell Multiple – the original indicator showing how current miner revenue compares to its long-term average.
Halving-Corrected Puell Multiple – applies a compensation factor to adjust for miner revenue reductions after each halving, allowing easier comparison to a consistent overvalued threshold.
Revenue RSI – a novel approach applying the Relative Strength Index to miner revenue to identify potential over- and undervalued conditions.
Each component can be shown or hidden individually.
All parameters are fully adjustable via input settings.
Relative Strength Index Remastered [CHE]Relative Strength Index Remastered — Enhanced RSI with robust divergence detection using price-based pivots and line-of-sight validation to reduce false signals compared to the standard RSI indicator.
Summary
RSI Remastered builds on the classic Relative Strength Index by adding a more reliable divergence detection system that relies on price pivots rather than RSI pivots alone, incorporating a line-of-sight check to ensure the RSI path between points remains clear. This approach filters out many false divergences that occur in the original RSI indicator due to its volatile pivot detection on the RSI line itself. Users benefit from clearer reversal and continuation signals, especially in noisy markets, with optional hidden divergence support for trend confirmation. The core RSI calculation and smoothing options remain familiar, but the divergence logic provides materially fewer alerts while maintaining sensitivity.
Motivation: Why this design?
The standard RSI indicator often generates misleading divergence signals because it detects pivots directly on the RSI values, which can fluctuate erratically in volatile conditions, leading to frequent false positives that confuse traders during ranging or choppy price action. RSI Remastered addresses this by shifting pivot detection to the underlying price highs and lows, which are more stable, and adding a validation step that confirms the RSI line does not cross the direct path between pivot points. This design targets the real problem of over-signaling in the original, promoting more actionable insights without altering the RSI's core momentum measurement.
What’s different vs. standard approaches?
- Reference baseline: The classical TradingView RSI indicator, which uses simple RSI-based pivot detection for divergences.
- Architecture differences:
- Pivot identification on price extremes (highs and lows) instead of RSI values, extracting RSI levels at those points for comparison.
- Addition of a line-of-sight validation that checks the RSI path bar by bar between pivots to prevent signals where the line is interrupted.
- Inclusion of hidden divergence types alongside regular ones, using the same robust framework.
- Configurable drawing of connecting lines between validated pivot RSI points for visual clarity.
- Practical effect: Charts show fewer but higher-quality divergence markers and lines, reducing clutter from the original's frequent RSI pivot triggers; this matters for avoiding whipsaws in intraday trading, where the standard version might flag dozens of invalid setups per session.
Key Comparison Aspects
Aspect: Title/Shorttitle
Original RSI: "Relative Strength Index" / "RSI"
Robust Variant: "Relative Strength Index Remastered " / "RSI RM"
Aspect: Max. Lines/Labels
Original RSI: No specification (Standard: 50/50)
Robust Variant: max_lines_count=200, max_labels_count=200 (for more lines/markers in divergences)
Aspect: RSI Calculation & Plots
Original RSI: Identical: RSI with RMA, Plots (line, bands, gradient fills)
Robust Variant: Identical: RSI with RMA, Plots (line, bands, gradient fills)
Aspect: Smoothing (MA)
Original RSI: Identical: Inputs for MA types (SMA, EMA etc.), Bollinger Bands optional
Robust Variant: Identical: Inputs for MA types (SMA, EMA etc.), Bollinger Bands optional
Aspect: Divergence Activation
Original RSI: input.bool(false, "Calculate Divergence") (disabled by default)
Robust Variant: input.bool(true, "Calculate Divergence") (enabled by default, with tooltip)
Aspect: Pivot Calculation
Original RSI: Pivots on RSI (ta.pivotlow/high on RSI values)
Robust Variant: Pivots on price (ta.pivotlow/high on low/high), RSI values then extracted
Aspect: Lookback Values
Original RSI: Fixed: lookbackLeft=5, lookbackRight=5
Robust Variant: Input: L=5 (Pivot Left), R=5 (Pivot Right), adjustable (min=1, max=50)
Aspect: Range Between Pivots
Original RSI: Fixed: rangeUpper=60, rangeLower=5 (via _inRange function)
Robust Variant: Input: rangeUpper=60 (Max Bars), rangeLower=5 (Min Bars), adjustable (min=1–6, max=100–300)
Aspect: Divergence Types
Original RSI: Only Regular Bullish/Bearish: - Bull: Price LL + RSI HL - Bear: Price HH + RSI LH
Robust Variant: Regular + Hidden (optional via showHidden=true): - Regular Bull: Price LL + RSI HL - Regular Bear: Price HH + RSI LH - Hidden Bull: Price HL + RSI LL - Hidden Bear: Price LH + RSI HH
Aspect: Validation
Original RSI: No additional check (only pivot + range check)
Robust Variant: Line-of-Sight Check: RSI line must not cross the connecting line between pivots (line_clear function with slope calculation and loop for each bar in between)
Aspect: Signals (Plots/Shapes)
Original RSI: - Plot of pivot points (if divergence) - Shapes: "Bull"/"Bear" at RSI value, offset=-5
Robust Variant: - No pivot plots, instead shapes at RSI , offset=-R (adjustable) - Shapes: "Bull"/"Bear" (Regular), "HBull"/"HBear" (Hidden) - Colors: Lime/Red (Regular), Teal/Orange (Hidden)
Aspect: Line Drawing
Original RSI: No lines
Robust Variant: Optional (showLines=true): Lines between RSI pivots (thick for regular, dashed/thin for hidden), extend=none
Aspect: Alerts
Original RSI: Only Regular Bullish/Bearish (with pivot lookback reference)
Robust Variant: Regular Bullish/Bearish + Hidden Bullish/Bearish (specific "at latest pivot low/high")
Aspect: Robustness
Original RSI: Simple, prone to false signals (RSI pivots can be volatile)
Robust Variant: Higher: Price pivots are more stable, line-of-sight filters "broken" divergences, hidden support for trend continuations
Aspect: Code Length/Structure
Original RSI: ~100 lines, simple if-blocks for bull/bear
Robust Variant: ~150 lines, extended helper functions (e.g., inRange, line_clear), var group for inputs
How it works (technical)
The indicator first computes the core RSI value based on recent price changes, separating upward and downward movements over the specified length and smoothing them to derive a momentum reading scaled between zero and one hundred. This value is then plotted in a separate pane with fixed upper and lower reference lines at seventy and thirty, along with optional gradient fills to highlight overbought and oversold zones.
For smoothing, a moving average type is applied to the RSI if enabled, with an option to add bands around it based on the variability of recent RSI values scaled by a multiplier. Divergence detection activates on confirmed price pivots: lows for bullish checks and highs for bearish. At each new pivot, the system retrieves the bar index and values (price and RSI) for the current and prior pivot, ensuring they fall within a configurable bar range to avoid unrelated points.
Comparisons then assess whether the price has made a lower low (or higher high) while the RSI at those points moves in the opposite direction—higher for bullish regular, lower for bearish regular. For hidden types, the directions reverse to capture trend strength. The line-of-sight check calculates the straight path between the two RSI points and verifies that the actual RSI values in between stay entirely above (for bullish) or below (for bearish) that path, breaking the signal if any bar violates it. Valid signals trigger shapes at the RSI level of the new pivot and optional lines connecting the points. Initialization uses built-in functions to track prior occurrences, with states persisting across bars for accurate historical comparisons. No higher timeframe data is used, so confirmation occurs after the right pivot bars close, minimizing live-bar repaints.
Parameter Guide
Length — Controls the period for measuring price momentum changes — Default: 14 — Trade-offs/Tips: Shorter values increase responsiveness but add noise and more false signals; longer smooths trends but delays entries in fast markets.
Source — Selects the price input for RSI calculation — Default: Close — Trade-offs/Tips: Use high or low for volatility focus, but close works best for most assets; mismatches can skew overbought/oversold reads.
Calculate Divergence — Enables the enhanced divergence logic — Default: True — Trade-offs/Tips: Disable for pure RSI view to save computation; essential for signal reliability over the standard method.
Type (Smoothing) — Chooses the moving average applied to RSI — Default: SMA — Trade-offs/Tips: None for raw RSI; EMA for quicker adaptation, but SMA reduces whipsaws; Bollinger Bands option adds volatility context at cost of added lines.
Length (Smoothing) — Period for the smoothing average — Default: 14 — Trade-offs/Tips: Match RSI length for consistency; shorter boosts signal speed but amplifies noise in the smoothed line.
BB StdDev — Multiplier for band width around smoothed RSI — Default: 2.0 — Trade-offs/Tips: Lower narrows bands for tighter signals, risking more touches; higher widens for fewer but stronger breakouts.
Pivot Left — Bars to the left for confirming price pivots — Default: 5 — Trade-offs/Tips: Increase for stricter pivots in noisy data, reducing signals; too high delays confirmation excessively.
Pivot Right — Bars to the right for confirming price pivots — Default: 5 — Trade-offs/Tips: Balances with left for symmetry; longer right ensures maturity but shifts signals backward.
Max Bars Between Pivots — Upper limit on distance for valid pivot pairs — Default: 60 — Trade-offs/Tips: Tighten for short-term trades to focus recent action; widen for swing setups but risks unrelated comparisons.
Min Bars Between Pivots — Lower limit to avoid clustered pivots — Default: 5 — Trade-offs/Tips: Raise to filter micro-moves; too low invites overlapping signals like the original RSI.
Detect Hidden — Includes trend-continuation hidden types — Default: True — Trade-offs/Tips: Enable for full trend analysis; disable simplifies to reversals only, akin to basic RSI.
Draw Lines — Shows connecting lines between valid pivots — Default: True — Trade-offs/Tips: Turn off for cleaner charts; helps visually confirm line-of-sight in backtests.
Reading & Interpretation
The main RSI line oscillates between zero and one hundred, crossing above fifty suggesting building momentum and below indicating weakness; touches near seventy or thirty flag potential extremes. The optional smoothed line and bands provide a filtered view—price above the upper band on the RSI pane hints at overextension. Divergence shapes appear as upward labels for bullish (lime for regular, teal for hidden) and downward for bearish (red regular, orange hidden) at the pivot's RSI level, signaling a mismatch only after validation. Connecting lines, if drawn, slope between points without RSI interference, their color matching the shape type; a dashed style denotes hidden. Fewer shapes overall compared to the standard RSI mean higher conviction, but always confirm with price structure.
Practical Workflows & Combinations
- Trend following: Enter longs on regular bullish shapes near support with higher highs in price; filter hidden bullish for pullback buys in uptrends, pairing with a rising smoothed RSI above fifty.
- Exits/Stops: Use bearish regular as reversal warnings to tighten stops; hidden bearish in downtrends confirms continuation—exit if lines show RSI crossing the path.
- Multi-asset/Multi-TF: Defaults suit forex and stocks on one-hour charts; for crypto volatility, widen pivot ranges to ten; scale min/max bars proportionally on daily for swings, avoiding the original's intraday spam.
Behavior, Constraints & Performance
Signals confirm only after the right pivot bars close, so live bars may show tentative pivots that vanish on close, unlike the standard RSI's immediate RSI-pivot triggers—plan for this delay in automation. No higher timeframe calls, so no security-related repaints. Resources include up to two hundred lines and labels for dense charts, with a loop in validation scanning up to three hundred bars between pivots, which is efficient but could slow on very long histories. Known limits: Slight lag at pivot confirmation in trending markets; volatile RSI might rarely miss fine path violations; not ideal for gap-heavy assets where pivots skip.
Sensible Defaults & Quick Tuning
Start with defaults for balanced momentum and divergence on most timeframes. For too many signals (like the original), raise pivot left/right to eight and min bars to ten to filter noise. If sluggish in trends, shorten RSI length to nine and enable EMA smoothing for faster adaptation. In high-volatility assets, widen max bars to one hundred but disable hidden to focus essentials. For clean reversal hunts, set smoothing to none and lines on.
What this indicator is—and isn’t
RSI Remastered serves as a refined momentum and divergence visualization tool, enhancing the standard RSI for better signal quality in technical analysis setups. It is not a standalone trading system, nor does it predict price moves—pair it with volume, structure breaks, and risk rules for decisions. Use alongside position sizing and broader context, not in isolation.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Triple SuperTrend + RSI + Fib BBTriple SuperTrend + RSI + Fibonacci Bollinger Bands Strategy
📊 Overview
This advanced trading strategy combines the power of three SuperTrend indicators with RSI confirmation and Fibonacci Bollinger Bands to generate high-probability trade signals. The strategy is designed to capture strong trending moves while filtering out false signals through multi-indicator confluence.
🔧 Core Components
Three SuperTrend Indicators
The strategy uses three SuperTrend indicators with progressively longer periods and multipliers:
SuperTrend 1: 10-period ATR, 1.0 multiplier (fastest, most sensitive)
SuperTrend 2: 11-period ATR, 2.0 multiplier (medium sensitivity)
SuperTrend 3: 12-period ATR, 3.0 multiplier (slowest, most stable)
This layered approach ensures that all three timeframe perspectives align before generating a signal, significantly reducing false entries.
RSI Confirmation (7-period)
The Relative Strength Index acts as a momentum filter:
Long signals require RSI > 50 (bullish momentum)
Short signals require RSI < 50 (bearish momentum)
This prevents entries during weak or divergent price action.
Fibonacci Bollinger Bands (200, 2.618)
Uses a 200-period Simple Moving Average with 2.618 standard deviation bands (Fibonacci ratio). These bands serve dual purposes:
Visual representation of price extremes
Automatic exit trigger when price reaches overextended levels
📈 Entry Logic
LONG Entry (BUY Signal)
A LONG position is opened when ALL of the following conditions are met simultaneously:
All three SuperTrend indicators turn green (bullish)
RSI(7) is above 50
This is the first bar where all conditions align (no repainting)
SHORT Entry (SELL Signal)
A SHORT position is opened when ALL of the following conditions are met simultaneously:
All three SuperTrend indicators turn red (bearish)
RSI(7) is below 50
This is the first bar where all conditions align (no repainting)
🚪 Exit Logic
Positions are automatically closed when ANY of these conditions occur:
SuperTrend Color Change: Any one of the three SuperTrend indicators changes direction
Fibonacci BB Touch: Price reaches or exceeds the upper or lower Fibonacci Bollinger Band (2.618 standard deviations)
This dual-exit approach protects profits by:
Exiting quickly when trend momentum shifts (SuperTrend change)
Taking profits at statistical price extremes (Fib BB touch)
🎨 Visual Features
Signal Arrows
Green Up Arrow (BUY): Appears below the bar when long entry conditions are met
Red Down Arrow (SELL): Appears above the bar when short entry conditions are met
Yellow Down Arrow (EXIT): Appears above the bar when exit conditions are met
Background Coloring
Light Green Tint: All three SuperTrends are bullish (uptrend environment)
Light Red Tint: All three SuperTrends are bearish (downtrend environment)
SuperTrend Lines
Three colored lines plotted with varying opacity:
Solid line (ST1): Most responsive to price changes
Semi-transparent (ST2): Medium-term trend
Most transparent (ST3): Long-term trend structure
Dashboard
Real-time information panel showing:
Individual SuperTrend status (UP/DOWN)
Current RSI value and color-coded status
Current position (LONG/SHORT/FLAT)
Net Profit/Loss
⚙️ Customizable Parameters
SuperTrend Settings
ATR periods for each SuperTrend (default: 10, 11, 12)
Multipliers for each SuperTrend (default: 1.0, 2.0, 3.0)
RSI Settings
RSI length (default: 7)
RSI source (default: close)
Fibonacci Bollinger Bands
BB length (default: 200)
BB multiplier (default: 2.618)
Strategy Options
Enable/disable long trades
Enable/disable short trades
Initial capital
Position sizing
Commission settings
💡 Strategy Philosophy
This strategy is built on the principle of confluence trading - waiting for multiple independent indicators to align before taking a position. By requiring three SuperTrend indicators AND RSI confirmation, the strategy filters out the majority of low-probability setups.
The multi-timeframe SuperTrend approach ensures that short-term, medium-term, and longer-term trends are all in agreement, which typically occurs during strong, sustainable price moves.
The exit strategy is equally important, using both trend-following logic (SuperTrend changes) and mean-reversion logic (Fibonacci BB touches) to adapt to different market conditions.
📊 Best Use Cases
Trending Markets: Works best in markets with clear directional bias
Higher Timeframes: Designed for 15-minute to daily charts
Volatile Assets: SuperTrend indicators excel in assets with clear trends
Swing Trading: Hold times typically range from hours to days
⚠️ Important Notes
No Repainting: All signals are confirmed and will not change on historical bars
One Signal Per Setup: The strategy prevents duplicate signals on consecutive bars
Exit Protection: Always exits before potentially taking an opposite position
Visual Clarity: All three SuperTrend lines are visible simultaneously for transparency
🎯 Recommended Settings
While default parameters are optimized for general use, consider:
Crypto/Volatile Markets: May benefit from slightly higher multipliers
Forex: Default settings work well for major pairs
Stocks: Consider longer BB periods (250-300) for daily charts
Lower Timeframes: Reduce all periods proportionally for scalping
📝 Alerts
Built-in alert conditions for:
BUY signal triggered
SELL signal triggered
EXIT signal triggered
Set up notifications to never miss a trade opportunity!
Disclaimer: This strategy is for educational and informational purposes only. Past performance does not guarantee future results. Always backtest thoroughly and practice proper risk management before live trading.
AO Divergence RCT PRO//@description=This indicator, AO Divergence Pro, is a powerful tool designed to automatically identify and plot both classic and hidden divergences on the Awesome Oscillator (AO). Divergences occur when the price action and the oscillator move in opposite directions, often signaling a potential shift in market momentum.
//
// --- Key Features ---
// 1. Regular (Classic) Divergence Detection: This feature identifies potential trend reversals.
// - A **Bullish Regular Divergence** (labeled 'R') is found when the price makes a lower low, but the AO makes a higher low. This suggests that downward momentum is weakening and a reversal to the upside may be imminent.
// - A **Bearish Regular Divergence** (labeled 'R') is found when the price makes a higher high, but the AO makes a lower high. This suggests that upward momentum is fading and a reversal to the downside may be coming.
//
// 2. Hidden Divergence Detection: This feature identifies potential trend continuations.
// - A **Bullish Hidden Divergence** (labeled 'H') is found when the price makes a higher low, but the AO makes a lower low. This often occurs during a pullback in an uptrend, suggesting the trend is likely to resume.
// - A **Bearish Hidden Divergence** (labeled 'H') is found when the price makes a lower high, but the AO makes a higher high. This often occurs during a rally in a downtrend, suggesting the downtrend is likely to continue.
//
// 3. Full Customization: The indicator allows you to toggle the display of each type of divergence (Bullish/Bearish, Regular/Hidden) independently. You can also adjust the pivot detection sensitivity and the time range between divergences to filter signals according to your trading style.
//
// --- How to Use ---
// 1. **Identify Reversals:** Look for the 'R' labels on the chart. A bullish 'R' in a downtrend is a strong signal to consider a long position. A bearish 'R' in an uptrend is a signal to consider a short position.
// 2. **Confirm Continuations:** Look for the 'H' labels. A bullish 'H' during an uptrend pullback can be a good opportunity to add to your position. A bearish 'H' during a downtrend rally can be a signal to enter a short trade.
// 3. **Filter Signals:** Use the settings panel to control the number of signals. For example, increasing the "Min Bars Between" will show fewer, but potentially more reliable, divergences.
//
// --- Attribution ---
// Created by Carlos Mauricio Vizcarra.
//
// --- Disclaimer ---
// This script is for informational and educational purposes only. It is not financial advice. Past performance is not indicative of future results.
RSI Bollinger Bands [DCAUT]█ RSI Bollinger Bands
📊 ORIGINALITY & INNOVATION
The RSI Bollinger Bands indicator represents a meaningful advancement in momentum analysis by combining two proven technical tools: the Relative Strength Index (RSI) and Bollinger Bands. This combination addresses a significant limitation in traditional RSI analysis - the use of fixed overbought/oversold thresholds (typically 70/30) that fail to adapt to changing market volatility conditions.
Core Innovation:
Rather than relying on static threshold levels, this indicator applies Bollinger Bands statistical analysis directly to RSI values, creating dynamic zones that automatically adjust based on recent momentum volatility. This approach helps reduce false signals during low volatility periods while remaining sensitive to genuine extremes during high volatility conditions.
Key Enhancements Over Traditional RSI:
Dynamic Thresholds: Overbought/oversold zones adapt to market conditions automatically, eliminating the need for manual threshold adjustments across different instruments and timeframes
Volatility Context: Band width provides immediate visual feedback about momentum volatility, helping traders distinguish between stable trends and erratic movements
Reduced False Signals: During ranging markets, narrower bands filter out minor RSI fluctuations that would trigger traditional fixed-threshold signals
Breakout Preparation: Band squeeze patterns (similar to price-based BB) signal potential momentum regime changes before they occur
Self-Referencing Analysis: By measuring RSI against its own statistical behavior rather than arbitrary levels, the indicator provides more relevant context
📐 MATHEMATICAL FOUNDATION
Two-Stage Calculation Process:
Stage 1: RSI Calculation
RSI = 100 - (100 / (1 + RS))
where RS = Average Gain / Average Loss over specified period
The RSI normalizes price momentum into a bounded 0-100 scale, making it ideal for statistical band analysis.
Stage 2: Bollinger Bands on RSI
Basis = MA(RSI, BB Length)
Upper Band = Basis + (StdDev(RSI, BB Length) × Multiplier)
Lower Band = Basis - (StdDev(RSI, BB Length) × Multiplier)
Band Width = Upper Band - Lower Band
The Bollinger Bands measure RSI's standard deviation from its own moving average, creating statistically-derived dynamic zones.
Statistical Interpretation:
Under normal distribution assumptions with default 2.0 multiplier, approximately 95% of RSI values should fall within the bands
Band touches represent statistically significant momentum extremes relative to recent behavior
Band width expansion indicates increasing momentum volatility (strengthening trend or increasing uncertainty)
Band width contraction signals momentum consolidation and potential regime change preparation
📊 COMPREHENSIVE SIGNAL ANALYSIS
Visual Color Signals:
This indicator features dynamic color fills that highlight extreme momentum conditions:
Green Fill (Above Upper Band):
Appears when RSI breaks above the upper band, indicating exceptionally strong bullish momentum
Represents dynamic overbought zone - not necessarily a reversal signal but a warning of extreme conditions
In strong uptrends, green fills can persist as RSI "rides the band" - this indicates sustained momentum strength
Exit of green zone (RSI falling back below upper band) often signals initial momentum weakening
Red Fill (Below Lower Band):
Appears when RSI breaks below the lower band, indicating exceptionally weak bearish momentum
Represents dynamic oversold zone - potential reversal or continuation signal depending on trend context
In strong downtrends, red fills can persist as RSI "rides the band" - this indicates sustained selling pressure
Exit of red zone (RSI rising back above lower band) often signals initial momentum recovery
Position-Based Signals:
Upper Band Interactions:
RSI Touching Upper Band: Dynamic overbought condition - momentum is extremely strong relative to recent volatility, potential exhaustion or continuation depending on trend context
RSI Riding Upper Band: Sustained strong momentum, often seen in powerful trends, not necessarily an immediate reversal signal but warrants monitoring for exhaustion
RSI Crossing Below Upper Band: Initial momentum weakening signal, particularly significant if accompanied by price divergence
Lower Band Interactions:
RSI Touching Lower Band: Dynamic oversold condition - momentum is extremely weak relative to recent volatility, potential reversal or continuation of downtrend
RSI Riding Lower Band: Sustained weak momentum, common in strong downtrends, monitor for potential exhaustion
RSI Crossing Above Lower Band: Initial momentum strengthening signal, early indication of potential reversal or consolidation
Basis Line Signals:
RSI Above Basis: Bullish momentum regime - upward pressure dominant
RSI Below Basis: Bearish momentum regime - downward pressure dominant
Basis Crossovers: Momentum regime shifts, more significant when accompanied by band width changes
RSI Oscillating Around Basis: Balanced momentum, often indicates ranging market conditions
Volatility-Based Signals:
Band Width Patterns:
Narrow Bands (Squeeze): Momentum volatility compression, often precedes significant directional moves, similar to price coiling patterns
Expanding Bands: Increasing momentum volatility, indicates trend acceleration or growing uncertainty
Narrowest Band in 100 Bars: Extreme compression alert, high probability of upcoming volatility expansion
Advanced Pattern Recognition:
Divergence Analysis:
Bullish Divergence: Price makes lower lows while RSI touches or stays above previous lower band touch, suggests downward momentum weakening
Bearish Divergence: Price makes higher highs while RSI touches or stays below previous upper band touch, suggests upward momentum weakening
Hidden Bullish: Price makes higher lows while RSI makes lower lows at the lower band, indicates strong underlying bullish momentum
Hidden Bearish: Price makes lower highs while RSI makes higher highs at the upper band, indicates strong underlying bearish momentum
Band Walk Patterns:
Upper Band Walk: RSI consistently touching or staying near upper band indicates exceptionally strong trend, wait for clear break below basis before considering reversal
Lower Band Walk: RSI consistently at lower band signals very weak momentum, requires break above basis for reversal confirmation
🎯 STRATEGIC APPLICATIONS
Strategy 1: Mean Reversion Trading
Setup Conditions:
Market Type: Ranging or choppy markets with no clear directional trend
Timeframe: Works best on lower timeframes (5m-1H) or during consolidation phases
Band Characteristic: Normal to narrow band width
Entry Rules:
Long Entry: RSI touches or crosses below lower band, wait for RSI to start rising back toward basis before entry
Short Entry: RSI touches or crosses above upper band, wait for RSI to start falling back toward basis before entry
Confirmation: Use price action confirmation (candlestick reversal patterns) at band touches
Exit Rules:
Target: RSI returns to basis line or opposite band
Stop Loss: Fixed percentage or below recent swing low/high
Time Stop: Exit if position not profitable within expected timeframe
Strategy 2: Trend Continuation Trading
Setup Conditions:
Market Type: Clear trending market with higher highs/lower lows
Timeframe: Medium to higher timeframes (1H-Daily)
Band Characteristic: Expanding or wide bands indicating strong momentum
Entry Rules:
Long Entry in Uptrend: Wait for RSI to pull back to basis line or slightly below, enter when RSI starts rising again
Short Entry in Downtrend: Wait for RSI to rally to basis line or slightly above, enter when RSI starts falling again
Avoid Counter-Trend: Do not fade RSI at bands during strong trends (band walk patterns)
Exit Rules:
Trailing Stop: Move stop to break-even when RSI reaches opposite band
Trend Break: Exit when RSI crosses basis against trend direction with conviction
Band Squeeze: Reduce position size when bands start narrowing significantly
Strategy 3: Breakout Preparation
Setup Conditions:
Market Type: Consolidating market after significant move or at key technical levels
Timeframe: Any timeframe, but longer timeframes provide more reliable breakouts
Band Characteristic: Narrowest band width in recent 100 bars (squeeze alert)
Preparation Phase:
Identify band squeeze condition (bands at multi-period narrowest point)
Monitor price action for consolidation patterns (triangles, rectangles, flags)
Prepare bracket orders for both directions
Wait for band expansion to begin
Entry Execution:
Breakout Confirmation: Enter in direction of RSI band breakout (RSI breaks above upper band or below lower band)
Price Confirmation: Ensure price also breaks corresponding technical level
Volume Confirmation: Look for volume expansion supporting the breakout
Risk Management:
Stop Loss: Place beyond consolidation pattern opposite extreme
Position Sizing: Use smaller size due to false breakout risk
Quick Exit: Exit immediately if RSI returns inside bands within 1-3 bars
Strategy 4: Multi-Timeframe Analysis
Timeframe Selection:
Higher Timeframe: Daily or 4H for trend context
Trading Timeframe: 1H or 15m for entry signals
Confirmation Timeframe: 5m or 1m for precise entry timing
Analysis Process:
Trend Identification: Check higher timeframe RSI position relative to bands, trade only in direction of higher timeframe momentum
Setup Formation: Wait for trading timeframe RSI to show pullback to basis in trending direction
Entry Timing: Use confirmation timeframe RSI band touch or crossover for precise entry
Alignment Confirmation: All timeframes should show RSI moving in same direction for highest probability setups
📋 DETAILED PARAMETER CONFIGURATION
RSI Source:
Close (Default): Standard price point, balances responsiveness and reliability
HL2: Reduces noise from intrabar volatility, provides smoother RSI values
HLC3 or OHLC4: Further smoothing for very choppy markets, slower to respond but more stable
Volume-Weighted: Consider using VWAP or volume-weighted prices for additional liquidity context
RSI Length Parameter:
Shorter Periods (5-10): More responsive but generates more signals, suitable for scalping or very active trading, higher noise level
Standard (14): Default and most widely used setting, proven balance between responsiveness and reliability, recommended starting point
Longer Periods (21-30): Smoother momentum measurement, fewer but potentially more reliable signals, better for swing trading or position trading
Optimization Note: Test across different market regimes, optimal length often varies by instrument volatility characteristics
RSI MA Type Parameter:
RMA (Default): Wilder's original smoothing method, provides traditional RSI behavior with balanced lag, most widely recognized and tested, recommended for standard technical analysis
EMA: Exponential smoothing gives more weight to recent values, faster response to momentum changes, suitable for active trading and trending markets, reduces lag compared to RMA
SMA: Simple average treats all periods equally, smoothest output with highest lag, best for filtering noise in choppy markets, useful for long-term position analysis
WMA: Weighted average emphasizes recent data less aggressively than EMA, middle ground between SMA and EMA characteristics, balanced responsiveness for swing trading
Advanced Options: Full access to 25+ moving average types including HMA (reduced lag), DEMA/TEMA (enhanced responsiveness), KAMA/FRAMA (adaptive behavior), T3 (smoothness), Kalman Filter (optimal estimation)
Selection Guide: RMA for traditional analysis and backtesting consistency, EMA for faster signals in trending markets, SMA for stability in ranging markets, adaptive types (KAMA/FRAMA) for varying volatility regimes
BB Length Parameter:
Short Length (10-15): Tighter bands that react quickly to RSI changes, more frequent band touches, suitable for active trading styles
Standard (20): Balanced approach providing meaningful statistical context without excessive lag
Long Length (30-50): Smoother bands that filter minor RSI fluctuations, captures only significant momentum extremes, fewer but higher quality signals
Relationship to RSI Length: Consider BB Length greater than RSI Length for cleaner signals
BB MA Type Parameter:
SMA (Default): Standard Bollinger Bands calculation using simple moving average for basis line, treats all periods equally, widely recognized and tested approach
EMA: Exponential smoothing for basis line gives more weight to recent RSI values, creates more responsive bands that adapt faster to momentum changes, suitable for trending markets
RMA: Wilder's smoothing provides consistent behavior aligned with traditional RSI when using RMA for both RSI and BB calculations
WMA: Weighted average for basis line balances recent emphasis with historical context, middle ground between SMA and EMA responsiveness
Advanced Options: Full access to 25+ moving average types for basis calculation, including HMA (reduced lag), DEMA/TEMA (enhanced responsiveness), KAMA/FRAMA (adaptive to volatility changes)
Selection Guide: SMA for standard Bollinger Bands behavior and backtesting consistency, EMA for faster band adaptation in dynamic markets, matching RSI MA type creates unified smoothing behavior
BB Multiplier Parameter:
Conservative (1.5-1.8): Tighter bands resulting in more frequent touches, useful in low volatility environments, higher signal frequency but potentially more false signals
Standard (2.0): Default setting representing approximately 95% confidence interval under normal distribution, widely accepted statistical threshold
Aggressive (2.5-3.0): Wider bands capturing only extreme momentum conditions, fewer but potentially more significant signals, reduces false signals in high volatility
Adaptive Approach: Consider adjusting multiplier based on instrument characteristics, lower multiplier for stable instruments, higher for volatile instruments
Parameter Optimization Workflow:
Start with default parameters (RSI:14, BB:20, Mult:2.0)
Test across representative sample period including different market regimes
Adjust RSI length based on desired responsiveness vs stability tradeoff
Tune BB length to match your typical holding period
Modify multiplier to achieve desired signal frequency
Validate on out-of-sample data to avoid overfitting
Document optimal parameters for different instruments and timeframes
Reference Levels Display:
Enabled (Default): Shows traditional 30/50/70 levels for comparison with dynamic bands, helps visualize the adaptive advantage
Disabled: Cleaner chart focusing purely on dynamic zones, reduces visual clutter for experienced users
Educational Value: Keeping reference levels visible helps understand how dynamic bands differ from fixed thresholds across varying market conditions
📈 PERFORMANCE ANALYSIS & COMPETITIVE ADVANTAGES
Comparison with Traditional RSI:
Fixed Threshold RSI Limitations:
In ranging low-volatility markets: RSI rarely reaches 70/30, missing tradable extremes
In trending high-volatility markets: RSI frequently breaks through 70/30, generating excessive false reversal signals
Across different instruments: Same thresholds applied to volatile crypto and stable forex pairs produce inconsistent results
Threshold Adjustment Problem: Manually changing thresholds for different conditions is subjective and lagging
RSI Bollinger Bands Advantages:
Automatic Adaptation: Bands adjust to current volatility regime without manual intervention
Consistent Logic: Same statistical approach works across different instruments and timeframes
Reduced False Signals: Band width filtering helps distinguish meaningful extremes from noise
Additional Information: Band width provides volatility context missing in standard RSI
Objective Extremes: Statistical basis (standard deviations) provides objective extreme definition
Comparison with Price-Based Bollinger Bands:
Price BB Characteristics:
Measures absolute price volatility
Affected by large price gaps and outliers
Band position relative to price not normalized
Difficult to compare across different price scales
RSI BB Advantages:
Normalized Scale: RSI's 0-100 bounds make band interpretation consistent across all instruments
Momentum Focus: Directly measures momentum extremes rather than price extremes
Reduced Gap Impact: RSI calculation smooths price gaps impact on band calculations
Comparable Analysis: Same RSI BB appearance across stocks, forex, crypto enables consistent strategy application
Performance Characteristics:
Signal Quality:
Higher Signal-to-Noise Ratio: Dynamic bands help filter RSI oscillations that don't represent meaningful extremes
Context-Aware Alerts: Band width provides volatility context helping traders adjust position sizing and stop placement
Reduced Whipsaws: During consolidations, narrower bands prevent premature signals from minor RSI movements
Responsiveness:
Adaptive Lag: Band calculation introduces some lag, but this lag is adaptive to current conditions rather than fixed
Faster Than Manual Adjustment: Automatic band adjustment is faster than trader's ability to manually modify thresholds
Balanced Approach: Combines RSI's inherent momentum lag with BB's statistical smoothing for stable yet responsive signals
Versatility:
Multi-Strategy Application: Supports both mean reversion (ranging markets) and trend continuation (trending markets) approaches
Universal Instrument Coverage: Works effectively across equities, forex, commodities, cryptocurrencies without parameter changes
Timeframe Agnostic: Same interpretation applies from 1-minute charts to monthly charts
Limitations and Considerations:
Known Limitations:
Dual Lag Effect: Combines RSI's momentum lag with BB's statistical lag, making it less suitable for very short-term scalping
Requires Volatility History: Needs sufficient bars for BB calculation, less effective immediately after major regime changes
Statistical Assumptions: Assumes RSI values are somewhat normally distributed, extreme trending conditions may violate this
Not a Standalone System: Like all indicators, should be combined with price action analysis and risk management
Optimal Use Cases:
Best for swing trading and position trading timeframes
Most effective in markets with alternating volatility regimes
Ideal for traders who use multiple instruments and timeframes
Suitable for systematic trading approaches requiring consistent logic
Suboptimal Conditions:
Very low timeframes (< 5 minutes) where lag becomes problematic
Instruments with extreme volatility spikes (gap-prone markets)
Markets in strong persistent trends where mean reversion rarely occurs
Periods immediately following major structural changes (new trading regime)
USAGE NOTES
This indicator is designed for technical analysis and educational purposes to help traders understand the interaction between momentum measurement and statistical volatility bands. The RSI Bollinger Bands has limitations and should not be used as the sole basis for trading decisions.
Important Considerations:
No Predictive Guarantee: Past band touches and patterns do not guarantee future price behavior
Market Regime Dependency: Indicator performance varies significantly between trending and ranging market conditions
Complementary Analysis Required: Should be used alongside price action, support/resistance levels, and fundamental analysis
Risk Management Essential: Always use proper position sizing, stop losses, and risk controls regardless of signal quality
Parameter Sensitivity: Different instruments and timeframes may require parameter optimization for optimal results
Continuous Monitoring: Band characteristics change with market conditions, requiring ongoing assessment
Recommended Supporting Analysis:
Price structure analysis (support/resistance, trend lines)
Volume confirmation for breakout signals
Multiple timeframe alignment
Market context awareness (news events, session times)
Correlation analysis with related instruments
The indicator aims to provide adaptive momentum analysis that adjusts to changing market volatility, but traders must apply sound judgment, proper risk management, and comprehensive market analysis in their decision-making process.
AI Bot Regime Feed (v6) — stableThis indicator generates real-time, structured JSON alerts for external trading bots or automation systems.
It combines multiple technical layers to identify market regimes and high-probability buy/sell events, and sends them to any webhook endpoint (e.g., a FastAPI or Zapier listener).
Lucas' Money GlitchHere's a description you can use to publish your indicator to TradingView:
Title: Triple SuperTrend + RSI + Fib BB + Volume Oscillator
Short Description:
Advanced multi-indicator system combining three SuperTrends, RSI, Fibonacci Bollinger Bands, DEMA filter, and Volume Oscillator for precise trade entry and exit signals.
Full Description:
Overview
This comprehensive trading indicator combines multiple proven technical analysis tools to identify high-probability trade setups with built-in risk management through automated take profit levels.
Key Features
📊 Triple SuperTrend System
Uses three SuperTrend indicators with different ATR periods (10, 11, 12) and multipliers (1.0, 2.0, 3.0)
Requires all three SuperTrends to align before generating signals
Reduces false signals and confirms trend strength
📈 Volume Oscillator Filter
Calculates volume momentum using short and long-term moving averages
Requires volume oscillator to be above 20% threshold for trade entries
Ensures trades only occur during periods of strong volume activity
Displayed as a clean histogram in separate pane (green = bullish, red = bearish)
🎯 RSI Confirmation
7-period RSI must be above 50 for buy signals
RSI must be below 50 for sell signals
Prevents counter-trend entries
🌊 200 DEMA Trend Filter
Double Exponential Moving Average acts as major trend filter
Optional: Only buy above DEMA, only sell below DEMA
Can be toggled on/off based on trading style
📐 Fibonacci Bollinger Bands
Uses 2.618 Fibonacci multiplier (Golden Ratio)
200-period basis
Price touching bands triggers exit signals
Helps identify overextended moves
Entry Signals
BUY Signal (Green Triangle):
All three SuperTrends turn bullish simultaneously
RSI > 50
Price above 200 DEMA (if filter enabled)
Volume Oscillator > 20%
SELL Signal (Red Triangle):
All three SuperTrends turn bearish simultaneously
RSI < 50
Price below 200 DEMA (if filter enabled)
Volume Oscillator > 20%
Exit Signals
Automatic Exits Occur When:
Any of the three SuperTrends changes direction
Price touches Fibonacci Bollinger Band (upper or lower)
Take Profit target is reached (1.5x the distance from entry to ST1)
Exit Labels:
🟠 "TP" = Take Profit hit
🟡 "X" = SuperTrend change or BB touch
Visual Elements
Orange Line: Dynamic take profit level based on SuperTrend distance
Green/Red Lines: Three SuperTrend levels (varying opacity)
Purple Bands: Fibonacci Bollinger Bands with shaded area
Blue Line: 200 DEMA
Background Tint: Green when all bullish, red when all bearish
Volume Histogram: Separate pane showing volume oscillator
Dashboard Display
Real-time information table showing:
Current position status (Long/Short/Flat)
RSI value
Volume Oscillator percentage
Overall trend direction
Alert Conditions
Set up custom alerts for:
Buy signals
Sell signals
Take profit hits
Exit signals
Customizable Parameters
SuperTrend Settings:
Individual ATR periods and multipliers for each SuperTrend
Default: ST1(10,1.0), ST2(11,2.0), ST3(12,3.0)
Volume Oscillator:
Short length (default: 5)
Long length (default: 10)
Threshold percentage (default: 20%)
Toggle filter on/off
Other Filters:
RSI length (default: 7)
DEMA length (default: 200)
Fib BB length and multiplier
Take profit multiplier (default: 1.5x)
Best Use Cases
Trend following strategies
Swing trading
Day trading on higher timeframes (15min+)
Works on all markets: Stocks, Forex, Crypto, Futures
Notes
This is an indicator, not an automated strategy
Signals are for informational purposes only
Always practice proper risk management
Test on historical data before live trading
Works best in trending markets
Last Candle of Hour Highlighter (M1 + M5)Highlights the last candle of every hour on 1-minute (M1) and 5-minute (M5) charts, making it easier to spot session closes, breakouts, and end-of-hour price action at a glance.
Detailed Description / How to Use:
This indicator automatically detects the last candle of each hour and changes its colour for quick visual reference. It’s designed for traders who use short-term timeframes (M1, M5) and want a clean visual cue for hourly closes.
Features:
• Automatically detects M1 and M5 timeframes.
• Highlights the last candle of each hour with a customisable colour.
• Optional Bull/Bear mode: colour changes depending on candle direction.
• Simple and lightweight — does not affect chart performance.
Inputs / Settings:
1. Color by Bull/Bear – Toggle on to automatically colour the last candle green (bullish) or red (bearish) based on its close relative to the open.
2. Highlight Colour – Choose a single colour if Bull/Bear mode is off.
3. Bullish Colour – Choose the colour for bullish last candles.
4. Bearish Colour – Choose the colour for bearish last candles.
Usage Tips:
• Works best on 1-minute and 5-minute charts.
• Ideal for spotting end-of-hour reversals, breakout candles, and momentum shifts.
• Can be combined with other indicators like support/resistance or moving averages for more advanced strategies.
Triple SuperTrend + RSI + Fib BB + Vol Osc Strategy✅ Key Features Implemented:
Three SuperTrend Indicators with different opacities:
ST1: 10 period, 1.0 multiplier (solid)
ST2: 11 period, 2.0 multiplier (40% transparent)
ST3: 12 period, 3.0 multiplier (70% transparent)
Signal Logic (no repainting):
BUY: All 3 SuperTrends turn green + RSI(7) > 50
SELL: All 3 SuperTrends turn red + RSI(7) < 50
EXIT: Any SuperTrend changes color OR price touches Fib BB
Fibonacci Bollinger Bands (200 SMA ± 2.618 × StdDev):
Purple bands with subtle fill
Gray dashed middle line
Visual Elements:
Green "BUY" labels below bars
Red "SELL" labels above bars
Yellow circle "EXIT" labels at candle tops
Green/red background tint when all STs align
Info dashboard showing real-time status
Alert Conditions for BUY, SELL, and EXIT
Position Tracking ensures only one signal per condition change
📊 Usage:
Copy the entire code and paste it into TradingView's Pine Editor, then click "Add to Chart". The indicator will display all three SuperTrends, Fibonacci Bollinger Bands, and generate signals according to your exact specifications.
The dashboard in the top-right corner shows the current status of each SuperTrend, RSI value, and whether you're in a position!RetryLH
Nifty Options 3Point SL - Buy OnlyThis is suitable for only Option Buyer only,
The provided strategy uses a combination of technical indicators and filters for entering and exiting buy (long) trades on Nifty options with specific criteria and risk management. Here is an analysis of the trade criteria and precautions:
### Trade Criteria
1. **Trend Filter (EMA 200):**
The strategy trades only in the direction of the major trend defined by the 200-period Exponential Moving Average (EMA).
- Long trades occur only when the price is above the EMA 200, indicating an uptrend.
2. **Squeeze Momentum Indicator (LazyBear Squeeze):**
This indicator combines Bollinger Bands and Keltner Channels to detect periods of low volatility (squeeze) and subsequent momentum bursts when price starts moving with direction.
- The strategy requires the squeeze to be off (volatility expanding) and positive squeeze momentum for long entries.
3. **Swing High/Low Levels:**
The strategy uses recent pivot highs and lows as breakout and exit points.
- Long entries happen on a breakout above the last swing high.
- Exits occur when price drops below the last swing low.
4. **Price Angle Filter:**
The entry requires the price movement angle over a lookback period to exceed a set threshold (27 degrees). This filters for strong momentum in price direction.
5. **Time Filter:**
Trades are only taken during India trading hours from 4:00 AM to 11:00 PM IST, likely to avoid low liquidity periods.
6. **Stop Loss:**
A fixed stop loss of 137 points below the entry price is used to limit loss on each trade.
### Precautions and Risk Management
- **Trend Confirmation:** Restricting entries only in the direction of the 200 EMA prevents counter-trend trades, reducing risk of false signals and larger drawdowns.
- **Volatility Squeeze and Momentum Requirement:** Entering trades only after volatility expansion and confirmed momentum increases probability of a sustained move.
- **Breakout Entry:** Using recent swing highs as entry triggers helps ensure price is confirming strength and not entering prematurely.
- **Angle Threshold:** Filtering entries to strong price moves avoids whipsaws when price movement is weak or sideways.
- **Time Window:** Restricting the trading window reduces exposure to after-hours or low volume moves that can cause erratic behavior.
- **Fixed Stop Loss:** Predefined stop loss size allows strict risk control on each trade.
- **Exit on Swing Low Break:** Exiting on price falling below recent swing low helps to cut losses or secure profits when momentum reverses.
### Summary
Overall, the strategy combines trend, volatility, momentum, price pattern, and time filters for trade selection with fixed stop loss for risk management. It is designed to participate in strong trending moves to the upside while avoiding sideways or low momentum conditions.
This cautious multi-filter approach reduces false entries but may miss some moves due to strict criteria. Monitoring performance and adjusting parameters like stop loss points or angle threshold can further optimize risk-reward.
Let me know if you want a detailed breakdown or suggestions for enhancing this strategy further.
⦁ Disclaimer: The content in this video is for educational purposes only and should not be considered financial advice. We are not SEBI-registered advisors. Cryptocurrency trading is highly volatile and carries significant risk. Consult a qualified financial advisor before making any investment decisions. Forex trading is prohibited in India. About Us: We provide educational content on trading strategies and market analysis.
Connect With Us: For business inquiries, email us at: customercare@eamzn.in
Backtesting Services: We offer strategy backtesting on TradingView. Fee: Contact us for details.
Short-Term Capitulation Oscillator (STCO, Diodato 2019)Description:
This script is a faithful implementation of the Short-Term Capitulation Oscillator (STCO) from Chris Diodato's 2019 CMT paper, "Making The Most Of Panic". It's a tactical breadth and volume oscillator designed to "fish for market bottoms" by identifying short-term investor capitulation.
What It Is
The STCO combines the 10-day moving averages of NYSE up-volume and advancing issues. It measures the ratio of advancing momentum (in both volume and number of issues) relative to the total traded momentum. The result is a raw, un-normalized oscillator that typically ranges from 0 to 200.
How to Interpret
The STCO is a tactical tool for identifying near-term oversold conditions and potential bounces.
Low Readings: Indicate that sellers have likely exhausted themselves in the short term, creating a potential entry point for a bounce. The paper found that readings below 90, 85, and 80 were often followed by strong market performance over the next 5-20 days.
Overbought/Oversold Lines: Use the customizable overbought/oversold lines to define your own capitulation zones and potential entry areas.
Settings
Data Sources: Allows toggling the use of "Unchanged" issues/volume data.
Thresholds: You can set the overbought and oversold levels based on the paper's research or your own testing.
Long-Term Capitulation Oscillator (LTCO, Diodato 2019)Description:
This script is a faithful implementation of the Long-Term Capitulation Oscillator (LTCO) from Chris Diodato's award-winning 2019 CMT paper, "Making The Most Of Panic". It is a strategic, market-wide breadth and volume oscillator designed to identify major, long-term market bottoms.
What It Is
The LTCO combines long-term moving averages (34, 55, 89, 144, and 233-day) of NYSE advancing/declining issues and up/down volume. It uses a unique "average of averages" method to create a responsive yet strategic long-term indicator. This script plots the raw, un-normalized value as described in the paper, which typically oscillates in the 700-1100 range.
How to Interpret
The LTCO is a strategic tool for identifying potentially significant market turning points.
Extremely Low Readings: Suggest that a long-term period of selling has reached a point of exhaustion, potentially marking a major bear market low or a generational buying opportunity. The paper backtested various thresholds, with values below 950, 925, and especially 875 showing historically strong forward returns over the next 6-24 months.
Overbought/Oversold Lines: The script includes customizable overbought/oversold lines to help you visually identify these critical zones.
Settings
Data Sources: Allows toggling the use of "Unchanged" issues/volume data for the calculation.
Thresholds: You can set the overbought and oversold levels to your preference, based on the paper's findings or your own research.
OG Indicators - EnhancedA simple effort to combine William's % R, MACD & Stochastic into single script
Diodato 'All Stars Align' SignalDescription:
This indicator is an overlay that plots the "All Stars Align" buy signal from Chris Diodato's 2019 CMT paper, "Making The Most Of Panic." It is designed to identify high-conviction, short-term buying opportunities by requiring a confluence of both price-based momentum and market-internal weakness.
What It Is
This script works entirely in the background, calculating three separate indicators: the 14-day Slow Stochastic, the Short-Term Capitulation Oscillator (STCO), and the 3-DMA of % Declining Issues. It then plots a signal directly on the main price chart only when the specific "All Stars Align" conditions are met.
How to Interpret
A green cross (+) appears below a price bar when a high-conviction buy signal is generated. This signal triggers only when two primary conditions are true:
The 14-day Slow Stochastic is in "oversold" territory (e.g., below 20).
AND at least one of the market internal indicators shows a state of panic:
Either the STCO is oversold (e.g., below 140).
Or the 3-DMA % Declines shows a panic spike (e.g., above 65).
This confluence signifies a potential exhaustion of sellers and can mark an opportune moment to look for entries.
Settings
Trigger Thresholds: You can customize the exact levels that define an "oversold" or "panic" state for each of the three underlying indicators.
Data Sources: Allows toggling the use of "Unchanged" data for the background calculations.
Stochastic Settings: You can adjust the parameters for the Slow Stochastic calculation.
Standard Deviation VolatilityThe Standard Deviation (StDev) measures the volatility or dispersion of price from its historical average. Higher values suggest greater price fluctuation and potentially a trending market. Lower values indicate lower volatility, often found during consolidation or ranging markets.
標準偏差(Standard Deviation)は、価格の過去の平均からの**ばらつき(ボラティリティ)**を測る指標です。値が高いほど価格変動が激しく、トレンド相場であることを示唆します。値が低いほど、レンジ相場または保ち合いであることを示します。
Wilder's ADX/DIワイルダー氏が作ったトレンドの強弱を計るインジケーターです。証券会社のものは微妙に計算式が違うため、ワイルダー氏のオリジナルの計算式で作りました。
It’s an indicator created by Mr. Wilder to measure the strength of a trend.
Since the calculation formulas used by brokerage firms vary slightly, this version is built using Mr. Wilder’s original formula.
Advanced Speedometer Gauge [PhenLabs]Advanced Speedometer Gauge
Version: PineScript™v6
📌 Description
The Advanced Speedometer Gauge is a revolutionary multi-metric visualization tool that consolidates 13 distinct trading indicators into a single, intuitive speedometer display. Instead of cluttering your workspace with multiple oscillators and panels, this gauge provides a unified interface where you can switch between different metrics while maintaining consistent visual interpretation.
Built on PineScript™ v6, the indicator transforms complex technical calculations into an easy-to-read semi-circular gauge with color-coded zones and a precision needle indicator. Each of the 13 available metrics has been carefully normalized to a 0-100 scale, ensuring that whether you’re analyzing RSI, volume trends, or volatility extremes, the visual interpretation remains consistent and intuitive.
The gauge is designed for traders who value efficiency and clarity. By consolidating multiple analytical perspectives into one compact display, you can quickly assess market conditions without the visual noise of traditional multi-indicator setups. All metrics are non-overlapping, meaning each provides unique insights into different aspects of market behavior.
🚀 Points of Innovation
13 selectable metrics covering momentum, volume, volatility, trend, and statistical analysis, all accessible through a single dropdown menu
Universal 0-100 normalization system that standardizes different indicator scales for consistent visual interpretation across all metrics
Semi-circular gauge design with 21 arc segments providing smooth precision and clear visual feedback through color-coded zones
Non-redundant metric selection ensuring each indicator provides unique market insights without analytical overlap
Advanced metrics including MFI (volume-weighted momentum), CCI (statistical deviation), Volatility Rank (extended lookback), Trend Strength (ADX-style), Choppiness Index, Volume Trend, and Price Distance from MA
Flexible positioning system with 5 chart locations, 3 size options, and fully customizable color schemes for optimal workspace integration
🔧 Core Components
Metric Selection Engine: Dropdown interface allowing instant switching between 13 different technical indicators, each with independent parameter controls
Normalization System: All metrics converted to 0-100 scale using indicator-specific algorithms that preserve the statistical significance of each measurement
Semi-Circular Gauge: Visual display using 21 arc segments arranged in curved formation with two-row thickness for enhanced visibility
Color Zone System: Three distinct zones (0-40 green, 40-70 yellow, 70-100 red) providing instant visual feedback on metric extremes
Needle Indicator: Dynamic pointer that positions across the gauge arc based on precise current metric value
Table Implementation: Professional table structure ensuring consistent positioning and rendering across different chart configurations
🔥 Key Features
RSI (Relative Strength Index): Classic momentum oscillator measuring overbought/oversold conditions with adjustable period length (default 14)
Stochastic Oscillator: Compares closing price to price range over specified period with smoothing, ideal for identifying momentum shifts
MFI (Money Flow Index): Volume-weighted RSI that combines price movement with volume to measure buying and selling pressure intensity
CCI (Commodity Channel Index): Measures statistical deviation from average price, normalized from typical -200 to +200 range to 0-100 scale
Williams %R: Alternative overbought/oversold indicator using high-low range analysis, inverted to match 0-100 scale conventions
Volume %: Current volume relative to moving average expressed as percentage, capped at 100 for extreme spikes
Volume Trend: Cumulative directional volume flow showing whether volume is flowing into up moves or down moves over specified period
ATR Percentile: Current Average True Range position within historical range using specified lookback period (default 100 bars)
Volatility Rank: Close-to-close volatility measured against extended historical range (default 252 days), differs from ATR in calculation method
Momentum: Rate of change calculation showing price movement speed, centered at 50 and normalized to 0-100 range
Trend Strength: ADX-style calculation using directional movement to quantify trend intensity regardless of direction
Choppiness Index: Measures market choppiness versus trending behavior, where high values indicate ranging markets and low values indicate strong trends
Price Distance from MA: Measures current price over-extension from moving average using standard deviation calculations
🎨 Visualization
Semi-Circular Arc Display: Curved gauge spanning from 0 (left) to 100 (right) with smooth progression and two-row thickness for visibility
Color-Coded Zones: Green zone (0-40) for low/oversold conditions, yellow zone (40-70) for neutral readings, red zone (70-100) for high/overbought conditions
Needle Indicator: Downward-pointing triangle (▼) positioned precisely at current metric value along the gauge arc
Scale Markers: Vertical line markers at 0, 25, 50, 75, and 100 positions with corresponding numerical labels below
Title Display: Merged cell showing “𓄀 PhenLabs” branding plus currently selected metric name in monospace font
Large Value Display: Current metric value shown with two decimal precision in large text directly below title
Table Structure: Professional table with customizable background color, text color, and transparency for minimal chart obstruction
📖 Usage Guidelines
Metric Selection
Select Metric: Default: RSI | Options: RSI, Stochastic, Volume %, ATR Percentile, Momentum, MFI (Money Flow), CCI (Commodity Channel), Williams %R, Volatility Rank, Trend Strength, Choppiness Index, Volume Trend, Price Distance | Choose the technical indicator you want to display on the gauge based on your current analytical needs
RSI Settings
RSI Length: Default: 14 | Range: 1+ | Controls the lookback period for RSI calculation, shorter periods increase sensitivity to recent price changes
Stochastic Settings
Stochastic Length: Default: 14 | Range: 1+ | Lookback period for stochastic calculation comparing close to high-low range
Stochastic Smooth: Default: 3 | Range: 1+ | Smoothing period applied to raw stochastic value to reduce noise and false signals
Volume Settings
Volume MA Length: Default: 20 | Range: 1+ | Moving average period used to calculate average volume for comparison with current volume
Volume Trend Length: Default: 20 | Range: 5+ | Period for calculating cumulative directional volume flow trend
ATR and Volatility Settings
ATR Length: Default: 14 | Range: 1+ | Period for Average True Range calculation used in ATR Percentile metric
ATR Percentile Lookback: Default: 100 | Range: 20+ | Historical range used to determine current ATR position as percentile
Volatility Rank Lookback (Days): Default: 252 | Range: 50+ | Extended lookback period for Volatility Rank metric using close-to-close volatility
Momentum and Trend Settings
Momentum Length: Default: 10 | Range: 1+ | Lookback period for rate of change calculation in Momentum metric
Trend Strength Length: Default: 20 | Range: 5+ | Period for directional movement calculations in ADX-style Trend Strength metric
Advanced Metric Settings
MFI Length: Default: 14 | Range: 1+ | Lookback period for Money Flow Index calculation combining price and volume
CCI Length: Default: 20 | Range: 1+ | Period for Commodity Channel Index statistical deviation calculation
Williams %R Length: Default: 14 | Range: 1+ | Lookback period for Williams %R high-low range analysis
Choppiness Index Length: Default: 14 | Range: 5+ | Period for calculating market choppiness versus trending behavior
Price Distance MA Length: Default: 50 | Range: 10+ | Moving average period used for Price Distance standard deviation calculation
Visual Customization
Position: Default: Top Right | Options: Top Left, Top Right, Bottom Left, Bottom Right, Middle Right | Controls gauge placement on chart for optimal workspace organization
Size: Default: Normal | Options: Small, Normal, Large | Adjusts overall gauge dimensions and text size for different monitor resolutions and preferences
Low Zone Color (0-40): Default: Green (#00FF00) | Customize color for low/oversold zone of gauge arc
Medium Zone Color (40-70): Default: Yellow (#FFFF00) | Customize color for neutral/medium zone of gauge arc
High Zone Color (70-100): Default: Red (#FF0000) | Customize color for high/overbought zone of gauge arc
Background Color: Default: Semi-transparent dark gray | Customize gauge background for contrast and chart integration
Text Color: Default: White (#FFFFFF) | Customize all text elements including title, value, and scale labels
✅ Best Use Cases
Quick visual assessment of market conditions when you need instant feedback on whether an asset is in extreme territory across multiple analytical dimensions
Workspace organization for traders who monitor multiple indicators but want to reduce chart clutter and visual complexity
Metric comparison by switching between different indicators while maintaining consistent visual interpretation through the 0-100 normalization
Overbought/oversold identification using RSI, Stochastic, Williams %R, or MFI depending on whether you prefer price-only or volume-weighted analysis
Volume analysis through Volume %, Volume Trend, or MFI to confirm price movements with corresponding volume characteristics
Volatility monitoring using ATR Percentile or Volatility Rank to identify expansion/contraction cycles and adjust position sizing
Trend vs range identification by comparing Trend Strength (high values = trending) against Choppiness Index (high values = ranging)
Statistical over-extension detection using CCI or Price Distance to identify when price has deviated significantly from normal behavior
Multi-timeframe analysis by duplicating the gauge on different timeframe charts to compare metric readings across time horizons
Educational purposes for new traders learning to interpret technical indicators through consistent visual representation
⚠️ Limitations
The gauge displays only one metric at a time, requiring manual switching to compare different indicators rather than simultaneous multi-metric viewing
The 0-100 normalization, while providing consistency, may obscure the raw values and specific nuances of each underlying indicator
Table-based visualization cannot be exported or saved as an image separately from the full chart screenshot
Optimal parameter settings vary by asset type, timeframe, and market conditions, requiring user experimentation for best results
💡 What Makes This Unique
Unified Multi-Metric Interface: The only gauge-style indicator offering 13 distinct metrics through a single interface, eliminating the need for multiple oscillator panels
Non-Overlapping Analytics: Each metric provides genuinely unique insights—MFI combines volume with price, CCI measures statistical deviation, Volatility Rank uses extended lookback, Trend Strength quantifies directional movement, and Choppiness Index measures ranging behavior
Universal Normalization System: All metrics standardized to 0-100 scale using indicator-appropriate algorithms that preserve statistical meaning while enabling consistent visual interpretation
Professional Visual Design: Semi-circular gauge with 21 arc segments, precision needle positioning, color-coded zones, and clean table implementation that maintains clarity across all chart configurations
Extensive Customization: Independent parameter controls for each metric, five position options, three size presets, and full color customization for seamless workspace integration
🔬 How It Works
1. Metric Calculation Phase:
All 13 metrics are calculated simultaneously on every bar using their respective algorithms with user-defined parameters
Each metric applies its own specific calculation method—RSI uses average gains vs losses, Stochastic compares close to high-low range, MFI incorporates typical price and volume, CCI measures deviation from statistical mean, ATR calculates true range, directional indicators measure up/down movement, and statistical metrics analyze price relationships
2. Normalization Process:
Each calculated metric is converted to a standardized 0-100 scale using indicator-appropriate transformations
Some metrics are naturally 0-100 (RSI, Stochastic, MFI, Williams %R), while others require scaling—CCI transforms from ±200 range, Momentum centers around 50, Volume ratio caps at 2x for 100, ATR and Volatility Rank calculate percentile positions, and Price Distance scales by standard deviations
3. Gauge Rendering:
The selected metric’s normalized value determines the needle position across 21 arc segments spanning 0-100
Each arc segment receives its color based on position—segments 0-8 are green zone, segments 9-14 are yellow zone, segments 15-20 are red zone
The needle indicator (▼) appears in row 5 at the column corresponding to the current metric value, providing precise visual feedback
4. Table Construction:
The gauge uses TradingView’s table system with merged cells for title and value display, ensuring consistent positioning regardless of chart configuration
Rows are allocated as follows: Row 0 merged for title, Row 1 merged for large value display, Row 2 for spacing, Rows 3-4 for the semi-circular arc with curved shaping, Row 5 for needle indicator, Row 6 for scale markers, Row 7 for numerical labels at 0/25/50/75/100
All visual elements update on every bar when barstate.islast is true, ensuring real-time accuracy without performance impact
💡 Note:
This indicator is designed for visual analysis and market condition assessment, not as a standalone trading system. For best results, combine gauge readings with price action analysis, support and resistance levels, and broader market context. Parameter optimization is recommended based on your specific trading timeframe and asset class. The gauge works on all timeframes but may require different parameter settings for intraday versus daily/weekly analysis. Consider using multiple instances of the gauge set to different metrics for comprehensive market analysis without switching between settings.
AlphaTrend - Medium Term Trend Probability Indicator on TOTALESWHAT IS ALPHATREND?
AlphaTrend is a consensus-based trend identification system that combines 7 independent trend detection methodologies into a single probability score. Designed for medium-term trading (days to weeks), it aggregates diverse analytical approaches—from volatility-adjusted moving averages to statistical oscillators—to determine directional bias with quantifiable confidence.
Unlike single-indicator systems prone to false signals during consolidation, AlphaTrend requires majority agreement across multiple uncorrelated methods before generating directional signals, significantly reducing whipsaws in choppy markets.
METHODOLOGY - THE 7-INDICATOR VOTING SYSTEM
Each indicator analyzes trend from a mathematically distinct perspective and casts a vote: +1 (bullish), -1 (bearish), or 0 (neutral). The average of all 7 votes creates the final probability score ranging from -1 (strong bearish) to +1 (strong bullish).
1. FLXWRT RMA (VOLATILITY-ADJUSTED BASELINE)
Method: RMA (Running Moving Average) with ATR-based dynamic bands
Calculation:
RMA = Running MA of price over 12 periods
ATR = Average True Range over 20 periods
Long Signal: Price > RMA + ATR
Short Signal: Price < RMA - ATR
Logic: Trend confirmed only when price breaks beyond volatility-adjusted boundaries, not just the moving average itself. This filters noise by requiring momentum sufficient to overcome recent volatility.
Why it works: Standard MA crossovers generate excessive false signals in ranging markets. Adding ATR bands ensures price has genuine directional momentum, not just minor fluctuations.
Settings:
RMA Length (12): Base trend smoothing
ATR Length (20): Volatility measurement period
2. BOOSTED MOVING AVERAGE (MOMENTUM-ENHANCED TREND)
Method: Double EMA with acceleration boost factor
Calculation:
EMA1 = EMA(close, length)
EMA2 = EMA(close, length/2) // Faster EMA
Boosted Value = EMA2 + sensitivity × (EMA2 - EMA1)
Final = EMA smoothing of Boosted Value
Logic: Amplifies the difference between fast and slow EMAs to emphasize trend momentum. The boost factor (1.3) accelerates response to directional moves while subsequent smoothing prevents over-reaction.
Why it works: Traditional MAs lag price action. The boost mechanism projects trend direction forward by amplifying the momentum differential between two EMAs, providing earlier signals without sacrificing reliability.
Settings:
Length (36): Base EMA period
Boost Factor (1.3): Momentum amplification multiplier
Originality: This is a proprietary enhancement to standard double EMA systems. Most indicators simply cross fast/slow EMAs; this one mathematically projects momentum trajectory.
3. HEIKIN ASHI TREND (T3-SMOOTHED CANDLES)
Method: Heikin Ashi candles with T3 exponential smoothing
Calculation:
Heikin Ashi candles = Smoothed OHLC transformation
T3 Smoothing = Triple-exponential smoothing (Tillson T3)
Signal: T3(HA_Open) crosses T3(HA_Close)
Logic: Heikin Ashi candles filter intrabar noise by averaging consecutive bars. T3 smoothing adds additional filtering using Tillson's generalized DEMA algorithm with custom volume factor.
Why it works: Regular candlesticks contain high-frequency noise. Heikin Ashi transformation creates smoother trends, and T3 smoothing eliminates remaining whipsaws while maintaining responsiveness. The T3 algorithm specifically addresses the lag-vs-smoothness tradeoff.
Settings:
T3 Length (13): Smoothing period
T3 Factor (0.3): Volume factor for T3 algorithm
Percent Squeeze (0.2): Sensitivity adjustment
Technical Note: T3 is superior to simple EMA smoothing because it applies the generalized DEMA formula recursively, reducing lag while maintaining smooth output.
4. VIISTOP (ATR-BASED TREND FILTER)
Method: Simple trend detection using price position vs smoothed baseline with ATR confirmation
Calculation:
Baseline = SMA(close, 16)
ATR = ATR(16)
Uptrend: Close > Baseline
Downtrend: Close < Baseline
Logic: The simplest component—pure price position relative to medium-term average. While basic, it provides a "sanity check" against over-optimized indicators.
Why it works: Sometimes the simplest approach is most robust. In strong trends, price consistently stays above/below its moving average. This indicator prevents the system from over-complicating obvious directional moves.
Settings:
Length (16): Baseline period
Multiplier (2.8): ATR scaling (not actively used in vote logic)
Purpose in Ensemble: Provides grounding in basic trend logic. Complex indicators can sometimes generate counterintuitive signals; ViiStop ensures the system stays aligned with fundamental price positioning.
5. NORMALIZED KAMA OSCILLATOR (ADAPTIVE EFFICIENCY-BASED TREND)
Method: Kaufman Adaptive Moving Average normalized to oscillator format
Calculation:
Efficiency Ratio = |Close - Close | / Sum(|Close - Close |, 8)
Smoothing Constant = ER × (Fast SC - Slow SC) + Slow SC
KAMA = Adaptive moving average using dynamic smoothing
Normalized = (KAMA - Lowest) / (Highest - Lowest) - 0.5
Logic: KAMA adjusts its smoothing speed based on market efficiency. In trending markets (high efficiency), it speeds up. In ranging markets (low efficiency), it slows down. Normalization converts absolute values to -0.5/+0.5 oscillator for consistent voting.
Why it works: Fixed-period moving averages perform poorly across varying market conditions. KAMA's adaptive nature makes it effective in both trending and choppy environments by automatically adjusting its responsiveness.
Settings:
Fast Period (9): Maximum responsiveness
Slow Period (21): Minimum responsiveness
ER Period (8): Efficiency calculation window
Normalization Lookback (35): Oscillator scaling period
Mathematical Significance: Kaufman's algorithm is one of the most sophisticated adaptive smoothing methods in technical analysis. The Efficiency Ratio mathematically quantifies trend strength vs noise.
6. LÉVY FLIGHT RSI (HEAVY-TAILED MOMENTUM)
Method: Modified RSI using Lévy distribution weighting for gains/losses
Calculation:
Weighted Gain = (Max(Price Change, 0))^Alpha
Weighted Loss = (-Min(Price Change, 0))^Alpha
RSI = 100 - (100 / (1 + RMA(Gain) / RMA(Loss)))
Centered RSI = RSI - 50
Logic: Standard RSI treats all price changes linearly. Lévy Flight RSI applies power-law weighting (Alpha = 1.5) to emphasize larger moves, modeling heavy-tailed distributions observed in real market data.
Why it works: Market returns exhibit "fat tails"—large moves occur more frequently than normal distribution predicts. Lévy distributions (Alpha between 1-2) better model this behavior. By weighting larger price changes more heavily, this RSI variant becomes more sensitive to genuine momentum shifts while filtering small noise.
Settings:
RSI Length (14): Standard period
Alpha (1.5): Lévy exponent (1=linear, 2=quadratic)
MA Length (12): Final smoothing
Originality: Standard RSI uses unweighted gains/losses. This implementation applies stochastic process theory (Lévy flights) from quantitative finance to create a momentum indicator more aligned with actual market behavior.
Mathematical Background: Lévy flights describe random walks with heavy-tailed step distributions, observed in financial markets, animal foraging patterns, and human mobility. Alpha=1.5 balances between normal distribution (Alpha=2) and Cauchy distribution (Alpha=1).
7. REGULARIZED-MA OSCILLATOR (Z-SCORED TREND DEVIATION)
Method: Moving average converted to z-score oscillator
Calculation:
MA = EMA(close, 19)
Mean = SMA(MA, 30)
Std Dev = Standard Deviation(MA, 30)
Z-Score = (MA - Mean) / Std Dev
Logic: Converts absolute MA values to statistical standard deviations from mean. Positive z-score = MA above its typical range (bullish), negative = below range (bearish).
Why it works: Raw moving averages don't indicate strength—a 50-day MA at $50k vs $60k has no contextual meaning. Z-scoring normalizes this to "how unusual is current MA level?" This makes signals comparable across different price levels and time periods.
Settings:
Length (19): Base MA period
Regularization Length (30): Statistical normalization window
Statistical Significance: Z-scores are standard in quantitative analysis. This indicator asks: "Is the current trend statistically significant or just random noise?"
AGGREGATION METHODOLOGY
Voting System:
Each indicator returns: +1 (bullish), -1 (bearish), or 0 (neutral)
Total Score = Sum of all 7 votes (-7 to +7)
Average Score = Total / 7 (-1.00 to +1.00)
Signal Generation:
Long Signal: Average > 0 (majority bullish)
Short Signal: Average < 0 (majority bearish)
Neutral: Average = 0 (perfect split or all neutral)
Why Equal Weighting:
Each indicator represents a fundamentally different analytical approach:
Volatility-adjusted (RMA, ViiStop)
Momentum-based (Boosted MA, Lévy RSI)
Adaptive smoothing (KAMA)
Statistical (MA Oscillator)
Noise-filtered (Heikin Ashi T3)
Equal weighting ensures no single methodology dominates. This diversification reduces bias and improves robustness across market conditions.
ORIGINALITY - WHY THIS COMBINATION WORKS
Traditional Multi-Indicator Approaches:
Combine similar indicators (multiple MAs, multiple oscillators)
Use arbitrary thresholds for each indicator
Don't normalize signals (hard to compare RSI to MACD)
Often just "if RSI > 70 AND MACD > 0 = buy"
AlphaTrend MTPI Innovations:
Methodological Diversity: Includes volatility-adaptive (RMA), momentum-enhanced (Boosted MA), efficiency-based (KAMA), heavy-tailed statistics (Lévy RSI), and smoothed candles (HA). No redundant indicators.
Binary Voting: Each indicator reduces to simple +1/-1/0 vote, making aggregation transparent and preventing any indicator from overwhelming the consensus.
Medium-Term Optimization: Parameter choices (12-36 period averages) specifically target multi-day to multi-week trends, not scalping or long-term positioning.
Advanced Mathematics: Incorporates Tillson T3, Kaufman Efficiency Ratio, Lévy distributions, and statistical z-scoring—not just basic MAs and RSIs.
No Overfit Risk: With 7 diverse components voting equally, the system can't overfit to any specific market regime. If trending markets favor KAMA, but choppy markets favor Boosted MA, the ensemble stays robust.
Why 7 Indicators, Not 3 or 10:
Fewer than 5: Insufficient diversification, single indicator failures impact results heavily
More than 9: Diminishing returns, redundancy increases, computational load grows
7 provides: Odd number (no ties), sufficient diversity, manageable complexity
VISUAL COMPONENTS
1. Bar Coloring:
Cyan bars: Bullish consensus (average score > 0)
Magenta bars: Bearish consensus (average score < 0)
No color: Neutral (score = 0 or date filter disabled)
2. MTPI Summary Table (Bottom Center):
MTPI Signal: Current directional bias (LONG/SHORT/NEUTRAL)
Average Score: Precise consensus reading (-1.00 to +1.00)
3. Indicator Status Table (Bottom Right):
Shows all 7 individual indicator scores
Score column: +1 (bullish), -1 (bearish), 0 (neutral)
Signal column: Text interpretation of each vote
Color-coded cells: Cyan (long), Magenta (short), Gray (neutral)
HOW TO USE
For Swing Trading (Recommended - Days to Weeks):
Entry Signals:
Strong Long: 5+ indicators bullish (score ≥ 0.71)
Standard Long: 4+ indicators bullish (score ≥ 0.57)
Weak Long: Simple majority (score > 0) — use with caution
Exit Signals:
Hard Stop: Score flips negative (consensus reverses)
Partial Take Profit: Score drops to +0.30 or below (weakening)
Trailing Stop: Use ATR-based stop below entry
Position Sizing:
Strong signals (|score| > 0.7): Full position
Moderate signals (0.4-0.7): 50-75% position
Weak signals (< 0.4): 25-50% or skip
For Trend Confirmation:
Use alongside your primary strategy for confluence
Only take trades when AlphaTrend agrees with your analysis
Avoid counter-trend trades when score is extreme (|score| > 0.7)
Best Timeframes:
4H: Primary timeframe for swing trading
1D: Position trading and major trend identification
1H: Active trading (shorter hold periods)
< 1H: Not recommended (designed for medium-term)
Market Conditions:
Trending markets: System excels (consensus emerges quickly)
Ranging markets: Expect mixed signals (score oscillates near zero)
High volatility: RMA and ViiStop provide stabilization
Low volatility: KAMA and Boosted MA maintain responsiveness
SETTINGS EXPLAINED
General Settings:
Use Date Filter: Enable/disable historical backtesting range
Start Date: When to begin signal generation (default: Jan 1, 2018)
Flxwrt RMA Settings:
RMA Length (12): Base trend smoothing
ATR Length (20): Volatility measurement period
Source: Price input (default: close)
Boosted MA Settings:
Length (36): Base EMA period
Boost Factor (1.3): Momentum amplification
Source: Price input
Heikin Ashi Settings:
Percent Squeeze (0.2): Sensitivity adjustment
T3 Factor (0.3): Tillson volume factor
T3 Length (13): Smoothing period
ViiStop Settings:
Length (16): Baseline period
Multiplier (2.8): ATR scaling
Source: Price input
KAMA Settings:
Fast Period (9): Maximum responsiveness
Slow Period (21): Minimum responsiveness
ER Period (8): Efficiency calculation
Normalization Lookback (35): Oscillator scaling
Levy RSI Settings:
RSI Length (14): Standard period
Alpha (1.5): Lévy exponent (power-law weighting)
MA Length (12): Final smoothing
Source: Price input
MA Oscillator Settings:
Length (19): Base MA period
Regularize Length (30): Z-score normalization window
PERFORMANCE CHARACTERISTICS
Strengths:
✅ Reduced whipsaws vs single indicators
✅ Works across varying market conditions (adaptive components)
✅ Transparent methodology (see every vote)
✅ Customizable to trading style via timeframe selection
✅ No curve-fitting (equal weighting, no optimization)
Limitations:
⚠️ Medium-term focus (not for scalping or very long-term)
⚠️ Lagging by design (consensus requires confirmation)
⚠️ Less effective in violent reversals (momentum carries votes)
⚠️ Requires clean price data (gaps/thin volume can distort)
ALERTS & AUTOMATION
No built-in alerts in current version (visual-only indicator). Users can create custom alerts based on:
Bar color changes (cyan to magenta or vice versa)
Average score crossing above/below thresholds
Specific indicator status changes in the table
BEST PRACTICES
Risk Management:
Never risk more than 1-2% per trade regardless of score
Use stop losses (ATR-based recommended)
Scale positions based on signal strength
Don't average down on losing positions
Combining with Other Analysis:
✅ Support/Resistance levels for entries
✅ Volume confirmation (accumulation/distribution)
✅ Market structure (higher highs/lower lows)
✅ Volatility regimes (adjust position size)
❌ Don't combine with redundant trend indicators (adds no value)
❌ Don't override strong consensus with gut feeling
❌ Don't use on news-driven spikes (wait for stabilization)
Backtesting Notes:
Use "Date Filter" to test specific periods
Forward-test before live deployment
Remember: consensus systems perform best in trending markets, expect reduced edge in ranges
IMPORTANT NOTES
Not a standalone strategy - Use with proper risk management
Requires clean data - Works best on liquid markets with tight spreads
Medium-term by design - Don't expect scalping signals
No magic - No indicator predicts the future; this shows current trend probability
Diversification within - The 7-component ensemble IS the diversification strategy
Not financial advice. This indicator identifies medium-term trend probability based on multi-component consensus. Past performance does not guarantee future results. Always use proper risk management and position sizing.
RSI Cross Strategy [RSI ULTIMATE]RSI Cross Strategy — Release Notes (EN)
Version: 1.4 (Pine v6)
Date: 14 Oct 2025
Authors: Abraham ICARD
🚀 Summary
This release adds tighter trade governance (cooldown, weekdays-only, one-at-a-time) and sharper entry rules (RSI thresholds), on top of the existing daily trade cap, session hours, and entry/exit alerts.
✨ What’s New
• Cooldown Between Trades
◦ cooldown_minutes prevents a new entry until X minutes have elapsed since the last trade.
• Weekdays-Only Filter
◦ weekdays_only limits trading to Monday–Friday (exchange timezone).
• Single Position at a Time
◦ pyramiding = 0 + logic checks ensure only one active trade at any moment.
• RSI Thresholds for Cross Entries
◦ Long entries require RSI ≥ 52.
◦ Short entries require RSI ≤ 48.
◦ Inputs: rsi_long_min, rsi_short_max.
✅ Existing Features (kept & compatible)
• Daily Trade Limit: max_trades_per_day with robust day reset.
• Trading Session Window: session_allowed + option to block entries outside session.
• Trend Filter (opt-in): EMA50, SMA200, optional VWAP gate.
• TP/SL in % from average position price.
• Alerts:
◦ UI: ENTRY LONG, ENTRY SHORT, EXIT LONG, EXIT SHORT.
◦ Runtime toggle: enable_runtime_alerts, with per-bar or per-bar-close frequency.
• Performance Table: closed trades, winrate, net PnL, PF, max DD, trades today.
• Clean chart visuals: EMA/SMA/VWAP and BUY/SELL markers.
🔧 Key Parameters
• Risk & Entries
◦ tp_percent, sl_percent
◦ rsi_fast_len, rsi_slow_len, src
◦ rsi_long_min (default 52), rsi_short_max (default 48)
• Governance
◦ max_trades_per_day
◦ session_allowed, block_entries_outside_session
◦ cooldown_minutes
◦ weekdays_only (Mon–Fri)
• Trend Filter
◦ use_trend_filter, ema_len, sma_len, use_vwap
• Alerts
◦ enable_runtime_alerts
◦ alert_once_on_close
🔔 Alerts (UI & Runtime)
• ENTRY LONG — “RSI cross + trend + RSI ≥ threshold; rules OK”
• ENTRY SHORT — “RSI cross + trend + RSI ≤ threshold; rules OK”
• EXIT LONG / EXIT SHORT — position closed (TP/SL or manual close)
Create from Create Alert → choose the alertcondition by name; or enable alert() runtime via inputs.
🛠 Improvements & Robustness
• Day Reset: Uses a date key (YYYYMMDD) to guarantee boolean reset condition; avoids na on first bar.
• Session Handling: Session window interpreted in the exchange timezone of the symbol.
• VWAP: Uses ta.vwap(hlc3) for stability across markets.
⚠️ Notes & Limitations
• Backtesting granularity: Strategy logic evaluates on bar close (standard Pine behavior).
• Sessions & Timezone: Hours/weekday checks align with the symbol’s exchange timezone.
• No built-in optimizer: Tune via Strategy Tester/inputs.
📜 Changelog
1.4
• Added cooldown_minutes, weekdays_only, single-position enforcement, RSI entry thresholds (≥52 / ≤48).
• Integrated with existing daily cap, session window, and alerting.
1.3
• Daily trade cap, session gating, entry/exit alerts (UI + runtime), KPI table refresh.
1.2
• Enhanced KPIs & overlays (EMA/SMA/VWAP), French alert messaging.
1.1
• Combined trend filter; RSI fast/slow cross entries; TP/SL percentages.
1.0
• Initial Pine v6 version.
AlphaZ-Score - Bitcoin Market Cycle IndicatorWHAT IS ALPHAZ-SCORE?
AlphaZ-Score is a Bitcoin-specific market cycle indicator that identifies extreme market conditions (tops and bottoms) by aggregating up to 7 independent on-chain and market metrics into a single normalized z-score. Unlike traditional oscillators that analyze only price action, AlphaZ-Score incorporates blockchain fundamentals, investor profitability metrics, and capital flow data to determine where Bitcoin sits within its long-term market cycle.
The output ranges from -3 (extreme oversold/cycle bottom) to +3 (extreme overbought/cycle top), with readings beyond ±2 indicating high-probability reversal zones.
METHODOLOGY - THE 7-COMPONENT SYSTEM
Each component analyzes Bitcoin's market state from a unique perspective, then gets z-scored (statistical normalization) so all metrics can be compared on equal footing. The final score is a weighted average of all enabled indicators.
Default Configuration (3 indicators enabled):
Stablecoin Supply Ratio (SSRO)
MVRV Z-Score
SOPR Z-Score
Optional Advanced Components (4 indicators disabled by default):
Days Higher Streak Valuation (DHSV)
High Probability OB/OS (HPOB)
Risk Index Z-Score
Comprehensive On-chain Z-Score
COMPONENT BREAKDOWN
1. STABLECOIN SUPPLY RATIO OSCILLATOR (SSRO) - ENABLED BY DEFAULT
What it measures: Ratio of Bitcoin market cap to total stablecoin supply (USDT + USDC)
Data sources:
CRYPTOCAP:BTC - Bitcoin market cap
CRYPTOCAP:USDT - Tether market cap
CRYPTOCAP:USDC - USD Coin market cap
Logic:
SSR = BTC Market Cap / (USDT + USDC Supply)
Z-Score = Standardized SSR over 200 periods
Interpretation:
High SSR (positive z-score): Bitcoin overvalued relative to available stablecoin buying power → Overbought
Low SSR (negative z-score): Massive stablecoin reserves relative to BTC value → Potential bottom (dry powder)
Why it works: Stablecoins represent "dry powder" - capital waiting to enter crypto. When stablecoin supply is high relative to BTC value, it signals accumulation potential. When low, it suggests exhausted buying power.
2. MVRV Z-SCORE - ENABLED BY DEFAULT
What it measures: Market Value to Realized Value ratio, z-scored over 520 periods
Data source: INTOTHEBLOCK:BTC_MVRV
Logic:
MVRV = Market Cap / Realized Cap
Z-Score = (MVRV - Mean) / Std Dev
Interpretation:
High MVRV (positive z-score): Average holder in significant profit → Distribution phase
Low MVRV (negative z-score): Average holder near breakeven/loss → Accumulation phase
Why it works: MVRV compares Bitcoin's market price to its "fair value" (realized price = average cost basis of all coins). Extreme deviations historically mark cycle tops (MVRV > 3.5) and bottoms (MVRV < 1.0).
Historical significance:
2017 top: MVRV z-score ~7
2018 bottom: MVRV z-score ~-1.5
2021 top: MVRV z-score ~6
2022 bottom: MVRV z-score ~-1.0
3. SOPR Z-SCORE - ENABLED BY DEFAULT
What it measures: Spent Output Profit Ratio, smoothed and z-scored
Data source: GLASSNODE:BTC_SOPR
Logic:
SOPR = Value of spent outputs / Value at creation
SOPR EMA = 7-period exponential moving average
Z-Score = Standardized SOPR EMA over 180 periods
Interpretation:
SOPR > 1 (positive z-score): Coins being spent at profit → Potential distribution
SOPR < 1 (negative z-score): Coins being spent at loss → Capitulation/bottom
Why it works: SOPR measures aggregate profitability of spent coins. When holders are forced to sell at losses (SOPR < 1), it indicates capitulation and potential bottoms. When everyone sells at profit (SOPR >> 1), it signals euphoria and potential tops.
4. DAYS HIGHER STREAK VALUATION (DHSV) - DISABLED BY DEFAULT
What it measures: Number of historical bars with prices higher than current level
Logic:
For last N bars, count how many had close > current close
Apply streak decay logic based on price threshold
Z-Score result over lookback period
Interpretation:
Few days higher (negative z-score): Price near all-time highs → Potential overbought
Many days higher (positive z-score): Price deep below historical levels → Oversold
Why it works: Measures how "expensive" current price is relative to history. When 90%+ of historical bars are higher, you're near cycle bottoms.
Settings:
Historical Bars (1000): How far back to look
Threshold & Decay: Sensitivity adjustments
5. HIGH PROBABILITY OVERBOUGHT/OVERSOLD (HPOB) - DISABLED BY DEFAULT
What it measures: Volume-weighted price momentum divergence
Logic:
Volume-weighted Hull MA vs Standard Hull MA
Difference normalized by 100-period SMA
Result inverted and scaled to match z-score range
Interpretation:
Positive score: Volume-weighted momentum diverging up → Overbought
Negative score: Volume-weighted momentum diverging down → Oversold
Why it works: When volume-weighted price movement diverges from standard price movement, it reveals institutional vs retail behavior mismatches.
Settings:
SVWHMA Length (50): Volume-weighted smoothing
HMA Length (50): Standard momentum baseline
Smooth Length (50): Final output smoothing
6. RISK INDEX Z-SCORE - DISABLED BY DEFAULT
What it measures: Modified Puell Multiple approach using realized cap
Data sources:
COINMETRICS:BTC_MARKETCAPREAL - Realized market cap
GLASSNODE:BTC_MARKETCAP - Current market cap
Logic:
Delta = Risk Multiplier × Realized Cap - Historical Realized Cap
Risk Index = (Delta / Market Cap × 100) / 24
Z-Score = Standardized Risk Index over 1500 periods
Interpretation:
High risk (positive z-score): Realized cap growth outpacing market cap → Overextended
Low risk (negative z-score): Market cap collapsed relative to realized cap → Undervalued
Why it works: Compares the rate of realized cap change to market cap. Rapid realized cap growth during low market cap periods signals accumulation.
7. COMPREHENSIVE ON-CHAIN Z-SCORE - DISABLED BY DEFAULT
What it measures: Average of three on-chain metrics: NUPL, SOPR, and MVRV
Data sources:
GLASSNODE:BTC_MARKETCAP - Current market cap
COINMETRICS:BTC_MARKETCAPREAL - Realized cap
GLASSNODE:BTC_SOPR - SOPR data
Logic:
NUPL = (Market Cap - Realized Cap) / Market Cap × 100
SOPR Z-Score = (SOPR - Mean) / Std Dev with EMA smoothing
MVRV = Market Cap / Realized Cap
Final Score = Average of all three z-scores
Interpretation:
Combines profitability (NUPL), spending behavior (SOPR), and valuation (MVRV) into single comprehensive on-chain metric.
AGGREGATION METHODOLOGY
Scoring System:
Each enabled indicator produces a z-score (typically -3 to +3 range)
Scores are weighted equally (weight = 1.0 for all)
Final output = Weighted average of all enabled indicators
Why Equal Weighting:
Each metric analyzes fundamentally different aspects of Bitcoin's market state. Equal weighting prevents any single data source from dominating and ensures diversification.
Customization:
Users can enable/disable indicators to:
Simplify analysis (3 core metrics)
Increase complexity (all 7 metrics)
Focus on specific aspects (only on-chain, only market-based, etc.)
INTERPRETATION GUIDE
Z-Score Ranges:
+3.0 and above - EXTREME OVERBOUGHT
Historical cycle tops
Maximum euphoria
High-probability distribution zone
Consider taking profits
+2.0 to +3.0 - OVERBOUGHT
Late bull market phase
Elevated risk
Cautious positioning recommended
-2.0 to +2.0 - NEUTRAL
Normal market conditions
Trend-following strategies appropriate
-2.0 to -3.0 - OVERSOLD
Early accumulation phase
Fear/capitulation stage
Begin DCA strategies
-3.0 and below - EXTREME OVERSOLD
Historical cycle bottoms
Maximum fear
High-probability accumulation zone
Prime buying opportunity
VISUAL COMPONENTS
1. Main Z-Score Line:
Dynamic color gradient based on value
Green shades: Oversold (buying opportunity)
Red shades: Overbought (distribution zone)
White: Neutral
2. Reference Lines:
0: Neutral baseline
±2: Overbought/Oversold thresholds
±3: Extreme zones (highest probability reversals)
3. Background Shading:
Light green: Oversold (-2 to -3)
Bright green: Extreme oversold (< -3)
Light red: Overbought (+2 to +3)
Bright red: Extreme overbought (> +3)
4. Bar Coloring:
Cyan bars: Oversold conditions
Red bars: Overbought conditions
Default: Neutral
5. Summary Table (Top Right):
Market State: Current condition (Extreme OB/OS, Overbought/Oversold, Neutral)
Z-Score Value: Precise numeric reading
HOW TO USE
For Long-Term Investors (DCA Strategy):
Aggressive accumulation: Z-score < -2 (especially < -3)
Regular accumulation: Z-score between -2 and 0
Hold: Z-score between 0 and +2
Take profits: Z-score > +2 (especially > +3)
For Cycle Traders:
Buy zone: Wait for z-score to drop below -2
Hold through: Ignore noise between -2 and +2
Sell zone: Start distributing when z-score exceeds +2
Exit: Complete exit if z-score reaches +3
Risk Management:
Never buy in extreme overbought (>+3) - Historically always preceded major crashes
Scale into positions - Don't go all-in at any single reading
Use with price action - Confirm with support/resistance levels
Best Timeframes:
1D (Daily): Primary timeframe for cycle analysis
1W (Weekly): Macro cycle perspective
Lower timeframes not recommended (designed for long-term cycles)
SETTINGS CONFIGURATION
General Settings:
Toggle each of 7 indicators on/off
Default: 3 indicators enabled (SSRO, MVRV, SOPR)
Advanced: Enable all 7 for maximum sensitivity
Individual Indicator Settings:
Each indicator has dedicated parameter groups:
DHSV: Historical lookback, threshold decay
HPOB: HMA and VWMA lengths, smoothing
SSRO: Z-score calculation period (200)
MVRV: Z-score length (520)
Risk: Multiplier and z-score length
SOPR: EMA smoothing (7), z-score period (180)
On-chain: Separate lengths for NUPL, SOPR, MVRV components
DATA REQUIREMENTS
Required External Data Sources:
Default configuration (3 indicators):
CRYPTOCAP:BTC - Bitcoin market cap
CRYPTOCAP:USDT - Tether supply
CRYPTOCAP:USDC - USD Coin supply
INTOTHEBLOCK:BTC_MVRV - MVRV ratio
GLASSNODE:BTC_SOPR - SOPR data
Optional indicators require:
GLASSNODE:BTC_MARKETCAP - Market cap (on-chain)
COINMETRICS:BTC_MARKETCAPREAL - Realized cap
Additional Glassnode metrics
Important: This indicator requires TradingView data subscriptions for on-chain metrics. Some data sources may not be available on all accounts.
HISTORICAL PERFORMANCE
Major Cycle Tops Identified:
November 2021: Z-score peaked at ~+2.8 before -50% crash
December 2017: Z-score exceeded +3.0 before -84% bear market
April 2013: Z-score hit extreme overbought before correction
Major Cycle Bottoms Identified:
November 2022: Z-score reached -2.5 before +100% rally
December 2018: Z-score dropped to -2.8 before +300% bull run
January 2015: Z-score hit -3.2 before multi-year bull market
Key Insight: Extreme readings (beyond ±2.5) have preceded major market reversals with high accuracy. The indicator is designed for cycle identification, not short-term trading.
ORIGINALITY - WHY THIS IS UNIQUE
Traditional Cycle Indicators:
Use single metrics (MVRV only, SOPR only, etc.)
No normalization - hard to compare metrics
Fixed thresholds that don't adapt to market evolution
Often proprietary black boxes
AlphaZ-Score Advantages:
Multi-Metric Aggregation: Combines on-chain fundamentals, market structure, and capital flows into single score
Statistical Normalization: Z-scoring allows fair comparison of completely different metrics (market cap ratios vs profitability metrics)
Modular Design: Enable only the metrics you trust or have data access to
Transparent Calculations: All formulas visible in open-source code
Bitcoin-Specific Optimization: Tuned specifically for Bitcoin's 4-year halving cycle and on-chain characteristics
Customizable Weighting: Advanced users can modify weights for different market regimes
Visual Clarity: Single line that clearly shows cycle position, unlike juggling multiple indicators
LIMITATIONS
Requires on-chain data subscriptions - Some metrics need premium TradingView data
Lagging indicator - Identifies cycles after they begin, not predictive
Bitcoin-specific - Not designed for altcoins or traditional markets
Long-term focus - Not suitable for day trading or short-term speculation
Data availability - Historical on-chain data only goes back to ~2010
External dependencies - Relies on Glassnode, CoinMetrics data accuracy
ALERTS
No built-in alerts (indicator designed for visual analysis of long-term cycles). Users can create custom alerts based on z-score thresholds.
BEST PRACTICES
✅ Use on daily or weekly timeframe only
✅ Combine with long-term moving averages (200 MA, 200 WMA)
✅ Wait for extreme readings (beyond ±2) before major decisions
✅ Scale positions - don't go all-in at any single reading
✅ Verify on-chain data sources are updating properly
❌ Don't use for short-term trading (minutes/hours)
❌ Don't ignore price action - confirm with chart patterns
❌ Don't expect perfect timing - cycles can extend beyond extremes
❌ Don't trade solely on this indicator - use as confluence
Not financial advice. This indicator identifies market cycles based on historical patterns and on-chain data. Past performance does not guarantee future results. Always use proper risk management and position sizing.
AlphaBTC - Long Term Trend Probability Indicator on BitcoinWHAT IS ALPHABTC?
AlphaBTC is a consensus-based long-term trend probability indicator designed specifically for Bitcoin and cryptocurrency markets. It combines 9 independent trend detection methodologies into a single probabilistic score ranging from -1 (strong bearish) to +1 (strong bullish). Unlike single-indicator systems that can produce frequent false signals, AlphaBTC requires agreement across multiple analytical frameworks before generating directional signals.
METHODOLOGY - THE 9-INDICATOR CONSENSUS MODEL
Each indicator analyzes trend from a different mathematical perspective, providing a binary vote: +1 (bullish), -1 (bearish), or 0 (neutral). The average of all 9 votes creates the final probability score.
1. AADTREND (Average Absolute Deviation Trend)
Method: Calculates average absolute deviation from a moving average using 7 different MA types (SMA, EMA, HMA, DEMA, TEMA, RMA, FRAMA)
Logic: Price crossovers above/below AAD-adjusted bands signal trend changes
Purpose: Adapts to varying market volatility conditions
2. GAUSSIAN SMOOTH TREND (GST)
Method: Multi-stage smoothing using DEMA → Gaussian Filter → SMMA → Standard Deviation bands
Logic: Long when price > (SMMA + SDmultiplier), Short when price < (SMMA - SDmultiplier)
Purpose: Removes high-frequency noise while preserving trend structure
3. RTI (RELATIVE TREND INDEX)
Method: Percentile-based ranking system comparing current price to historical upper/lower trend boundaries
Logic: Generates 0-100 index score; >80 = bullish, <20 = bearish
Purpose: Identifies price position within statistical distribution
4. HIGHEST-LOWEST DEVIATIONS TREND
Method: Dual moving average system (100/50 periods) with dynamic standard deviation bands
Logic: Compares highest and lowest boundaries from both MAs to determine trend extremes
Purpose: Identifies breakouts from multi-timeframe volatility envelopes
5. 25-75 PERCENTILE SUPERTREND
Method: Modified SuperTrend using 25th and 75th percentile bands instead of simple highs/lows
Logic: ATR-based trailing stop system anchored to percentile boundaries
Purpose: More stable trend following by filtering outlier price spikes
6. TS VOLATILITY-ADJUSTED EWMA
Method: Exponentially Weighted Moving Average with dynamic period adjustment based on ATR
Logic: Speeds up during high volatility, slows during low volatility
Purpose: Adaptive responsiveness to changing market conditions
7. NORMALIZED KAMA OSCILLATOR
Method: Kaufman Adaptive Moving Average normalized to 0-centered oscillator
Logic: Uses Efficiency Ratio to adjust smoothing constant; >0 = bullish, <0 = bearish
Purpose: Adapts to both trending and ranging markets automatically
8. EHLERS MESA ADAPTIVE MOVING AVERAGE (EMAMA)
Method: John Ehlers' MAMA/FAMA system using Hilbert Transform for cycle period detection
Logic: MAMA crossover FAMA = bullish, crossunder = bearish
Purpose: Advanced DSP-based trend detection with phase-based adaptation
9. EMA Z-SCORE
Method: Statistical z-score applied to EMA values over lookback period
Logic: >1.0 standard deviation = bullish, <0.0 = bearish
Purpose: Identifies statistically significant trend deviations
AGGREGATION METHODOLOGY
Scoring System:
Each indicator produces: +1 (bullish), -1 (bearish), or 0 (neutral)
Total score = sum of all 9 indicators (-9 to +9)
Average score = total / 9 (displayed as -1.00 to +1.00)
Signal Interpretation:
+0.50 to +1.00: STRONG BULLISH (majority consensus)
+0.30 to +0.50: MODERATE BULLISH
-0.30 to +0.30: WEAK/NEUTRAL (mixed signals)
-0.50 to -0.30: MODERATE BEARISH
-1.00 to -0.50: STRONG BEARISH (majority consensus)
Bar Coloring:
Cyan bars: Bullish consensus (score > 0)
Magenta bars: Bearish consensus (score < 0)
WHY THIS APPROACH WORKS
Traditional Single-Indicator Problems:
Overfitting to specific market conditions
High false signal rates during consolidation
No mechanism for confidence measurement
AlphaBTC Multi-Consensus Solution:
Diversification: 9 uncorrelated methodologies reduce individual indicator bias
Robustness: Requires majority agreement before signaling (prevents whipsaws)
Adaptability: Mix of momentum, volatility, and statistical indicators captures multiple market regimes
Confidence Measurement: Score magnitude indicates signal strength
Why These 9 Specific Indicators:
AADTrend - Volatility adaptation
GST - Noise filtering
RTI - Statistical positioning
HL Deviations - Multi-timeframe breakouts
Percentile ST - Robust trend following
Volatility EWMA - Dynamic responsiveness
KAMA - Efficiency-based adaptation
EMAMA - Cycle-period awareness
EMA Z-Score - Statistical confirmation
This combination covers:
Trend following (ST, EWMA, KAMA, EMAMA)
Volatility adaptation (AAD, GST, HL Dev, EWMA)
Statistical validation (RTI, Z-Score)
Adaptive smoothing (KAMA, EMAMA, Gaussian)
No single indicator covers all these bases. The ensemble approach creates a more reliable system.
VISUAL COMPONENTS
1. Score Table (Bottom Right):
Shows all 9 individual indicator scores
Color-coded: Green (bullish), Red (bearish), Gray (neutral)
Individual signals visible for transparency
2. Main Score Display (Bottom Center):
LTPI SCORE: The averaged consensus (-1.00 to +1.00)
SIGNAL: Current directional bias (LONG/SHORT)
STRENGTH: Signal confidence (STRONG/MODERATE/WEAK)
3. Bar Coloring:
Visual trend indication directly on price bars
Cyan = bullish consensus
Magenta = bearish consensus
HOW TO USE
For Long-Term Position Trading (Recommended):
Wait for average score to cross above 0 for long entries
Exit when score crosses below 0 or reverses to negative territory
Use STRENGTH indicator - only trade STRONG or MODERATE signals
For Trend Confirmation:
Use AlphaBTC as confluence with your existing strategy
Enter trades only when AlphaBTC agrees with your analysis
Avoid counter-trend trades when consensus is strong (|score| > 0.5)
Risk Management:
STRONG signals (|score| > 0.5): Full position size
MODERATE signals (0.3-0.5): Reduced position size
WEAK signals (< 0.3): Avoid trading or use for exits only
Best Timeframes:
1D chart: Primary trend identification for swing/position trading
4H chart: Intermediate trend for multi-day holds
1H chart: Short-term trend for active trading
Not Recommended:
Scalping (too many indicators create lag)
Timeframes < 1H (designed for longer-term trends)
SETTINGS EXPLAINED
Each of the 9 indicators has customizable parameters in its dedicated settings group:
AadTrend Settings:
Average Length (48): Base period for deviation calculation
AAD Multiplier (1.35): Band width adjustment
Average Type: Choose from 7 different MA types
GST Settings:
DEMA Length (9), Gaussian Length (4), SMMA Length (13)
SD Length (66): Standard deviation lookback
Multipliers for upper/lower bands
RTI Settings:
Trend Length (75): Historical data points for boundary calculation
Sensitivity (88%): Percentile threshold
Long/Short Thresholds (80/20): Entry trigger levels
HL Deviations Settings:
Dual MA system (100/50 periods)
Separate deviation coefficients for upper/lower bands
25-75 Percentile ST Settings:
SuperTrend Length (100)
Multiplier (2.35)
Percentile Length (50)
EWMA Settings:
Length (81), ATR Lookback (14)
Volatility Factor (1.0) for dynamic adjustment
KAMA Settings:
Fast/Slow Periods (50/100)
Efficiency Ratio Period (8)
Normalization Lookback (53)
EMAMA Settings:
Fast/Slow Limits (0.08/0.01) for cycle adaptation
EMA Z-Score Settings:
EMA Length (50)
Lookback Period (25)
Threshold levels for long/short signals
ALERTS
Four alert conditions available:
LTPI Long Signal: When average score crosses above 0
LTPI Short Signal: When average score crosses below 0
LTPI Long: Any bar with bullish consensus
LTPI Short: Any bar with bearish consensus
IMPORTANT NOTES
This is a CONSENSUS indicator - it shows probability, not prediction
Designed for Bitcoin
Best for long-term trend identification (days to weeks, not minutes to hours)
Lagging by design - prioritizes accuracy over speed
Not a standalone strategy - use with proper risk management and position sizing
Requires minimum 100+ bars of historical data for proper indicator calculation