OPR Asia-New-York [Elykia]This Pine Script indicator, is designed to help traders identify potentially significant price zones based on morning and afternoon Opening Price Ranges (OPR), while integrating a customizable Relative Strength Index (RSI) to assess market momentum.
Key Features:
1. Morning and Afternoon Opening Price Ranges (OPR):
The indicator defines two distinct OPR periods: one for the morning and one for the afternoon (often used for European and American trading sessions, respectively).
Initial OPR Boxes: For each period, a box is drawn in real-time during the defined opening range. It dynamically adjusts to encompass the high and low prices reached during that period.
OPR Fixation: Once the initial opening period ends, the OPR box becomes fixed at the final high and low levels of that period.
OPR Extensions: After the initial OPR is fixed, an extension box is drawn. This extension box maintains the price levels (high and low) of the initial OPR but extends horizontally in time, providing a continuous reference zone.
Midline: Each box (initial and extension) is accompanied by a dashed midline, representing the midpoint of the OPR range.
Color and Transparency Customization: Users can adjust the colors of the boxes, midlines, and their transparency for both initial OPRs and their extensions, independently for morning and afternoon.
Adjustable Time Zone: A global time zone setting allows precise adaptation of OPR start and end times to the user's local trading session, which is crucial for the accuracy of these zones.
2. Integrated Relative Strength Index (RSI):
A fully customizable RSI is included, calculated on the closing price.
RSI Table (Optional): Displays the current RSI value in a table at the top right of the chart. The table's background color changes based on the RSI's state (green for neutral, red for overbought/oversold).
Dynamic RSI Label (Optional): A floating label follows the price, displaying the current RSI value. This label also changes its background color (green/red) based on overbought/oversold levels.
Full RSI Customization: Users can define the RSI length, overbought and oversold levels, text and background colors, text size for both the table and label, and the horizontal shift of the dynamic label.
Originalities:
Advanced OPR Management with Extension: Unlike many simple OPR indicators, this one offers sophisticated management of range fixation and extension. The extension that maintains the initial price levels is an asset for observing price reactions to these historical zones throughout the day.
Dual OPR (Morning/Afternoon) with Independent Settings: The ability to clearly define and visualize two distinct OPRs for different trading sessions is highly beneficial for multi-market traders or those tracking major session openings.
RSI Integration and Flexibility: The RSI is not just an add-on; it's finely integrated with distinct display options (table or dynamic label), allowing traders to choose how they prefer to visualize this crucial information without cluttering the chart.
Global Time Zone Setting: The inclusion of a global time zone parameter is a practical feature that ensures the indicator's accuracy for traders worldwide, without requiring complex manual calculations.
Setups for Information
Here are some typical configurations that may be useful. These setups are starting points and should be adapted to your trading style and the instruments you use.
OPR Setup "Europe/US Opening" (for EURUSD, European/US Indices):
Time Zone: GMT+2 (for summer in Europe, adjust to GMT+1 for winter)
Morning OPR:
Start Hour: 9:00 (London/Europe opening)
End Hour: 9:15
Extension Hour: 11:30 (before New York opening)
Afternoon OPR:
Start Hour: 15:30 (New York opening)
End Hour: 15:45
Extension Hour: 18:30
RSI Setup "Standard Momentum":
RSI Length: 14
Overbought Level: 70
Oversold Level: 30
Display: Dynamic RSI Label enabled for quick reading near the price.
Disclaimer on Usage:
This indicator is provided for informational and educational purposes only. It does not constitute investment advice or a trading recommendation in any way. Trading in financial markets carries substantial risks of loss, including the total loss of invested capital.
No Guarantee: There is no guarantee that using this indicator will result in profits or prevent losses. Past performance is not indicative of future results.
Personal Analysis: OPR zones and RSI readings are analytical and decision-making tools. They should always be used in conjunction with your own technical and fundamental analysis, risk management, and trading plan.
Oscillators
Institutional MF-Vol Compression Scanner v4.0 [BIG]═══════════════════════════════════════════════════════════════════════════════
BIG COMPRESSION SCANNER v4.0
═══════════════════════════════════════════════════════════════════════════════
OVERVIEW
The BIG Compression Scanner v4.0 is a proprietary volatility regime detection system designed for systematic Daily options deployment. This framework identifies pre-expansion volatility compression zones through multi-dimensional market structure analysis, combining institutional positioning patterns with hierarchical timeframe confirmation and options market structure to generate high-conviction directional signals for premium strategies.
The methodology synthesizes volatility dynamics, liquidity flow patterns, and cross-timeframe regime alignment into a probabilistic scoring system that isolates asymmetric risk-reward setups characteristic of compression-to-expansion transitions. The framework is calibrated specifically for 30-45 DTE options strategies where timing precision and volatility environment assessment are critical to edge generation.
═══════════════════════════════════════════════════════════════════════════════
CORE METHODOLOGY
═══════════════════════════════════════════════════════════════════════════════
• Proprietary Compression Detection
The system employs a multi-factor compression identification framework that monitors volatility regime transitions across price dispersion metrics and range contraction patterns. Unlike single-indicator squeeze systems, this methodology uses weighted ensemble logic to distinguish true pre-expansion compression from random consolidation noise.
Compression strength is quantified through a proprietary scoring algorithm (0-100%) that evaluates:
- Statistical volatility contraction relative to historical norms
- Price range compression within dynamic envelope systems
- Institutional volume signature analysis during low-volatility periods
- Cross-timeframe compression alignment (Daily/Weekly/Monthly hierarchy)
The framework filters compression events based on minimum strength thresholds and multi-bar confirmation to eliminate premature signals characteristic of retail squeeze indicators.
• Hierarchical Multi-Timeframe Architecture
The indicator integrates a three-tier temporal analysis structure where higher timeframes constrain and validate lower timeframe signals:
Strategic Layer (Monthly) – Establishes macro directional bias and identifies structural market positioning. This layer determines whether intermediate trends align with or counter dominant regime dynamics.
Structural Layer (Weekly) – Provides tactical context through key price levels, momentum assessment, and volatility regime confirmation. Weekly analysis filters signals that would occur in unfavorable proximity to structural inflection zones.
Execution Layer (Daily) – Generates precise entry timing through intraday regime shift detection, momentum confluence analysis, and institutional flow pattern recognition.
Each layer contributes weighted influence to the composite directional probability model, with recalibration logic that adjusts timeframe importance based on current market regime characteristics. The exact weighting algorithm is proprietary and adapts to volatility environment dynamics.
• Options Market Structure Integration
Version 4.0 incorporates options-specific market intelligence not available in standard technical analysis frameworks:
Volatility Environment Assessment – The system continuously monitors implied volatility regime characteristics through proprietary estimation models. These models identify whether current premium levels favor buying or selling strategies, adjusting signal generation accordingly.
Temporal Decay Awareness – Built-in expiration cycle logic ensures signals only trigger when sufficient time value remains for thesis development. The framework approximates days-to-expiration and applies minimum threshold filters to prevent entries in high theta decay regimes.
Greeks-Aware Targeting – Price targets are dynamically calibrated based on volatility expansion expectations and estimated leverage characteristics. Target multipliers adjust to current options market structure rather than using fixed risk-reward ratios.
Premium Environment Classification – Signals are enhanced with real-time assessment of whether current volatility levels favor long premium, short premium, or spread strategies based on historical percentile analysis.
• Probabilistic Directional Scoring System
Rather than binary bullish/bearish classification, the framework generates probability-weighted directional bias through a proprietary multi-factor model. This model synthesizes trend alignment metrics, momentum characteristics, structural positioning, and institutional flow signatures into normalized probability distributions.
The scoring system evaluates dozens of market structure variables across multiple timeframes, applies regime-dependent weighting, and produces directional probabilities that reflect actual edge rather than arbitrary technical indicator thresholds. Signal generation occurs only when directional probability exceeds user-defined conviction thresholds (55-65% depending on sensitivity setting).
This probabilistic approach allows traders to calibrate position sizing and strategy selection (outright vs. spreads) to the strength of directional conviction rather than treating all signals as equal weight.
• Institutional Flow Detection
The framework monitors volume and price interaction patterns characteristic of institutional accumulation or distribution during compression phases. This analysis identifies whether compression zones contain building directional positions (high probability of sustained move post-breakout) versus thin, choppy consolidation (high false breakout risk).
Flow detection employs proprietary algorithms that distinguish genuine institutional activity from retail volume spikes, providing critical context for signal validation.
═══════════════════════════════════════════════════════════════════════════════
SIGNAL ARCHITECTURE
═══════════════════════════════════════════════════════════════════════════════
Call Option Signals trigger when compression strength, directional probability, timeframe alignment, options market structure, and institutional flow patterns simultaneously satisfy proprietary threshold criteria. Signals are filtered against weekly structural levels to avoid low-probability entries near major resistance zones.
Put Option Signals follow equivalent logic with inverse directional parameters, ensuring symmetrical framework application across bull and bear setups.
All signals include:
- Directional conviction probability (percentage)
- Current volatility environment assessment (IV Rank proxy)
- Dynamic price target based on expansion expectations
- Multi-timeframe alignment status
Signal cooldown logic prevents excessive signal generation during extended consolidation periods, maintaining signal quality over quantity.
═══════════════════════════════════════════════════════════════════════════════
VISUAL INTELLIGENCE
═══════════════════════════════════════════════════════════════════════════════
Real-Time Multi-Timeframe Dashboard
The top-right panel provides continuous visibility into:
- Trend alignment across Daily/Weekly/Monthly timeframes
- Current compression status at each temporal layer
- Momentum regime characteristics (RSI values)
- Options environment assessment (IV Rank, optimal strategy)
- Composite signal readiness (compression strength percentage)
This dashboard enables rapid regime assessment without manual multi-timeframe chart analysis.
Chart Integration
Visual overlays include:
- Volatility envelope systems (dynamic bands)
- Weekly structural price levels (pivot, resistance, support)
- Compression zone highlighting (background shading)
- Active squeeze indicators (Daily and Weekly differentiation)
Signal Labels
When setups trigger, comprehensive labels display:
📈 CALL OPTION
Prob: XX%
IV Rank: XX%
Target: $XXX.XX
Labels provide all critical execution information without requiring dashboard consultation.
═══════════════════════════════════════════════════════════════════════════════
KEY CAPABILITIES
═══════════════════════════════════════════════════════════════════════════════
- Proprietary multi-factor compression detection with adaptive thresholds
- Hierarchical multi-timeframe confirmation (Daily/Weekly/Monthly)
- Options-specific filters (IV regime, DTE requirements, Greeks awareness)
- Probabilistic directional scoring (0-100% conviction levels)
- Institutional flow pattern recognition during compression
- Weekly structural level integration with proximity filters
- Dynamic target calibration based on volatility expansion expectations
- Real-time multi-timeframe regime dashboard
- Customizable sensitivity and threshold parameters
- Non-repainting signal architecture (bar close confirmation)
- Comprehensive alert system for proactive monitoring
═══════════════════════════════════════════════════════════════════════════════
APPLICATION GUIDELINES
═══════════════════════════════════════════════════════════════════════════════
1. Timeframe Selection
Apply to Daily (D1) charts only. Framework calibration is timeframe-specific; other intervals produce suboptimal results.
2. Options Mode Activation
Enable Options Trading Mode for premium strategy optimization. This activates IV filtering, DTE thresholds, and Greeks-aware targeting.
3. Strategy Calibration
- Premium Buying: Set IV threshold to 50th percentile, DTE minimum 30+ days, target multiplier 2.5-3.0×
- Premium Selling: Set IV threshold to 70th+ percentile, DTE minimum 20-30 days, target multiplier 1.5-2.0×
4. MTF Dashboard Monitoring
Verify multi-timeframe alignment before execution:
- Ideal setup: Daily + Weekly compression both active
- Confirm trend alignment across timeframes
- Check IV Rank for premium environment assessment
- Wait for "READY" status (green) indicating threshold satisfaction
5. Signal Execution
When labels appear:
- Review directional probability (target >65% for high conviction)
- Assess IV environment (low IV favors buying, high IV favors selling)
- Use price target for strike selection and profit objectives
- Consider 30-45 DTE options for thesis development time
6. Risk Management
- Position size: 2-5% options capital per signal
- Stop loss: Exit if compression breaks opposite direction without follow-through
- Time stop: Reassess if position stagnant after 5-7 days
- Profit taking: Scale out at provided targets or weekly pivot levels
7. Sensitivity Adjustment
- High (55%): More signals, lower conviction, diversified approach
- Medium (60%): Balanced, default setting (2-4 signals/month typical)
- Low (65%): Fewer signals, higher conviction, concentrated positions
═══════════════════════════════════════════════════════════════════════════════
FRAMEWORK LIMITATIONS
═══════════════════════════════════════════════════════════════════════════════
- Optimized exclusively for Daily timeframe analysis
- Compression development requires patience (2-4 weeks typical)
- IV metrics are proprietary proxies, not direct exchange data
- Greeks estimations approximate actual options contract characteristics
- DTE calculations simplified vs. precise monthly expiration dates
- Multi-timeframe filtering reduces but cannot eliminate false breakouts
- Requires liquid options markets (tight spreads, adequate open interest)
- Not designed for earnings-driven volatility events (IV crush risk)
- Framework identifies timing, not specific strike or expiration selection
═══════════════════════════════════════════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════════════════════════════════════════
- Pine Script v5 architecture
- Non-repainting signal confirmation (bar close validation)
- Multi-security data integration (Weekly/Monthly via request.security)
- Real-time multi-timeframe analysis dashboard
- 4 alert conditions (Call/Put options, directional generic)
- Fully customizable parameters (compression, scoring, filters, visuals)
- Professional-grade visual hierarchy and information density
═══════════════════════════════════════════════════════════════════════════════
PROFESSIONAL CONTEXT
═══════════════════════════════════════════════════════════════════════════════
This framework is designed for systematic options traders with working knowledge of:
- Volatility regime dynamics and expansion/contraction cycles
- Options Greeks and their impact on P&L across various market conditions
- Implied Volatility Rank interpretation and premium pricing assessment
- Multi-timeframe analysis methodology and trend hierarchy
- Risk-adjusted position sizing and portfolio construction principles
The system identifies when market structure favors options deployment but does not prescribe how to construct positions. Strike selection, expiration choice, spread architecture, and position sizing require independent trader judgment based on account parameters and risk tolerance.
Optimal deployment combines this framework with:
- Options analytics platform (actual IV, Greeks, probability calculations)
- Earnings calendar awareness (pre-earnings IV inflation vs. post-earnings crush)
- Broader market regime context (VIX, correlation, sector rotation)
- Portfolio-level risk management (concentration limits, correlation analysis)
═══════════════════════════════════════════════════════════════════════════════
Proprietary compression-to-expansion framework for systematic Daily options deployment. Methodology incorporates multi-dimensional volatility analysis, hierarchical timeframe confirmation, and options market structure intelligence.
NHNL Breadth Scanner [BIG]═══════════════════════════════════════════════════════════════════════════════
NVENTURES NHNL BREADTH SYSTEM v2.0
═══════════════════════════════════════════════════════════════════════════════
OVERVIEW
The NVentures NHNL Breadth System is an institutional-grade market breadth analysis framework designed for equity traders, portfolio managers, and market technicians who require comprehensive internal market structure visibility beyond price action alone. This system integrates New Highs - New Lows (NHNL) data across multiple exchanges with participation breadth metrics to identify market regime shifts, thrust conditions, divergences, and rotation dynamics between large-cap and small-cap equities.
Version 2.0 introduces the Participation Breadth Module , which monitors the percentage of stocks above their 50-day moving averages across S&P 500, Russell 2000, and NASDAQ 100 indices. This extension enables detection of Risk-On/Risk-Off rotations and narrow rally conditions—critical information for portfolio construction, sector allocation, and tactical hedging decisions.
The framework combines:
- Multi-exchange NHNL aggregation – NYSE, NASDAQ, AMEX breadth data integration
- McClellan Oscillator – Exponential moving average difference for trend momentum
- Thrust detection – Extreme breadth expansion/contraction identification
- Divergence analysis – Price vs. breadth non-confirmation patterns
- Participation breadth – Large-cap vs. small-cap rotation detection
- Composite signal scoring – Multi-factor quantitative breadth assessment
═══════════════════════════════════════════════════════════════════════════════
CORE METHODOLOGY
═══════════════════════════════════════════════════════════════════════════════
• NHNL Data Aggregation
The system retrieves daily New Highs and New Lows from three major U.S. exchanges:
- NYSE – INDEX:HIGN (New Highs), INDEX:LOWN (New Lows)
- NASDAQ – INDEX:HIGQ (New Highs), INDEX:LOWQ (New Lows)
- AMEX – INDEX:HIGA (New Highs), INDEX:LOWA (New Lows)
Users can toggle exchanges on/off to isolate specific market segments. All three exchanges are enabled by default for comprehensive market-wide breadth measurement.
Core Calculations :
- NHNL Raw = Total New Highs - Total New Lows
- NHNL % = (NHNL Raw / Total Issues) × 100
- NH/NL Ratio = New Highs / New Lows
These metrics quantify the internal strength or weakness of market advances/declines independent of price index levels.
• McClellan Oscillator
The McClellan Oscillator applies exponential moving average (EMA) logic to NHNL data:
Formula: McClellan Osc = EMA(NHNL, Fast) - EMA(NHNL, Slow)
Default parameters: Fast = 19, Slow = 39
Interpretation :
- Positive values = Breadth momentum favors bulls (more issues making new highs)
- Negative values = Breadth momentum favors bears (more issues making new lows)
- Zero-line crosses = Regime change signals (bullish above, bearish below)
- Extreme readings (>±100) = Overbought/oversold breadth conditions
The McClellan Oscillator is a standard institutional breadth tool used by market technicians since the 1960s. It smooths daily NHNL volatility while maintaining responsiveness to trend changes.
• Thrust Detection
Thrust conditions identify extreme breadth expansion or contraction that historically precedes sustained directional moves:
Bullish Thrust :
- NHNL % > Threshold (default +40%)
- Sustained for Confirmation Bars (default 2 bars)
- Context : Extreme positive breadth expansion. Historically associated with major rally initiations or continuation thrusts.
Bearish Thrust :
- NHNL % < -Threshold (default -40%)
- Sustained for Confirmation Bars (default 2 bars)
- Context : Extreme negative breadth contraction. Historically associated with panic selling, capitulation events, or major downtrend acceleration.
Thrust conditions are the highest-priority signals in the framework and override other conflicting indicators.
• Divergence Detection
The system identifies non-confirmation patterns between price action and breadth:
Bullish Divergence :
- Price makes lower low
- NHNL % makes higher low
- Context : Selling pressure exhausting despite lower prices. Potential reversal signal as fewer stocks participate in decline.
Bearish Divergence :
- Price makes higher high
- NHNL % makes lower high
- Context : Rally losing internal momentum despite higher prices. Potential reversal signal as fewer stocks participate in advance.
Divergences use pivot detection with configurable lookback periods (default 50 bars) and pivot strength (default 5 bars). Visual divergence lines are drawn directly on the price chart when detected.
• Participation Breadth Module (NEW in v2.0)
This module monitors the percentage of stocks trading above their 50-day moving average across three major indices:
- S&P 500 – INDEX:S5FI (Large-cap participation)
- Russell 2000 – INDEX:R2FI (Small-cap participation)
- NASDAQ 100 – INDEX:NDFI (Tech-cap participation)
Rotation Spread Calculation :
Rotation Spread = Russell 2000 % Above 50D - S&P 500 % Above 50D
Interpretation :
- Positive Spread (>+10%) = Risk-On Rotation
Small caps outperforming large caps. Broad market participation. Risk appetite expanding.
- Negative Spread (<-10%) = Risk-Off Rotation
Large caps outperforming small caps. Narrow rally / defensive positioning. Flight to quality or concentration risk.
- Neutral (-10% to +10%) = Balanced market, no clear rotation
This spread identifies critical regime changes between broad market participation (healthy) and narrow leadership (fragile). Risk-On rotations typically occur during economic expansion phases; Risk-Off rotations occur during uncertainty, recession fears, or late-cycle conditions.
• Composite Signal Score
The framework generates a quantitative breadth score (-100 to +100) by weighting five components:
1. Thrust Score (±40 points) – Active thrust condition
2. Trend Score (±30 points) – McClellan Oscillator above/below zero
3. Momentum Score (±20 points) – NHNL % magnitude
4. Ratio Score (±10 points) – NH/NL Ratio extremes
5. Participation Score (±15 points) – Risk-On/Risk-Off regime + participation health
The composite score is smoothed (EMA 5) and classified into five breadth states:
- +50 to +100 = Strong Bull
- +20 to +50 = Bullish
- -20 to +20 = Neutral
- -50 to -20 = Bearish
- -100 to -50 = Strong Bear
═══════════════════════════════════════════════════════════════════════════════
SIGNAL HIERARCHY & PRIORITY
═══════════════════════════════════════════════════════════════════════════════
The indicator generates multiple signal types with distinct priority levels:
Priority 1: Thrust Signals (Highest conviction)
- Green triangle below bar = Bullish Thrust (40%+ breadth expansion)
- Red triangle above bar = Bearish Thrust (40%+ breadth contraction)
- Chart background highlighted in green/red during active thrust
Priority 2: Rotation Signals (Regime identification)
- Cyan diamond below bar = Risk-On Rotation (small caps outperforming)
- Orange diamond above bar = Risk-Off Rotation (large caps outperforming)
- Chart background highlighted in cyan/orange during active rotation
Priority 3: Divergence Signals (Reversal warnings)
- Green label below bar = Bullish Divergence (price/breadth non-confirmation)
- Red label above bar = Bearish Divergence (price/breadth non-confirmation)
- Dashed lines connect divergence pivot points on price chart
Priority 4: Zero-Line Cross (Trend changes)
- Small circle below bar = McClellan crossing above zero (breadth turning positive)
- Small circle above bar = McClellan crossing below zero (breadth turning negative)
═══════════════════════════════════════════════════════════════════════════════
VISUAL COMPONENTS
═══════════════════════════════════════════════════════════════════════════════
• Comprehensive Information Panel
The top-right dashboard (position customizable) displays:
Section 1: Raw NHNL Data
- Total New Highs (green)
- Total New Lows (red)
- Exchange breakdown (NYSE, NASDAQ, AMEX) with individual deltas
Section 2: Core Metrics
- NHNL % with visual indicator (🔥 for thrusts, arrows for direction)
- NH/NL Ratio with strength bars
- McClellan Oscillator with directional arrows
Section 3: Participation Breadth (NEW)
- S&P 500 % above 50D MA with trend arrow
- Russell 2000 % above 50D MA with trend arrow
- NASDAQ 100 % above 50D MA with trend arrow
- Rotation Spread with regime icon (🚀 Risk-On, 🛡️ Risk-Off)
Section 4: Composite Assessment
- Signal Score (-100 to +100) with visual strength bars
- Market Status (large text): BULLISH THRUST, BEARISH THRUST, RISK-ON ROTATION, RISK-OFF ROTATION, or breadth state classification
• Chart Overlays
- Background color-coding for active regimes (thrust, rotation, extreme readings)
- Signal markers (triangles, diamonds, circles, labels) at key inflection points
- Divergence lines connecting pivot highs/lows on price chart
═══════════════════════════════════════════════════════════════════════════════
KEY FEATURES
═══════════════════════════════════════════════════════════════════════════════
- Multi-exchange breadth aggregation – NYSE, NASDAQ, AMEX with individual on/off toggles
- Institutional McClellan Oscillator – Standard market breadth momentum tool
- Automated thrust detection – Identifies extreme breadth conditions with confirmation logic
- Price-breadth divergence scanning – Non-confirmation pattern detection with visual lines
- Participation breadth integration – Risk-On/Risk-Off rotation detection via large-cap vs. small-cap analysis
- Composite signal scoring – Quantitative multi-factor breadth assessment
- No repainting – All signals confirm on bar close
- Comprehensive alerting – 12+ alert conditions for thrust, divergence, rotation, and confluence events
- Fully customizable parameters – EMA periods, thresholds, lookbacks, visual settings
- Professional dashboard – Real-time metrics with color-coded status indicators
═══════════════════════════════════════════════════════════════════════════════
HOW TO USE
═══════════════════════════════════════════════════════════════════════════════
1. Apply to any chart – The indicator pulls multi-security data; chart symbol does not matter (commonly applied to SPY, SPX, or QQQ for reference)
2. Monitor the dashboard :
• Focus on Market Status (bottom row) for current regime
• Check NHNL % and McClellan for breadth direction and momentum
• Watch Rotation Spread for large-cap vs. small-cap dynamics
• Review Signal Score for composite breadth strength
3. Interpret thrust signals (highest priority):
• Bullish Thrust → Major rally initiation or continuation likely. Consider adding long exposure or reducing hedges.
• Bearish Thrust → Major decline or capitulation event likely. Consider reducing exposure or adding hedges.
• Historical context: Thrust signals are rare (2-5 per year) but highly reliable for significant market moves.
4. Interpret rotation signals (regime identification):
• Risk-On Rotation → Broad market participation. Small caps outperforming. Healthy advance. Favor cyclical sectors, higher beta names.
• Risk-Off Rotation → Narrow rally or defensive positioning. Large caps outperforming. Caution—market leadership concentrating. Favor quality, defensives.
5. Interpret divergence signals (reversal warnings):
• Bullish Divergence → Selling exhaustion. Potential bottom formation. Wait for confirmation (zero-line cross, thrust) before aggressive positioning.
• Bearish Divergence → Rally losing momentum. Potential top formation. Consider profit-taking or hedging.
6. Combine signals for maximum conviction :
• Bull Confluence : Bullish Thrust + Risk-On Rotation + Positive McClellan = Maximum bullish alignment
• Bear Confluence : Bearish Thrust + Risk-Off Rotation + Negative McClellan = Maximum bearish alignment
• Alert system specifically flags these high-conviction confluences
7. Configure parameters for your style :
• Thrust Threshold : Default 40% catches major moves. Increase to 50%+ for extreme-only signals.
• Rotation Threshold : Default 10% spread. Tighten to 7.5% for earlier rotation detection.
• Divergence Lookback : Default 50 bars. Extend to 100+ for longer-term divergences.
8. Use alerts for proactive monitoring :
• Set TradingView alerts for Thrust, Rotation, Divergence, and Confluence conditions
• Receive notifications when critical breadth regime changes occur
═══════════════════════════════════════════════════════════════════════════════
LIMITATIONS
═══════════════════════════════════════════════════════════════════════════════
- U.S. equity markets only – NHNL data limited to NYSE, NASDAQ, AMEX. Does not cover international markets or other asset classes.
- Daily timeframe only – NHNL data is reported daily. Intraday trading requires alternative breadth measures.
- Lagging in fast reversals – McClellan Oscillator and participation metrics use EMAs, introducing lag during rapid regime shifts. Thrust signals respond faster but require extreme conditions.
- Equal-weighting assumption – All stocks within NHNL counts are equally weighted. Large-cap-dominated rallies (e.g., FANG-led advances) may show strong price performance despite mediocre breadth.
- False positives in sideways markets – Divergence signals can produce false positives during extended consolidation phases. Require confirmation from thrust or rotation signals.
- Participation data quality – S5FI, R2FI, NDFI data from TradingView may have occasional gaps or delays. Indicator includes data validation logic and falls back gracefully when data unavailable.
═══════════════════════════════════════════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════════════════════════════════════════
- Pine Script v5
- Non-repainting (signals confirmed on bar close)
- Multi-security data feeds (6 NHNL tickers + 3 participation tickers)
- Maximum 500 lines supported (divergence line drawing)
- Real-time dashboard table with 20+ rows
- 12+ alert conditions (thrust, divergence, rotation, ratio extremes, confluence)
- Fully customizable colors, thresholds, and visual elements
═══════════════════════════════════════════════════════════════════════════════
NOTES
═══════════════════════════════════════════════════════════════════════════════
This indicator is designed for experienced equity traders, portfolio managers, and market technicians familiar with:
- Market breadth analysis and internal market structure
- McClellan Oscillator interpretation
- New High - New Low dynamics and their correlation with market cycles
- Large-cap vs. small-cap rotation patterns
- Risk-On/Risk-Off regime identification
The framework provides objective breadth signals but does not account for:
- Fundamental catalysts (earnings, economic data, Fed policy)
- Sector-specific dynamics (may show broad weakness while certain sectors thrive)
- International market correlations
- Volatility regime changes (VIX dynamics)
Best used in combination with:
- Price action analysis (support/resistance, chart patterns)
- Volume analysis (accumulation/distribution)
- Volatility indicators (VIX, put/call ratios)
- Sentiment indicators (survey data, positioning)
Market breadth is a leading indicator of internal market health. Divergences between price and breadth often precede major reversals by weeks or months.
═══════════════════════════════════════════════════════════════════════════════
Developed for institutional market breadth analysis based on New Highs - New Lows methodology with extended participation breadth integration.
Majors FX-REER/NEER Suite [BIG]═══════════════════════════════════════════════════════════════════════════════
BIG MAJORS FX-REER/NEER SUITE
═══════════════════════════════════════════════════════════════════════════════
OVERVIEW
The BIG Majors FX-REER/NEER Suite is a multi-currency valuation framework designed for institutional FX traders, macro strategists, and systematic currency allocators. This indicator calculates Real Effective Exchange Rates (REER) and Nominal Effective Exchange Rates (NEER) for the seven major currency pairs (G7 FX), integrating macroeconomic fundamentals (CPI inflation differentials) with technical trend analysis to identify structural currency misvaluations and mean-reversion opportunities.
Unlike standard FX indicators that only analyze bilateral price action, this suite constructs trade-weighted basket indices that measure each currency's strength against a portfolio of its major trading partners, adjusted for inflation differentials. This approach mirrors central bank and sovereign wealth fund methodologies for assessing equilibrium exchange rate levels.
The framework combines:
- Fundamental valuation metrics – REER/NEER indices with Z-score normalization
- Technical trend filters – Ichimoku Cloud and Aroon oscillator confluence
- Signal classification system – Long/Short/Watch/Conflict regime identification
- Quantitative confidence scoring – 0-100% signal reliability weighting
═══════════════════════════════════════════════════════════════════════════════
CORE METHODOLOGY
═══════════════════════════════════════════════════════════════════════════════
• NEER Calculation (Nominal Effective Exchange Rate)
The NEER measures a currency's value against a trade-weighted basket of its seven major trading partners, geometrically averaged in log-space to ensure symmetry:
1. All seven G7 FX pairs are normalized to USD-pivot (A/USD format)
2. Each currency's log-normalized rate is compared to the arithmetic mean of the other six
3. Formula: NEER_i = (8/7) × log(CCY_i/USD) - mean(log(CCY_others/USD))
This construction ensures that:
- A rising NEER indicates currency appreciation against the basket
- The methodology is symmetric and avoids base-currency bias
- Changes reflect multilateral competitive dynamics, not just bilateral moves
• REER Calculation (Real Effective Exchange Rate)
The REER adjusts the NEER for inflation differentials using Consumer Price Index (CPI) data:
Formula: REER_i = NEER_i + log(CPI_i) - mean(log(CPI_others))
By incorporating CPI differentials, the REER provides a purchasing-power-parity-adjusted valuation metric that accounts for relative inflation rates. This is the institutional standard for assessing fundamental currency equilibrium levels.
Data Sources :
- FX rates: TradingView composite feed (FX:), OANDA, FXCM, FOREXCOM
- CPI data: ECONOMICS namespace (monthly frequency, official statistical releases)
- Supported currencies: USD, EUR, JPY, GBP, CHF, AUD, CAD, NZD
• Valuation Bias Detection
Each currency pair is classified as overvalued (bias = -1, "Short") or undervalued (bias = +1, "Long") based on two independent criteria:
1. Percentage Band Deviation – Relative Index distance from 100 baseline
• Overvalued: Index > 100 × (1 + deviation%), default +5%
• Undervalued: Index < 100 × (1 - deviation%), default -5%
2. Z-Score Threshold – Statistical extremes in rolling lookback window
• Overvalued: Z-Score > +1.5 (default)
• Undervalued: Z-Score < -1.5 (default)
Either condition triggers a bias classification. This dual-filter approach captures both absolute deviations and relative extremes within recent historical context.
• Trend Confirmation (Ichimoku + Aroon)
To avoid counter-trend entries in strong momentum regimes, the suite integrates two independent trend filters:
Ichimoku Cloud
- Bull: Price > Cloud AND Conversion > Base Line
- Bear: Price < Cloud AND Conversion < Base Line
- Parameters: Conv(9), Base(26), Span B(52), Displacement(26)
Aroon Oscillator
- Bull: Aroon Up > 70 AND Aroon Down < 30
- Bear: Aroon Down > 70 AND Aroon Up < 30
- Default lookback: 25 periods
Trend is confirmed only when both indicators agree (Ichimoku + Aroon ≥ +1 for bull, ≤ -1 for bear).
• Setup Classification Logic
The framework combines Bias (fundamental valuation) with Trend (technical momentum) to generate four distinct setup types:
- Long↗︎ (Setup = 1) – Undervalued + Bullish Trend
Context : Mean reversion opportunity with momentum confirmation. Currency trading at fundamental discount while technical trend supports upside.
- Short↘︎ (Setup = -1) – Overvalued + Bearish Trend
Context : Mean reversion opportunity with momentum confirmation. Currency trading at fundamental premium while technical trend supports downside.
- Watch (Setup = 2) – Valuation bias present, but no clear trend
Context : Fundamental mispricing without directional conviction. Monitor for trend emergence before entering.
- Conflict (Setup = 3) – Bias and trend pointing opposite directions
Context : Overvalued currency in uptrend OR undervalued currency in downtrend. Avoid—either trend continuation or valuation mean reversion, but unclear which dominates.
• Confidence Score (0-100%)
Each setup receives a quantitative confidence weighting based on three factors:
1. Band Distance (40%) – How far the Relative Index deviates from 100 baseline
2. Z-Score Magnitude (40%) – Statistical extremeness within lookback window
3. Trend Confluence (20%) – Agreement between Ichimoku and Aroon signals
Score interpretation:
- 70-100% = High confidence (both valuation and trend extremes aligned)
- 40-69% = Moderate confidence (one factor strong, others weak)
- 0-39% = Low confidence (marginal signals, questionable reliability)
═══════════════════════════════════════════════════════════════════════════════
VISUAL COMPONENTS
═══════════════════════════════════════════════════════════════════════════════
• Dashboard Table (Top-Right)
Displays real-time valuation metrics for all seven major pairs:
Column 1: Pair – Currency pair identifier
Column 2: RelIdx – Relative Index (100 = baseline at first valid bar)
Column 3: Z – Z-Score vs. rolling lookback window
Column 4: Bias – Long/Short/Neutral valuation classification
Column 5: Trend – ↑/↓/– trend direction (Ichimoku + Aroon)
Column 6: Setup – Long↗︎/Short↘︎/Watch/Conflict (color-coded)
Column 7: Conf – Confidence score 0-100% (color-coded)
Column 8: Quelle – REER (inflation-adjusted) or NEER (nominal only)
Color coding :
- Green = Long↗︎ setup
- Red = Short↘︎ setup
- Orange = Watch (no trend)
- Purple = Conflict (bias/trend divergence)
• Optional Chart Plot
Select any of the seven pairs to plot its Relative Index on the chart with:
- Baseline at 100 (horizontal gray line)
- +Band at 100 × (1 + deviation%), dashed red
- -Band at 100 × (1 - deviation%), dashed green
- Aqua line tracking the selected pair's Relative Index evolution
• Signal Labels
When a pair transitions into Long↗︎ or Short↘︎ setup:
- Green label below bar = Long↗︎ entry signal
- Red label above bar = Short↘︎ entry signal
- Positioned using ATR offset for visibility
═══════════════════════════════════════════════════════════════════════════════
KEY FEATURES
═══════════════════════════════════════════════════════════════════════════════
- Institutional valuation methodology – REER/NEER framework used by central banks and sovereign wealth funds
- Macro-fundamental integration – CPI inflation differentials adjust for purchasing power parity
- Multi-timeframe flexibility – Daily (D), Weekly (W), Monthly (M) resolution options
- Seven simultaneous pairs – Monitors all G7 FX majors in single unified dashboard
- No repainting – All signals confirm on bar close
- Automated alerts – TradingView notifications when setups transition (Long/Short triggers)
- Confidence weighting – Quantitative scoring allows position sizing calibration
- Fallback logic – Automatically switches to NEER if CPI data incomplete
═══════════════════════════════════════════════════════════════════════════════
HOW TO USE
═══════════════════════════════════════════════════════════════════════════════
1. Apply to any chart – The indicator pulls multi-security data; chart symbol does not matter (commonly applied to SPY or DXY for reference)
2. Select data feed – Default FX: (TradingView composite) is recommended; alternatives: OANDA, FXCM, FOREXCOM
3. Choose timeframe :
• Daily (D) = Swing trading, medium-term mean reversion (2-8 week horizons)
• Weekly (W) = Position trading, macro regime shifts (1-6 month horizons)
• Monthly (M) = Strategic allocation, long-term equilibrium analysis (6-24 month horizons)
4. Configure parameters :
• Z-Score Lookback : Default 252 (one trading year on Daily); adjust for timeframe (52 for Weekly, 36 for Monthly)
• Deviation Band : Default ±5%; tighten to ±3% for more signals, widen to ±7% for higher conviction
• Z-Threshold : Default ±1.5; increase to ±2.0 for extreme-only signals
5. Monitor dashboard table :
• Focus on pairs showing Long↗︎ or Short↘︎ setups with Conf ≥ 70%
• Watch for Watch setups transitioning to directional signals
• Avoid Conflict setups unless you have strong macro conviction
6. Execute mean-reversion trades :
• Long↗︎ = Buy undervalued currency (e.g., EURUSD Long if EUR undervalued)
• Short↘︎ = Sell overvalued currency (e.g., USDJPY Short if JPY overvalued)
• Target: Mean reversion toward 100 baseline or opposite band
7. Position sizing by confidence :
• High confidence (70-100%) → Standard position size
• Moderate confidence (40-69%) → Reduce size by 50%
• Low confidence (<40%) → Avoid or use minimal pilot size
8. Risk management :
• Stop loss: Place beyond recent swing high/low or 1.5× ATR
• Take profit: Opposite valuation band or 100 baseline
• Time stop: Exit if setup reverses (Long→Neutral→Short or vice versa)
═══════════════════════════════════════════════════════════════════════════════
LIMITATIONS
═══════════════════════════════════════════════════════════════════════════════
- CPI data lag – Consumer Price Index releases are monthly and report with 2-4 week delay. REER calculations may lag real-time inflation dynamics.
- Structural shifts ignored – The baseline (100) is set at first valid bar. Long-term structural appreciation/depreciation (e.g., 20-year USD bull market) is not accounted for. Suitable for cyclical mean reversion, not secular trend analysis.
- Equal-weighting assumption – All seven currencies are equally weighted in basket construction. Actual trade-weighted indices use GDP or trade volume weights, which this framework simplifies.
- No emerging market currencies – Limited to G7 majors (USD, EUR, JPY, GBP, CHF, AUD, CAD, NZD). Does not cover EM FX (e.g., CNY, BRL, MXN).
- Technical filter limitations – Ichimoku and Aroon are lagging indicators. In fast-moving markets (e.g., central bank interventions, geopolitical shocks), trend signals may arrive late.
- Mean reversion assumption – The framework assumes currencies revert to equilibrium. During regime changes (e.g., monetary policy divergence, crisis flows), deviations can persist or expand before eventual reversal.
═══════════════════════════════════════════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════════════════════════════════════════
- Pine Script v6
- Non-repainting (signals confirmed on bar close)
- Multi-security data feeds (7 FX pairs + 8 CPI series)
- Automated alert system (transitions to Long↗︎/Short↘︎)
- Real-time dashboard table (8 columns × 8 rows)
- Maximum 500 labels supported (100 per pair direction)
- Fallback logic: NEER used if CPI data unavailable
═══════════════════════════════════════════════════════════════════════════════
NOTES
═══════════════════════════════════════════════════════════════════════════════
This indicator is designed for experienced FX traders, macro strategists, and portfolio managers familiar with:
- Real and nominal effective exchange rate concepts
- Purchasing power parity theory and inflation differentials
- Multi-currency portfolio construction and basket hedging
- Carry trade and convergence strategies
- Central bank policy impacts on FX equilibrium levels
The framework provides objective valuation signals but does not account for:
- Interest rate differentials (carry)
- Capital flow dynamics (risk-on/risk-off)
- Central bank intervention zones
- Geopolitical risk premiums
Always combine REER/NEER valuation analysis with macro event calendars, positioning data (CFTC COT reports), and fundamental policy divergence assessments.
═══════════════════════════════════════════════════════════════════════════════
Developed for institutional FX valuation analysis based on central bank REER/NEER methodologies.
智能趋势-多周期动态信号 Smart Trend Oscillator MTF V1🚀 智能趋势-多周期动态信号 Smart Trend Oscillator MTF V1
—— 让交易像红绿灯一样简单直观 | Making Trading as Simple as Traffic Lights
告别复杂的参数设置,把市场噪音变成明确的信号。 Say goodbye to complex parameters. Turn market noise into clear signals.
🌟 它是做什么的? / What Does It Do?
“智能趋势管家” 就像您的私人交易副驾驶。它内置了一套先进的智能平滑算法,能够自动过滤掉市场中那些骗人的假动作,只把最核心的**“市场真实韵律”通过一条平滑的波浪线展示给您。它不只是一根线,它是一套会思考的系统**。
"Smart Trend Oscillator " is like your personal trading co-pilot. It features a built-in advanced smoothing algorithm that automatically filters out deceptive market "fake-outs," revealing the "true rhythm" of the market through a single, smooth wave. It’s not just a line; it’s a thinking system.
🔥 核心功能 / Core Features
1. 🌊 智能波浪引擎 / Smart Wave Engine
不要被K线的上蹿下跳迷惑。我们的引擎能识别市场内部的真实能量。 Don't be confused by erratic candlesticks. Our engine identifies the true internal energy of the market.
过滤噪音 (Filter Noise):自动忽略短暂的随机波动。
捕捉趋势 (Capture Trends):波浪上升代表买方主导,波浪下降代表卖方主导。
2. 🛡️ 自适应波动通道 / Adaptive Channels
市场有时候像乌龟(波动小),有时候像兔子(波动大)。指标拥有一个“弹性通道”,它会根据市场活跃度自动变宽或变窄,精准判断价格是否“过热”或“超卖”。 The market moves between low and high volatility. The indicator features an "elastic channel" that automatically widens or narrows, accurately judging if the price is "Overheated" or "Oversold."
3. 🌍 全局监控面板 / Global Dashboard
右上角的面板是您的战况指挥室。一眼看懂 6 个不同时间维度的状态。全绿代表多周期共振向上,全红代表多周期共振向下。 The panel in the top-right corner is your Command Center. Understand the status of 6 different time dimensions at a glance. All Green means upward resonance; All Red means downward resonance.
⚙️ 极致的个性化定制 / Ultimate Customization
v16 版本为您提供了前所未有的控制权,让指标完全适应您的交易风格。 Version 16 gives you unprecedented control to tailor the indicator to your trading style.
🕒 1. 时间周期,由你定义 (Customizable Timeframes)
不再局限于系统默认设置。您可以在设置面板中自由输入 6 个您最关心的周期(例如:5分钟、1小时、甚至 3天)。
短线手:设置为 1分/3分/5分/15分...
波段手:设置为 1小时/4小时/日线/周线...
Benefit: You can freely input the 6 timeframes that matter most to you in the settings panel, whether you are a scalper or a swing trader.
🎯 2. 灵敏度调节 (Adjustable Sensitivity)
想要更多交易机会?还是想要更稳健的信号?
高灵敏度:调高 Zone Sensitivity,捕捉每一次微小的回调(适合激进风格)。
低灵敏度:调低数值,过滤掉小波动,只抓大趋势(适合稳健风格)。
Benefit: Dial up the sensitivity to catch every minor pullback (Aggressive), or dial it down to filter noise and catch only big trends (Conservative).
📊 3. 两种平滑模式 (SMA vs. VWMA)
您可以选择通道的计算核心:
Standard (SMA):经典模式,适合大多数市场。
Volume Weighted (VWMA):成交量加权模式。在加密货币或股票市场,它能帮您过滤掉“无量空涨”或“无量空跌”的假信号。
Benefit: Choose Standard (SMA) for general markets, or Volume Weighted (VWMA) to filter out fake moves on low volume (great for Crypto/Stocks).
🚦 信号含义 / Signals Guide
我们把复杂的逻辑浓缩成了最简单的视觉标签: We have condensed complex logic into the simplest visual labels:
🟢 绿色 BUY 标签:市场“便宜”且能量向上。 (Market is "Cheap" & Energy is Up.)
🔴 红色 SELL 标签:市场“过热”且能量向下。 (Market is "Overheated" & Energy is Down.)
🔵 蓝色 HOLD 标签:趋势延续中,建议持仓。 (Trend is continuing, suggest holding position.)
📥 快速上手 / Quick Start
加载指标 (Load):添加到您的图表。
设置周期 (Set Timeframes):在输入选项里填入您习惯查看的 6 个时间周期。
选择模式 (Choose Mode):如果是成交量重要的资产,建议开启 VWMA 模式。
等信号 (Wait):等待带方框的 BUY 或 SELL 标签出现。
把复杂留给算法,把简单留给您。 Leave the complexity to the algorithms, and keep the simplicity for yourself.
主流币种中长线趋势系统This script is a comprehensive trading system designed for medium-to-long-term analysis of mainstream assets. It combines custom volatility algorithms, trend momentum filters, and market structure analysis to identify high-probability reversal points (Tops/Bottoms) and trend-following entry opportunities.
It eliminates market noise and provides clear visual signals, making it suitable for traders looking to capture major market swings without staring at the screen 24/7.
这是一个专为主流资产中长线交易设计的综合分析系统。它融合了自定义的波动率算法、趋势动量过滤器以及市场结构分析,旨在识别高胜率的趋势反转点(顶/底)以及右侧顺势入场机会。
本系统有效过滤了市场噪音,提供清晰的视觉信号,非常适合希望捕捉市场主升浪/主跌浪的交易者。
How to Use / 信号使用说明
The system provides three layers of information: Reversal Warnings, Trend Confirmations, and Key Levels.
本系统提供三个维度的信息:反转预警、趋势确认、关键位结构。
1. Reversal Signals (Top & Bottom) / 顶底反转信号
These signals appear when the market is overheated or oversold based on our proprietary composite algorithm.
这些信号出现在市场极度贪婪或恐慌的时刻,基于独家的复合算法计算得出。
"底" (Bottom) Label (Green): Indicates a potential market bottom or accumulation zone. It suggests that downside momentum is exhausted.
"底"(绿色标签): 提示潜在的市场底部或吸筹区,意味着下跌动能衰竭,是左侧关注买入机会的参考。
"顶" (Top) Label (Red): Indicates a potential market top or distribution zone. It suggests that upside momentum is unsustainable.
"顶"(红色标签): 提示潜在的市场顶部或派发区,意味着上涨动能不可持续,是左侧止盈或减仓的参考。
2. Trend Entry Signals (Circles) / 趋势入场信号 (圆点)
These signals are generated only when the trend direction is confirmed and multiple filters align.
只有在趋势方向明确,且多个动量过滤器发生共振时,才会触发此类信号。
Green Circle: Confirmed Long entry. Best used when price action breaks out of consolidation or resumes an uptrend.
绿色圆点: 确认的多头入场信号。通常在价格突破盘整或上升趋势延续时出现,适合右侧顺势交易。
Red Circle: Confirmed Short entry. Indicates the start or continuation of a bearish trend.
红色圆点: 确认的空头入场信号。预示着下跌趋势的开始或延续。
3. Market Structure (Boxes & Lines) / 市场结构 (方框与线条)
Boxes: These represent institutional Order Blocks (Support/Resistance zones).
方框: 代表机构的关键订单块区域(强支撑/压力区)。
Lines: These visualize Break of Structure (BOS) or Change of Character (CHoCH), helping you understand the current market phase.
线条: 可视化显示市场结构的破坏与反转,帮助你判断当前是处于上涨结构还是下跌结构中。
Settings & Optimization / 设置与优化
Signal Mode (辅助提示模式):
Conservative (保守模式): Fewer signals, higher precision. Best for risk-averse traders.
Balanced (平衡模式): Default setting, balanced between frequency and accuracy.
Aggressive/Demon (激进/恶魔模式): More signals, captures smaller swings but with more noise.
Trade Mode (交易模式): You can choose to display signals for "Both Sides", "Long Only", or "Short Only" to fit your strategy.
Alerts / 警报系统
The script supports real-time alerts. When a signal is triggered, the alert message will also intelligently calculate and include the nearest Pressure (Resistance) and Support price levels based on current market structure.
脚本支持实时警报。当信号触发时,警报消息还会智能计算并附带当前最近的压力位和支撑位价格,方便挂单。
此版本有效期至2026年1月
Disclaimer / 免责声明
This script is for educational and analytical purposes only. Past performance does not guarantee future results. Please manage your risk strictly.
本脚本仅供教育和分析使用。过往表现不代表未来结果。请严格管理您的风险。
Multi RSI [TradingLaWea]This is my multiple RSI indicator, you can use 3 RSI in one indicator. Enjoy it. @TradingLaWea
Bollinger Bands + VWAP + 4-State MACD BackgroundBollinger Bands + VWAP + 4-State MACD Background
An all-in-one technical analysis indicator combining three proven tools with an intelligent momentum-based background visualization system.
📊 FEATURES
Bollinger Bands
Standard Bollinger Bands implementation with full customization options:
Adjustable period length (default: 20)
Multiple moving average types: SMA, EMA, SMMA (RMA), WMA, VWMA
Configurable standard deviation multiplier (default: 2.0)
Visual fill between bands to highlight volatility zones
Offset capability for forward/backward display
Session VWAP (Volume Weighted Average Price)
Automatically resets at the start of each trading session:
Calculates true volume-weighted average price
Resets daily to provide fresh reference levels
Customizable source input (default: HLC3)
Adjustable line appearance (color and width)
Can be toggled on/off as needed
4-State MACD Background System
This is the unique feature of this indicator. The chart background dynamically changes based on MACD momentum analysis, providing instant visual feedback on trend strength and direction:
🟢 Strong Bullish (Bright Green)
MACD line is above signal line
Histogram is growing (momentum accelerating upward)
Indicates strong upward momentum
🟢 Weak Bullish (Pale Green)
MACD line is above signal line
Histogram is shrinking (momentum decelerating)
Early warning signal that uptrend may be weakening
🔴 Strong Bearish (Bright Red)
MACD line is below signal line
Histogram is falling (momentum accelerating downward)
Indicates strong downward momentum
🔴 Weak Bearish (Pale Red)
MACD line is below signal line
Histogram is rising (momentum decelerating)
Early warning signal that downtrend may be weakening
🎯 HOW TO USE
For Trend Trading:
Strong colored backgrounds indicate confirmed momentum in that direction - consider staying with the trend
Weak colored backgrounds signal potential momentum exhaustion - watch for possible reversals
Use VWAP as a dynamic support/resistance level
Bollinger Band breakouts combined with strong MACD backgrounds can confirm trend strength
Price above VWAP + strong bullish background = bullish bias
Price below VWAP + strong bearish background = bearish bias
For Mean Reversion:
Price touching upper/lower Bollinger Bands with weak MACD background may suggest potential reversal
VWAP acts as a mean reversion anchor during range-bound sessions
Background color shifts from strong to weak often precede price direction changes
Look for price return to VWAP when extended beyond bands with weakening momentum
Signal Confirmation:
Strongest signals occur when multiple indicators align:
BB breakout + MACD strong color + price above/below VWAP
Price rejection at BB bands + MACD color weakening
VWAP support/resistance hold + MACD color change
⚙️ SETTINGS
All components are fully customizable through organized input groups:
Bollinger Bands Group:
Period length
Moving average type (SMA/EMA/SMMA/WMA/VWMA)
Source (close/open/high/low/etc.)
Standard deviation multiplier
Offset
VWAP Group:
Toggle show/hide
Source calculation method
Line color
Line width
MACD Group:
Toggle background on/off
Fast length (default: 12)
Slow length (default: 26)
Signal length (default: 9)
Source
Four separate color settings for each momentum state
All colors include transparency controls
💡 EDUCATIONAL VALUE
This indicator teaches important concepts:
How volatility (Bollinger Bands) relates to price movement
The importance of volume-weighted pricing (VWAP)
Momentum analysis through MACD
How combining multiple timeframes and indicators can provide confluence
The difference between trend strength and trend direction
⚠️ IMPORTANT NOTES
This indicator is for educational and informational purposes only
No indicator is perfect - always use proper risk management
Past performance does not guarantee future results
Combine with your own analysis and risk tolerance
Test thoroughly on historical data before live trading
This is not financial advice - use at your own risk
🔧 TECHNICAL DETAILS
Pine Script Version 6
Overlay indicator (displays on price chart)
All calculations use standard, well-documented formulas
Minimal lag due to efficient coding
Compatible with all timeframes and instruments
No repainting - all signals are confirmed on bar close
📝 CHANGELOG
Version 1.0
Initial release
Bollinger Bands with multiple MA types
Session VWAP with daily reset
4-state MACD background system
Full customization options
Developed for traders who want multiple confirmation signals in a clean, organized format without cluttering their charts with separate indicator panels.
Exhaustion IndicatorThe ScalpSQZ indicator is designed to identify four critical market states using volatility structure, momentum behavior, and exhaustion conditions. It enhances scalping precision by visually marking transitions between consolidation, squeeze conditions, and momentum reversals through color-coded candles.
1. Squeeze Conditions (Orange Candles)
Orange candles highlight volatility compression, detected when Bollinger Bands contract inside the Keltner Channels. This structure signals that market volatility is tightening and a significant expansion move is likely to follow. The squeeze represents a pre-breakout environment and serves as the earliest warning of a potential directional shift.
2. Consolidation Conditions (Yellow Candles)
Yellow candles identify phases of low directional momentum. These conditions occur when RSI remains near neutral values, MACD histogram activity is minimal, and the Rate of Change stays muted. This combination indicates that the market is balanced and non-trending, often preceding a volatility spike or a new trend. Consolidation helps traders avoid low-probability entries during indecisive price action.
3. Momentum Exhaustion — Overbought Fade (White Candles)
White candles signal potential top-side exhaustion. This occurs when RSI enters overbought territory while the MACD histogram begins to weaken compared to the previous bar. This condition does not necessarily call a reversal but warns that bullish momentum is deteriorating and upside continuation may be limited. It is particularly useful for identifying trend fatigue and tightening stop-loss placement.
4. Momentum Exhaustion — Oversold Fade (Purple Candles)
Purple candles identify bottom-side exhaustion and appear when RSI reaches oversold levels, MACD momentum begins improving, and the current close shows buyer defense relative to the previous low. This condition suggests selling pressure is diminishing and a potential reversal or relief bounce may be forming. Purple candles serve as an early indication of bearish trend exhaustion.
Color Priority System
The indicator follows a fixed hierarchy to ensure clarity:
Squeeze (orange) has the highest priority, followed by consolidation (yellow). Exhaustion signals (white for tops, purple for bottoms) apply only when no squeeze or consolidation conditions are active. This structure ensures that the most critical market states are always highlighted first.
Purpose and Application
ScalpSQZ helps traders identify optimal environments for breakouts, anticipate trend exhaustion, and avoid low-quality trades during choppy or low-momentum conditions. It is suitable for scalping, day trading, and swing trading across any asset class or timeframe.
FluxPulse Momentum [JOAT]FluxPulse Momentum - Adaptive Multi-Component Oscillator
FluxPulse Momentum is a composite oscillator that blends three distinct momentum components into a single, smoothed signal line. Rather than relying on a single indicator, it synthesizes adaptive RSI, normalized rate of change, and a Kaufman-style efficiency ratio to provide a multi-dimensional view of momentum.
What This Indicator Does
Combines RSI, Rate of Change (ROC), and Efficiency Ratio into one weighted composite
Applies EMA smoothing to reduce noise while preserving responsiveness
Displays overbought/oversold zones with optional background highlighting
Generates buy/sell signals when the oscillator crosses its signal line in favorable zones
Provides a real-time dashboard showing current state, momentum direction, and efficiency
Core Components
Adaptive RSI (50% weight) — Standard RSI calculation normalized around the 50 level
Normalized ROC (30% weight) — Rate of change scaled relative to its recent maximum range
Efficiency Ratio (20% weight) — Measures directional movement efficiency, inspired by Kaufman's adaptive concepts
The final composite is smoothed twice using EMA to create both a fast line and a signal line.
Signal Logic
// Buy signal: crossover in lower half
buySignal = ta.crossover(qmo, qmoSmooth) and qmo < 50
// Sell signal: crossunder in upper half
sellSignal = ta.crossunder(qmo, qmoSmooth) and qmo > 50
Signals are generated only when the oscillator is positioned favorably—buy signals occur below the 50 midline, sell signals occur above it.
Dashboard Information
The on-chart table displays:
Current oscillator value with gradient coloring
Momentum state (Overbought, Oversold, Bullish, Bearish, Neutral)
Momentum direction and acceleration
Efficiency ratio percentage
Active signal status
Inputs Overview
RSI Length — Period for RSI calculation (default: 14)
ROC Length — Period for rate of change (default: 10)
Smoothing Length — EMA smoothing period (default: 3)
Overbought/Oversold Levels — Threshold levels for zone detection
Await Bar Confirmation — Wait for bar close before triggering alerts
How to Use It
Watch for crossovers between the main line and signal line
Use overbought/oversold zones to identify potential reversal areas
Monitor the histogram for momentum acceleration or deceleration
Combine with price action analysis for confirmation
Alerts
Buy Signal — Bullish crossover in the lower zone
Sell Signal — Bearish crossunder in the upper zone
Overbought/Oversold Crosses — Level threshold crossings
This indicator is provided for educational purposes. It does not constitute financial advice. Always conduct your own analysis before making trading decisions.
— Made with passion by officialjackofalltrades
RSI Swing Indicator (Win-Rate + Forecast Line + Range Row)What the script does:
It’s essentially an enhanced RSI tool that doesn’t just show the raw RSI line. Instead, it adds forecasting, trade statistics, and range detection so you can see how reliable RSI signals have been historically and what they might mean going forward.
The main components
RSI Calculation
- Uses your chosen source (close, hl2, etc.) and length (default 7).
- Plots the RSI line (orange).
Forecasting
- Projects RSI into the future using slope extrapolation.
- Plots a forecast line (blue) and shows whether RSI is likely to become overbought, oversold, or stay neutral.
Trade Statistics
- Tracks how many long and short trades would have been profitable based on RSI bias.
- Calculates Win‑Rate (percentage of profitable trades) and Average Return (average gain/loss per trade).
- This gives you a statistical edge: are longs or shorts historically working better?
Bias & Conflict Detection
- Defines current bias (Bullish, Bearish, Neutral).
- Flags Conflict when the forecast disagrees with the current bias (e.g., RSI bullish now but forecast bearish).
- Helps you avoid trading against weakening momentum.
Range Detection
- Checks if RSI slope is flat and values are between mid‑bounds (40–60).
- Calculates Range Probability (how often range conditions occur).
- Adds a Range row to the table so you know when the market is likely sideways instead of trending.
Table Display
- Summarizes everything in a neat table: Forecast, Win‑Rates, Avg Returns, Prob Bias, Conflict, Range Prob, and Range status.
- Color‑coded so you can instantly see what’s favorable (green), risky (red), or neutral (yellow/orange).
How to use it
- Trend trading: Look for Profitable Bias with forecast alignment.
- Range trading: When both win‑rates are weak and Range row says Range Likely, fade extremes (buy low RSI, sell high RSI).
- Risk management: Avoid trades when Conflict is flagged.
- Forecasting: Use the projected RSI to anticipate overbought/oversold zones before they happen.
In short:
The script is like a “smart RSI dashboard”. It takes the basic RSI, adds forecasting, tracks how well past trades worked, and tells you whether the market is trending or ranging. This way, you’re not just reacting to RSI — you’re trading with context, probabilities, and forward‑looking signals.
Apex IndicatorThe Apex Indicator is a physics-based momentum tool designed to measure the 2nd Derivative (Acceleration) of both Price and Volume.
Unlike standard oscillators which often lag, this indicator uses Kinematics to identify the subtle shifts in momentum before price makes a major move. It answers the critical questions: Is the selling pressure fading? and Is there fresh fuel (Volume) entering to support a turn?
This script uses Hull Moving Average (HMA) smoothing for low-latency calculation, and Z-Score Normalization to force Price and Volume onto a shared, readable scale.
Visual Guide
The Histogram (Price Acceleration)
Bright Green: Strong Bullish Acceleration (High Velocity).
Dark Green: Developing Bullish Momentum (or Waning Bullishness depending on context).
Bright Red: Strong Bearish Acceleration (Panic/Dump).
Dark Red: Developing Bearish Momentum (or Waning Bearishness).
The Line (Volume Acceleration)
Yellow: Volume is accelerating (Interest is entering).
Purple: Volume is decelerating (Interest is leaving).
The Background Highlights
Green/Red Background: These mark Statistical Extremes (>1 Standard Deviation). While these show maximum power, they often mark the climax of a move rather than the start.
How to Trade: Reading the Subtleties
The power of the Apex Indicator is not in chasing the spikes, but in reading the Transitions.
1. The Turn (The Reversal Entry)
Don't wait for the explosion; look for the "braking" action.
The Setup: Price has been moving down strongly (Bright Red bars).
The Signal: The histogram shifts to Dark Red and begins moving up toward the zero line (less negative). This means the selling acceleration is dying.
The Trigger: A Dark Green bar prints, accompanied by the Volume Line turning Yellow/Rising.
Why it works: You are entering when the bearish energy is exhausted and fresh volume is stepping in to lift the price, often before the main breakout occurs.
2. The Second Wind (Trend Continuation)
The Setup: You are already in a trend (Green bars), but the bars fade to Dark Green or near Zero (a pullback or pause).
The Trigger: The next bar flips Bright Green and the Volume Line spikes Yellow.
Why it works: This confirms that the pause was just a breather, and buyers are stepping back on the gas.
3. The "Hollow Move" (Trap Avoidance)
The Scenario: Price is moving up (Green bars), but the Volume Line is Purple or dropping.
Interpretation: This is a drift, not a drive. Without volume acceleration support, these moves are prone to rapid reversal.
4. The Climax (Exits)
If the Background flashes Green (Alert Trigger), be aware that price acceleration has hit a statistical extreme (Z-Score > 1).
If you are in a position, this is often a good place to Take Profit, as maintaining that level of acceleration is mathematically difficult for the market to sustain.
Settings
Analysis Length (21): The lookback period for the HMA smoothing.
Normalization Lookback (21): The historical window used to calculate the Z-Score. A setting of 21 allows the indicator to self-adjust quickly to recent volatility conditions.
PEG RSI [Auto EPS Growth]The PEG RSI is a hybrid indicator that combines fundamental valuation with technical momentum. It applies the Relative Strength Index (RSI) directly to the Price/Earnings-to-Growth (PEG) Ratio.
Unlike traditional PEG indicators that require manual input for growth rates, this script automatically calculates the Compound Annual Growth Rate (CAGR) of Earnings Per Share (EPS) based on historical data.
Key Features
- Auto-Calculated Growth: Uses historical TTM Earnings Per Share (EPS) to calculate the CAGR over a user-defined period (Default: 4 years).
- Dynamic Valuation: Converts the static PEG ratio into an oscillator (RSI) to identify relative valuation extremes.
- Trend & Momentum: Visualizes the momentum of the PEG ratio relative to its own history.
Educational Case Study
This indicator is designed for educational purposes and research. Instead of relying on fixed overbought or oversold levels, users are encouraged to study the correlation between the PEG RSI and price action independently.
- Observe how the price reacts when the PEG RSI reaches upper or lower extremes.
- Different stocks may respect different RSI zones based on their growth stability.
- Use this tool to analyze how market valuation momentum shifts over time.
Settings:
- Years for CAGR Growth: Timeframe to calculate EPS growth (Default: 4 years).
- RSI Length: Lookback period for the RSI calculation (Default: 14).
Note: This indicator works best on stocks with a consistent history of earnings. It requires financial data to function (will not work on assets without EPS like Crypto or Forex).
RSS - Reversal Score System v3 [Rulph]OVERVIEW
(Russian version below)
The Reversal Score System v3 (RSS3) is a sophisticated multi-component indicator designed to identify potential market reversal zones by combining volatility pressure analysis, trend momentum measurement, and divergence detection. The system generates a normalized score ranging from -1 (bullish) to +1 (bearish), with visual cloud overlays highlighting high-probability reversal areas. RSS3 integrates multi-timeframe confirmation and adaptive divergence filtering to reduce false signals in strong trends.
CORE COMPONENTS
Volatility Pressure Index (VPI)
VPI measures volatility expansion and price compression by combining:
• RSI distance from neutral (50) to gauge momentum deviation
• Annualized volatility estimation (VIX-style) to detect stress
• Normalized candle range relative to historical volatility
• Bollinger Bands position for price extension analysis
Higher VPI values indicate overbought conditions with volatility pressure, while lower values suggest oversold compression with potential for reversal.
Trend Direction Force Index (TDFI)
TDFI quantifies directional momentum strength by analyzing:
• Divergence between fast (MMA) and slow (SMMA) moving averages
• Average momentum (impetus) between the two moving averages
• Normalized power-weighted trend force
Positive TDFI indicates strong uptrend momentum, negative values indicate downtrend force. Extreme values (>0.7 or <-0.7) trigger impulse signals.
Divergence Detection System
The indicator automatically detects classical and hidden divergences for both VPI and TDFI:
• Bullish divergences: price makes lower low while indicator makes higher low
• Bearish divergences: price makes higher high while indicator makes lower high
• Divergence bonus decays over time (customizable decay period)
• Amplitude-weighted strength multiplier
• Sequential divergence counter for confirmation
Multi-Timeframe Filter (MTF)
Optional higher timeframe analysis helps filter low-probability reversals:
• Off mode : No filtering applied
• Reduce mode : Lowers divergence bonus when counter-trend to HTF (30% reduction)
• Block mode : Completely hides divergence markers against strong HTF trend
MTF calculates VPI and TDFI on higher timeframe and blends scores based on MTF weight parameter.
FINAL SCORE CALCULATION
The final score combines:
Score = (VPI_weight × VPI) + (TDFI_weight × TDFI) - Bull_Div_Bonus + Bear_Div_Bonus
When MTF is enabled:
Final_Score = (1 - MTF_weight) × Base_Score + MTF_weight × MTF_Score
VISUAL FEATURES
Adaptive Score Clouds
Dynamic colored zones appear above/below price when reversal conditions strengthen:
• Green cloud below price : Bullish reversal zone (score < bullish threshold)
• Red cloud above price : Bearish reversal zone (score > bearish threshold)
• Cloud height : Proportional to signal strength (3× ATR maximum)
• Transparency : Decreases with stronger signals (90% weak → 50% strong)
• Threshold mode : Clouds appear only when thresholds exceeded
• Gradient mode : Clouds show accumulation from any score value
Divergence Markers
Triangle markers indicate detected divergences:
• Green/Lime triangles below price: Bullish divergences (lime = both VPI+TDFI)
• Red/Maroon triangles above price: Bearish divergences (maroon = both VPI+TDFI)
• Gray markers: Filtered divergences (when MTF filter is active)
• Offset by pivot lookback period for accuracy
Momentum Impulses
Optional arrow markers highlight strong momentum breakouts:
• Blue arrows down: Bearish momentum impulse
• Orange arrows up: Bullish momentum impulse
Info Table
Real-time statistics display in top-right corner:
• Current final score with color coding
• Individual VPI and TDFI values
• Active divergence bonuses (Bull/Short)
• MTF trend status (when enabled)
• Current filter mode
HOW TO USE
For Reversal Trading
1 — Wait for score to cross bullish threshold (<-0.5) for potential long entries or bearish threshold (>0.5) for shorts
2 — Confirm with divergence markers appearing simultaneously
3 — Look for cloud formation strengthening the signal
4 — Use MTF filter to avoid counter-trend trades
For Trend Continuation
• Impulse arrows indicate strong momentum continuation
• Use as confirmation when trading in direction of established trend
• MTF alignment provides additional confidence
For Multi-Timeframe Analysis
• Enable MTF filter and set higher timeframe (e.g., 4H on 1H chart, Daily on 4H chart)
• Use "Reduce" mode for conservative approach
• Use "Block" mode for strict trend alignment
PARAMETERS GUIDE
Score Group
• VPI Weight (0.5): Balance between volatility and trend components. Increase for volatility-focused signals.
• TDFI Weight (0.5): Balance between volatility and trend components. Increase for trend-focused signals.
• Divergence Bonus Max (0.3): Maximum contribution of divergences to score. Higher = stronger divergence impact.
Divergence Group
• Pivot Lookback (3): 2=aggressive/fast, 3=balanced, 5=conservative/slow
Multi TimeFrame Group
• Higher TF : Typically 4-16× current timeframe (e.g., 4H for 1H chart)
• MTF Weight (0.3): Influence of higher timeframe in final score
• Trend Filter Level (0.5): TDFI threshold defining "strong trend" on HTF
Visual Group
• Cloud Mode : Threshold (traditional) vs Gradient (continuous accumulation)
• Cloud Transparency : Base transparency for weak signals
Advanced Groups
Fine-tune indicator components for specific markets or timeframes. Default values work well for most assets. Increasing periods smooths signals but adds lag; decreasing periods increases sensitivity but may cause noise.
ALERTS
Six alert conditions available:
• Bullish Zone: Score crosses below bullish threshold
• Bearish Zone: Score crosses above bearish threshold
• Strong Bull Div: Both VPI+TDFI show bullish divergence (unfiltered)
• Strong Bear Div: Both VPI+TDFI show bearish divergence (unfiltered)
• Down Impulse: Bearish momentum breakout
• Up Impulse: Bullish momentum breakout
NOTES
• Works on all timeframes and asset classes (crypto, forex, stocks, indices)
• Best results on liquid markets with clear trend/reversal cycles
• Combine with price action, support/resistance, and risk management
• Divergences work best in ranging or weakening trend conditions
• Not a standalone trading system - use as confirmation tool
LIMITATIONS
• Like all indicators, RSS3 can generate false signals in choppy/sideways markets
• Divergence detection requires sufficient historical data (minimum 50-100 bars)
• MTF filter may reduce signal frequency significantly in "Block" mode
• Advanced parameters require understanding of underlying calculations
DISCLAIMER
This indicator is provided for informational and educational purposes only and does not constitute financial, investment, or trading advice. All trading involves risk, and past performance does not guarantee future results. Users are solely responsible for their own trading decisions and should conduct their own research or consult with a qualified financial advisor before making any investment decisions. The author assumes no liability for any losses incurred through the use of this indicator.
═════════════════════════════════════════════════════════════════════════
© Rulph - Reversal Score System v3
ОБЗОР
Reversal Score System v3 (RSS3) — это многокомпонентный индикатор для выявления зон потенциального разворота рынка, объединяющий анализ давления волатильности, измерение силы тренда и обнаружение дивергенций. Система генерирует нормализованный скор от -1 (бычий) до +1 (медвежий) с визуальными облаками, выделяющими зоны высокой вероятности разворота. RSS3 интегрирует подтверждение с высшего таймфрейма и адаптивную фильтрацию дивергенций для снижения ложных сигналов в сильных трендах.
ОСНОВНЫЕ КОМПОНЕНТЫ
Индекс давления волатильности (VPI)
VPI измеряет расширение волатильности и ценовое сжатие, комбинируя:
• Отклонение RSI от нейтрального уровня (50) для оценки моментума
• Оценку годовой волатильности (VIX) для определения стресса
• Нормализованный диапазон свечей относительно исторической волатильности
• Положение относительно полос Боллинджера для анализа растяжения цены
Высокие значения VPI указывают на перекупленность с давлением волатильности, низкие значения — на перепроданность со сжатием и потенциалом разворота.
Индекс силы направления тренда (TDFI)
TDFI количественно оценивает силу направленного моментума через анализ:
• Расхождения между быстрой (MMA) и медленной (SMMA) скользящими средними
• Среднего моментума (импульса) между двумя скользящими
• Нормализованной силы тренда с весовым коэффициентом
Положительный TDFI указывает на сильный восходящий моментум, отрицательные значения — на нисходящую силу. Экстремальные значения (>0.7 или <-0.7) вызывают импульсные сигналы.
Система обнаружения дивергенций
Индикатор автоматически обнаруживает классические и скрытые дивергенции для VPI и TDFI:
• Бычьи дивергенции: цена формирует более низкий минимум, индикатор — более высокий минимум
• Медвежьи дивергенции: цена формирует более высокий максимум, индикатор — более низкий максимум
• Бонус дивергенции затухает со временем (настраиваемый период затухания)
• Множитель силы, взвешенный по амплитуде
• Счётчик последовательных дивергенций для подтверждения
Мультитаймфреймовый фильтр (MTF)
Опциональный анализ высшего таймфрейма помогает отфильтровать развороты с низкой вероятностью:
• Режим Off : Фильтрация не применяется
• Режим Reduce : Снижает бонус дивергенции при контр-тренде к HTF (на 30%)
• Режим Block : Полностью скрывает маркеры дивергенций против сильного тренда HTF
MTF рассчитывает VPI и TDFI на высшем таймфрейме и смешивает скоры на основе параметра MTF weight.
РАСЧЁТ ФИНАЛЬНОГО СКОРА
Финальный скор объединяет:
Скор = (Вес_VPI × VPI) + (Вес_TDFI × TDFI) - Бонус_бычьей_див + Бонус_медвежьей_див
При включённом MTF:
Финальный_скор = (1 - Вес_MTF) × Базовый_скор + Вес_MTF × MTF_скор
ВИЗУАЛЬНЫЕ ФУНКЦИИ
Адаптивные облака скора
Динамические цветные зоны появляются выше/ниже цены при усилении условий разворота:
• Зелёное облако под ценой : Бычья зона разворота (скор < бычьего порога)
• Красное облако над ценой : Медвежья зона разворота (скор > медвежьего порога)
• Высота облака : Пропорциональна силе сигнала (максимум 3× ATR)
• Прозрачность : Уменьшается при усилении сигнала (90% слабый → 50% сильный)
• Режим Threshold : Облака появляются только при превышении порогов
• Режим Gradient : Облака показывают накопление от любого значения скора
Маркеры дивергенций
Треугольные маркеры указывают на обнаруженные дивергенции:
• Зелёные/лаймовые треугольники под ценой: Бычьи дивергенции (лайм = обе VPI+TDFI)
• Красные/бордовые треугольники над ценой: Медвежьи дивергенции (бордо = обе VPI+TDFI)
• Серые маркеры: Отфильтрованные дивергенции (когда активен MTF-фильтр)
• Смещение на период pivot lookback для точности
Импульсы моментума
Опциональные стрелки выделяют сильные импульсные прорывы:
• Синие стрелки вниз: Медвежий импульс моментума
• Оранжевые стрелки вверх: Бычий импульс моментума
Информационная таблица
Статистика в реальном времени в правом верхнем углу:
• Текущий финальный скор с цветовой кодировкой
• Отдельные значения VPI и TDFI
• Активные бонусы дивергенций (Bull/Short)
• Статус тренда MTF (при включении)
• Текущий режим фильтра
КАК ИСПОЛЬЗОВАТЬ
Для торговли на разворотах
1 — Дождитесь пересечения скором бычьего порога (<-0.5) для потенциальных лонгов или медвежьего порога (>0.5) для шортов
2 — Подтвердите одновременным появлением маркеров дивергенций
3 — Ищите формирование облака, усиливающего сигнал
4 — Используйте MTF-фильтр для избегания контр-трендовых сделок
Для продолжения тренда
• Импульсные стрелки указывают на сильное продолжение моментума
• Используйте как подтверждение при торговле в направлении установленного тренда
• Выравнивание MTF даёт дополнительную уверенность
Для мультитаймфреймового анализа
• Включите MTF-фильтр и установите высший таймфрейм (например, 4H на графике 1H, Daily на 4H)
• Используйте режим "Reduce" для консервативного подхода
• Используйте режим "Block" для строгого выравнивания по тренду
РУКОВОДСТВО ПО ПАРАМЕТРАМ
Группа Score
• VPI Weight (0.5): Баланс между компонентами волатильности и тренда. Увеличьте для сигналов, ориентированных на волатильность.
• TDFI Weight (0.5): Баланс между компонентами волатильности и тренда. Увеличьте для сигналов, ориентированных на тренд.
• Divergence Bonus Max (0.3): Максимальный вклад дивергенций в скор. Выше = сильнее влияние дивергенций.
Группа Divergence
• Pivot Lookback (3): 2=агрессивно/быстро, 3=сбалансированно, 5=консервативно/медленно
Группа Multi TimeFrame
• Higher TF : Обычно в 4-16 раз больше текущего таймфрейма (например, 4H для графика 1H)
• MTF Weight (0.3): Влияние высшего таймфрейма в финальном скоре
• Trend Filter Level (0.5): Порог TDFI, определяющий "сильный тренд" на HTF
Группа Visual
• Cloud Mode : Threshold (традиционный) vs Gradient (непрерывное накопление)
• Cloud Transparency : Базовая прозрачность для слабых сигналов
Группы Advanced
Тонкая настройка компонентов индикатора для конкретных рынков или таймфреймов. Значения по умолчанию хорошо работают для большинства активов. Увеличение периодов сглаживает сигналы, но добавляет задержку; уменьшение периодов увеличивает чувствительность, но может вызвать шум.
АЛЕРТЫ
Доступны шесть условий для алертов:
• Bullish Zone: Скор пересекает бычий порог снизу вверх
• Bearish Zone: Скор пересекает медвежий порог сверху вниз
• Strong Bull Div: Обе VPI+TDFI показывают бычью дивергенцию (не отфильтровано)
• Strong Bear Div: Обе VPI+TDFI показывают медвежью дивергенцию (не отфильтровано)
• Down Impulse: Медвежий импульсный прорыв
• Up Impulse: Бычий импульсный прорыв
ПРИМЕЧАНИЯ
• Работает на всех таймфреймах и классах активов (крипто, форекс, акции, индексы)
• Лучшие результаты на ликвидных рынках с чёткими циклами тренд/разворот
• Комбинируйте с price action, уровнями поддержки/сопротивления и риск-менеджментом
• Дивергенции лучше всего работают в условиях флэта или ослабления тренда
• Не является самостоятельной торговой системой - используйте как инструмент подтверждения
ОГРАНИЧЕНИЯ
• Как все индикаторы, RSS3 может генерировать ложные сигналы в изменчивых/боковых рынках
• Обнаружение дивергенций требует достаточного объёма исторических данных (минимум 50-100 баров)
• MTF-фильтр может значительно снизить частоту сигналов в режиме "Block"
• Продвинутые параметры требуют понимания базовых расчётов
ДИСКЛЕЙМЕР
Данный индикатор предоставляется исключительно в информационных и образовательных целях и не является финансовой, инвестиционной или торговой рекомендацией. Любая торговля сопряжена с риском, и прошлые результаты не гарантируют будущей доходности. Пользователи несут полную ответственность за свои торговые решения и должны провести собственное исследование или проконсультироваться с квалифицированным финансовым консультантом перед принятием инвестиционных решений. Автор не несёт ответственности за любые убытки, понесённые в результате использования данного индикатора.
═════════════════════════════════════════════════════════════════════════
© Rulph - Reversal Score System v3
Stochastic RSI Forecast [QuantAlgo]🟢 Overview
The Stochastic RSI Forecast extends the classic momentum oscillator by projecting potential future K and D line values up to 10 bars ahead. Unlike traditional indicators that only reflect historical price action, this indicator uses three proprietary forecasting models, each operating on different market data inputs (price structure, volume metrics, or linear trend), to explore potential price paths. This unique approach allows traders to form probabilistic expectations about future momentum states and incorporate these projections into both discretionary and algorithmic trading and/or analysis.
🟢 How It Works
The indicator operates through a multi-stage calculation process that extends the RSI-to-Stochastic chain forward in time. First, it generates potential future price values using one of three selectable forecasting methods, each analyzing different market dimensions (structure, volume, or trend). These projected prices are then processed through an iterative RSI calculation that maintains continuity with historical gain/loss averages, producing forecasted RSI values. Finally, the system applies the full stochastic transformation (calculating the position of each forecasted RSI within its range, smoothing with K and D periods) to project potential future oscillator values.
The forecasting models adapt to market conditions by analyzing configurable lookback periods and recalculating projections on every bar update. The implementation preserves the mathematical properties of the underlying RSI calculation while extrapolating momentum trajectories, creating visual continuity between historical and forecasted values displayed as semi-transparent dashed lines extending beyond the current bar.
🟢 Key Features
1. Market Structure Model
This algorithm applies price action analysis by tracking break of structure (BOS) and change of character (CHoCH) patterns to identify potential order flow direction. The system detects swing highs and lows using configurable pivot lengths, then analyzes sequences of higher highs or lower lows to determine bullish or bearish structure bias. When price approaches recent swing points, the forecast projects moves in alignment with the established structure, scaled by ATR (Average True Range) for volatility adjustment.
Potential Benefits for Traders:
Explores potential momentum continuation scenarios during established trends
Identifies areas where structure changes might influence momentum
Could be useful for swing traders and position traders who incorporate structure-based analysis
The Structure Influence parameter (0-1 scale) allows blending between pure trend following and structure-weighted forecasts
Helps visualize potential trend exhaustion through weakening structure patterns
2. Volume-Weighted Model
This model analyzes volume patterns by combining On-Balance Volume (OBV), Accumulation/Distribution Line, and volume-weighted price returns to assess potential capital flow. The algorithm calculates directional volume momentum and identifies volume spikes above customizable thresholds to determine accumulation or distribution phases. When volume indicators align directionally, the forecast projects stronger potential moves; when volume diverges from price trends, it suggests possible reversals or consolidation.
Potential Benefits for Traders:
Incorporates volume analysis into momentum forecasting
Attempts to filter price action by volume support or lack thereof
Could be more relevant in markets where volume data is reliable (equities, crypto, major forex pairs)
Volume Influence parameter (0-1 scale) enables adaptation to different market liquidity profiles
Highlights volume climax patterns that sometimes precede trend changes
Could be valuable for traders who incorporate volume confirmation in their analysis
3. Linear Regression Model
This mathematical approach applies least-squares regression fitting to project price trends based on recent price data. Unlike the conditional logic of the other methods, linear regression provides straightforward trend extrapolation based on the best-fit line through the lookback period.
Potential Benefits for Traders:
Delivers consistent, reproducible forecasts based on statistical principles
Works better in trending markets with clear directional bias
Useful for systematic traders building quantitative strategies requiring stable inputs
Minimal parameter sensitivity (primarily controlled by lookback period)
Computationally efficient with fast recalculation on every bar
Serves as a baseline to compare against the more complex structure and volume methods
🟢 Universal Applications Across All Models
Each forecasting method projects potential future stochastic RSI values (K and D lines), which traders can use to:
▶ Anticipate potential crossovers: Visualize possible K/D crosses several bars ahead
▶ Explore overbought/oversold scenarios: Forecast when momentum might return from extreme zones
▶ Assess divergences: Evaluate how oscillator divergences might develop
▶ Inform entry timing: Consider potential points along the forecasted momentum curve for trade entry
▶ Develop systematic strategies: Build rules based on forecasted crossovers, slope changes, or threshold levels
▶ Adapt to market conditions: Switch between methods based on current market character (trending vs range-bound, high vs low volume)
In short, the indicator's flexibility allows traders to combine forecasting projections with traditional stochastic signals, using historical K/D for immediate reference while considering forecasted values for planning and analysis. As with all technical analysis tools, the forecasts represent one possible scenario among many and should be used as part of a broader trading methodology rather than as standalone signals.
ADX Trend Dashboard [ Hemanth ]
The ADX + DI Trend Dashboard is a indicator that helps traders instantly assess market trend direction and strength. It combines the power of ADX and DMI (Directional Movement Index) to give a clear visual representation of bullish, bearish, and sideways trends. The dashboard is fully customizable, lightweight, and easy to use.
Key Features:
Displays ADX, +DI, and -DI lines with dynamic coloring.
Green ADX: Bullish trend
Red ADX: Bearish trend
Mini dashboard shows:
Trend direction (Bullish, Bearish)
Trend strength (Weak, Strong)
Threshold lines at 20 & 25 for quick trend strength reference.
Works on any timeframe and instrument.
Clean and visually appealing design to reduce chart clutter.
Inputs:
ADX Length: Number of bars used to calculate ADX.
Higher values smooth the indicator but respond slower.
Lower values make it more sensitive but may produce more noise.
Strong Trend Threshold: ADX value considered strong. Default: 25
+DI Color / -DI Color: Customize trend line colors.
How to Use:
Trend Direction:
Green ADX + +DI > -DI → Bullish
Red ADX + -DI > +DI → Bearish
Trend Strength:
ADX < 20 → Weak
ADX 20–25 → Moderate
ADX > 25 → Strong
Use the dashboard panel to quickly identify trend and strength without manually analyzing the lines.
Recommended Timeframes:
Works on all timeframes.
Ideal for day trading, swing trading, and long-term analysis.
Note:
This indicator does not generate buy or sell signals by itself. It is designed to help traders analyze trend direction and strength visually and make informed trading decisions in combination with other tools or price action.
Squeeze Momentum OmniViewSqueeze Momentum OmniView+ is an enhanced and modernized version of the classic Squeeze Momentum Indicator by LazyBear, rebuilt from the ground up in Pine Script v6.
This upgraded edition introduces OmniView color-mapping, adaptive histogram scaling, extreme detection, heat-zone alerts, and dynamic fire/ice icons, all fully synchronized with your selected visualization mode.
Key Features
1. OmniView Color Engine (Exact Price-State Matching)
Reproduces the full OmniView color logic (aqua → yellow → red), tracking market compression, expansion, and directional strength using a seamless multi-gradient system.
2. Dual Histogram Modes
Choose how the histogram is normalized:
Price-State Mode: Colors reflect price position within its recent range.
Self-Normalized Mode: Colors adapt to the histogram’s own momentum curve.
Both modes automatically adjust alerts, extremes, and icons.
3. Enhanced Squeeze Logic
The script includes the classic squeeze states (ON / OFF / Neutral) with clean visual dots and improved logic for precise state transitions.
4. Adaptive Extreme Detection (Upper & Lower Extremes)
Detects when price or momentum sets new highs/lows according to the active mode.
Automatically draws 🔥 fire labels near upper extremes and ❄️ ice labels near lower extremes, with:
Adaptive or fixed offsets
Customizable sizes
Optional dimming on momentum fade
Icon colors matching the histogram
5. Full Alert Suite
Includes alerts for:
New Upper / Lower Extremes
Heat-Zone Crossings (25%, 50%, 75%)
Momentum Turning Up / Down
Zero-Line Crossovers
Squeeze ON / OFF
All alert conditions adapt dynamically to the mode selected.
6. Clean, modern, and fully customizable
Every visual element—colors, transparency, icon sizing, offsets, squeeze dots, fades—can be adjusted from the settings panel.
What This Indicator Helps You See
Momentum acceleration and deceleration
Market compression/expansion phases
Heat levels in the current price context
Momentum extremes that often signal turning points
Trend continuation or exhaustion patterns
High-precision squeeze entries with visual clarity
Designed For
Traders looking for a more intelligent version of Squeeze Momentum with:
Better visual clarity
Stronger adaptive behavior
More actionable alerts
More information per bar without clutter
A special thanks to LazyBear, the original author of the Squeeze Momentum engine.
This script is not affiliated with or endorsed by him, but it extends his outstanding contribution to the TradingView community.
MACD Momentum Pro MACD Momentum Pro is an enhanced version of the classic MACD designed to help traders identify momentum strength with far greater clarity.
In addition to the traditional MACD line, Signal line, and histogram, this tool introduces two new momentum-intensity alerts:
• Strong Green – bullish momentum accelerating above the zero line
• Strong Red – bearish momentum accelerating below the zero line
These conditions allow traders to quickly spot when market pressure is truly strengthening, reducing noise and improving decision-making in trending environments.
The indicator also includes real-time alerts for:
• MACD/Signal crosses (bullish & bearish)
• MACD zero-line crosses
• Shifts between rising/falling histogram states
All moving averages (EMA or SMA) are fully customizable, and the visual histogram automatically adapts color to reflect momentum transitions.
Whether you are trading breakouts, trend reversals, or momentum continuation setups, this upgraded MACD version provides a clearer, more actionable view of market strength—while keeping the original MACD logic intact.
AKP Momentum TableThe table give at one glance the RSI,ADX and Relative Strength values on the 15 min,125 min, Daily,Weekly and Monthly timeframes to help identify the stocks with strong momentum securities. The Table is movable at various parts of the screen from a drop down menu and the values of RSI,ADX and RS period can also be changes.Enjoy!
CEF (Chaos Theory Regime Oscillator)Chaos Theory Regime Oscillator
This script is open to the community.
What is it?
The CEF (Chaos Entropy Fusion) Oscillator is a next-generation "Regime Analysis" tool designed to replace traditional, static momentum indicators like RSI or MACD. Unlike standard oscillators that only look at price changes, CEF analyzes the "character" of the market using concepts from Chaos Theory and Information Theory.
It combines advanced mathematical engines (Hurst Exponent, Entropy, VHF) to determine whether a price movement is a real trend or just random noise. It uses a novel "Adaptive Normalization" technique to solve scaling problems common in advanced indicators, ensuring the oscillator remains sensitive yet stable across all assets (Crypto, Forex, Stocks).
What It Promises:
Intelligent Filtering: Filters out false signals in sideways (volatile) markets using the Hurst Base to measure trend continuity.
Dynamic Adaptation: Automatically adapts to volatility. Thanks to trend memory, it doesn't get stuck at the top during uptrends or at the bottom during downtrends.
No Repainting: All signals are confirmed at the close of the bar. They don't repaint or disappear.
What It Doesn't Promise:
Magic Wand: It's a powerful analytical tool, not a crystal ball. It determines the regime, but risk management is up to the investor.
Late-Free Holy Grail: It deliberately uses advanced correction algorithms (WMA/SMA) to provide stability and filter out noise. Speed is sacrificed for accuracy.
Which Concepts Are Used for Which Purpose?
CEF is built on proven mathematical concepts while creating a unique "Fusion" mechanism. These are not used in their standard forms, but are remixed to create a consensus engine:
Hurst Exponent: Used to measure the "memory" of the time series. Tells the oscillator whether there is a probability of the trend continuing or reversing to the mean.
Vertical Horizontal Filter (VHF): Determines whether the market is in a trend phase or a congestion phase.
Shannon Entropy: Measures the "irregularity" or "unpredictability" of market data to adjust signal sensitivity.
Adaptive Normalization (Key Innovation): Instead of fixed limits, the oscillator dynamically scales itself based on recent historical performance, solving the "flat line" problem seen in other advanced scripts.
Original Methodology and Community Contribution
This algorithm is a custom synthesis of public domain mathematical theories. The author's unique contribution lies in the "Adaptive Normalization Logic" and the custom weighting of Chaos components to filter momentum.
Why Public Domain? Standard indicators (RSI, MACD) were developed for the markets of the 1970s. Modern markets require modern mathematics. This script is presented to the community to demonstrate how Regime Analysis can improve trading decisions compared to static tools.
What Problems Does It Solve?
Problem 1: The "Stagnant Market" Trap
CEF Solution: While the RSI gives false signals in a sideways market, CEF's Hurst/VHF filter suppresses the signal, essentially making the histogram "off" (or weak) during noise.
Problem 2: The "Overbought" Fallacy
CEF Solution: In a strong trend (Pump/Dump), traditional oscillators get stuck at 100 or 0. CEF uses "Trend Memory" to understand that an overbought price is not a reversal signal but a sign of trend strength, and keeps the signal green/red instead of reversing it prematurely. Problem 3: Visual Confusion
CEF Solution: Instead of multiple lines, it presents a single, color-coded histogram featuring only prominent "Smart Circles" at high-probability reversal points.
Automation Ready: Custom Alerts
CEF is designed for both manual trading and automation.
Smart Buy/Sell Circles: Visual signals that only appear when trend filters are aligned with momentum reversals.
Deviation Labels: Automatically detects and labels structural divergences between price and entropy.
Disclaimer: This indicator is for educational purposes only. Past performance does not guarantee future results. Always practice appropriate risk management.
Smart Divergence Engine [ChartNation]SMART DIVERGENCE ENGINE — REPAINTING-PROOF RSI DIVERGENCE WITH EXHAUSTION CONFIRMATION
═══════════════════════════════════════════
Smart Divergence Engine solves three critical problems that plague free RSI divergence indicators:
PROBLEM 1: REPAINTING DIVERGENCES
Most divergence scripts detect divergence in real-time as bars form. This causes signals to appear, disappear, and reappear unpredictably—making them unusable for alerts or systematic trading.
OUR SOLUTION: Pivot-Locked Detection
Smart Divergence Engine evaluates RSI at the exact bar where price structure confirms (rsi ), not at the current bar. Once a divergence prints, it NEVER disappears. This is implemented via:
Full swing confirmation (Pivot Left + Pivot Right bars must complete)
RSI evaluation at historical bar: rsi , not rsi
Divergence triggers AFTER structure lock, not during formation
Technical implementation: The script stores RSI values at confirmed pivot bars using var floats (lowRsiPrev, lowRsiCurr, highRsiPrev, highRsiCurr), then compares these locked values when new pivots confirm. This prevents any possibility of historical repaint.
PROBLEM 2: FALSE POSITIVE OVERLOAD
Divergence scripts trigger on ANY price-RSI mismatch, flooding charts with weak signals during choppy conditions. No filtering means traders must manually screen out noise.
OUR SOLUTION: Shark Fin Exhaustion Filter
Before any divergence can be considered actionable, Smart Divergence Engine requires RSI to demonstrate genuine momentum exhaustion through our proprietary "Shark Fin" detection:
Shark Fin Logic (Not Found in Free Scripts):
RSI must pierce the outer volatility band by a configurable buffer (default 1.5 RSI points)
RSI must re-enter the band with directional confirmation (positive slope for bullish, negative slope for bearish)
Band width must exceed minimum standard deviation threshold (volatility qualification)
Cooldown period enforced (default 25 bars) to prevent signal clustering
This multi-condition filter dramatically reduces false divergences by requiring RSI to physically demonstrate exhaustion BEFORE structure confirmation matters.
Technical implementation: The Shark Fin state machine uses boolean flags (bullFinForming, bearFinForming) to track when RSI is stretched beyond bands, then validates re-entry using ta.crossover(rsi, lower) / ta.crossunder(rsi, upper) with slope checks (ta.change(rsi) > 0 / < 0) and volatility gates (dev >= finMinDev).
PROBLEM 3: NO VOLATILITY CONTEXT
Divergence scripts use fixed RSI levels (30/70 or similar) that fail to adapt to changing market conditions. What's "overbought" in a low-volatility regime differs drastically from high-volatility conditions.
OUR SOLUTION: Adaptive Volatility Bands
Smart Divergence Engine calculates dynamic overbought/oversold zones using:
34-period SMA of RSI as basis
1.618 standard deviation multiplier (golden ratio expansion)
Real-time band expansion/contraction based on RSI volatility
The bands provide three advantages:
Shark Fin events only qualify when RSI breaches ADAPTIVE thresholds, not arbitrary fixed levels
Band width (standard deviation) serves as volatility filter—narrow bands = low conviction moves get rejected
50-line midline provides regime context (above 50 = bullish bias, below 50 = bearish bias)
Technical implementation: basis = ta.sma(rsi, 34), dev = ta.stdev(rsi, 34), upper/lower = basis ± dev * 1.618. Shark Fin logic requires rsi < (lower - finBuffer) or rsi > (upper + finBuffer) to trigger, ensuring exhaustion is measured relative to CURRENT volatility, not historical constants.
═══════════════════════════════════════════
METHODOLOGY COMPARISON VS FREE ALTERNATIVES
═══════════════════════════════════════════
STANDARD DIVERGENCE SCRIPTS:
Detection timing: Real-time (current bar)
Historical stability: Repaints continuously
Signal filtering: None or minimal
Volatility adaptation: Fixed levels (30/70)
Exhaustion confirmation: Not implemented
Confirmation layers: 1 (divergence only)
Alert reliability: Unreliable (signals disappear)
SMART DIVERGENCE ENGINE:
Detection timing: Pivot-confirmed (rsi )
Historical stability: Locked at structure bar
Signal filtering: Shark Fin + cooldown + stdev gate
Volatility adaptation: Dynamic bands (34-SMA + 1.618σ)
Exhaustion confirmation: Required via Shark Fin
Confirmation layers: 3 (structure + exhaustion + volatility)
Alert reliability: Stable (never repaints)
═══════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════
RSI ENGINE:
Base calculation: ta.rsi(src, 14)
Smoothing: ta.rma(rsiRaw, 2) — reduces whipsaw noise
Source: Configurable (default close)
VOLATILITY BANDS:
Basis: 34-period SMA of RSI
Multiplier: 1.618 (golden ratio)
Upper band: basis + (stdev * 1.618)
Lower band: basis - (stdev * 1.618)
Purpose: Creates adaptive overbought/oversold zones
DIVERGENCE DETECTION:
Pivot confirmation: 10 left bars + 10 right bars (default)
RSI evaluation: Locked at rsi (historical bar, never current)
Bullish divergence: price lower low + RSI higher low
Bearish divergence: price higher high + RSI lower high
Rendering: Lines drawn between last two confirmed pivots with labels
SHARK FIN EXHAUSTION FILTER:
Depth buffer: 1.5 RSI points (penetration threshold beyond band)
Min band stdev: 1.0 (volatility qualification)
Cooldown: 25 bars minimum between Shark Fin confirmations
Slope validation: Requires ta.change(rsi) > 0 (bullish) or < 0 (bearish)
State tracking: Boolean flags prevent premature confirmations
VISUAL CUSTOMIZATION:
Beauty Mode: Six-layer gradient fill anchored at 50-line
• Purple regime (above 50) with configurable opacity
• Green regime (below 50) with configurable opacity
• Gradient layers: 33%, 66%, 100% intensity
Divergence lines: Glow effect (6px) + core line (3px), both configurable
Shark Fin rendering: 20% fill between RSI and violated band (ephemeral)
Labels: Compact "Bull"/"Bear" markers with dot indicators
═══════════════════════════════════════════
ALERT SYSTEM
═══════════════════════════════════════════
Four distinct alert conditions (configure once, fires on all intervals):
"RSI Shark Fin — Bullish"
Triggers when: RSI re-enters lower band from below with slope + stdev + cooldown confirmation
Use case: Momentum exhaustion at oversold extreme
Reliability: No repaint (confirmation locked at re-entry bar)
"RSI Shark Fin — Bearish"
Triggers when: RSI re-enters upper band from above with slope + stdev + cooldown confirmation
Use case: Momentum exhaustion at overbought extreme
Reliability: No repaint (confirmation locked at re-entry bar)
"Bullish Divergence (Panel)"
Triggers when: Pivot-confirmed bullish divergence completes (price LL + RSI HL)
Timing: Fires AFTER Pivot Right bars complete (delayed but stable)
Reliability: Never repaints (divergence locked at rsi )
"Bearish Divergence (Panel)"
Triggers when: Pivot-confirmed bearish divergence completes (price HH + RSI LH)
Timing: Fires AFTER Pivot Right bars complete (delayed but stable)
Reliability: Never repaints (divergence locked at rsi )
═══════════════════════════════════════════
TRADING IMPLEMENTATION
═══════════════════════════════════════════
CONFLUENCE FRAMEWORK:
Highest-probability setups occur when three conditions align:
Bullish Setup:
Shark Fin confirms below lower band (exhaustion)
Bullish divergence prints at pivot (structure)
RSI reclaims 50 line (regime shift to bullish)
→ Entry consideration at next price structure (support, swing low)
Bearish Setup:
Shark Fin confirms above upper band (exhaustion)
Bearish divergence prints at pivot (structure)
RSI loses 50 line (regime shift to bearish)
→ Entry consideration at next price structure (resistance, swing high)
TREND CONTEXT:
Strong uptrends: Prioritize bullish divergence + lower band Shark Fins (buy dips)
Strong downtrends: Prioritize bearish divergence + upper band Shark Fins (sell rallies)
Range-bound markets: Use 50-line crossovers as additional confirmation filter
RISK MANAGEMENT:
Smart Divergence Engine provides CONTEXT, not entries:
Wait for price confirmation (engulfing candle, rejection wick, structure break)
Place stops below/above pivot structure that triggered divergence
Size positions based on distance to invalidation level
Divergence + Shark Fin = elevated probability, not certainty
═══════════════════════════════════════════
CONFIGURATION PARAMETERS
═══════════════════════════════════════════
RSI SETTINGS:
RSI Length: 14 (default, standard momentum window)
Price Source: close (configurable to any price source)
Note: 2-period RMA smoothing is hardcoded (reduces noise)
VOLATILITY BAND SETTINGS:
Band Length: 34 (SMA period for RSI basis)
Band Multiplier: 1.618 (golden ratio, adjustable)
Show Bands: Toggle visibility (true/false)
DIVERGENCE SETTINGS:
Pivot Left: 10 bars (left-side swing confirmation)
Pivot Right: 10 bars (right-side swing confirmation)
Overbought Level: 68 (reference line, does not affect logic)
Oversold Level: 32 (reference line, does not affect logic)
SHARK FIN SETTINGS:
Fin Depth Buffer: 1.5 RSI points (penetration threshold)
Min Band Stdev: 1.0 (volatility qualification gate)
Min Bars Between Fins: 25 (cooldown period)
VISUAL SETTINGS (Beauty Mode):
Enable Beauty Mode: true/false (gradient rendering)
Divergence Glow: true/false (glow effect on lines)
Glow Width: 3-10 px (glow layer thickness)
Main Line Width: 1-6 px (divergence core line)
Top Color: Purple (configurable, above-50 regime)
Bottom Color: Green (configurable, below-50 regime)
Top Opacity: 0-100% (gradient base transparency)
Bottom Opacity: 0-100% (gradient base transparency)
═══════════════════════════════════════════
PERFORMANCE & LIMITATIONS
═══════════════════════════════════════════
RESOURCE ALLOCATION:
max_lines_count: 500 (divergence + Shark Fin lines)
max_labels_count: 500 (divergence markers)
max_bars_back: 500 (historical pivot lookback)
Suitable for most timeframes; reduce limits if performance degrades on low-end devices
SIGNAL TIMING:
Divergences print AFTER Pivot Right bars complete. This is intentional:
Delayed signals are more reliable than real-time signals
Structure confirmation requires waiting for swing completion
Users demanding instant signals should use free real-time divergence indicators
Users demanding reliable signals that never disappear should use this
PANEL VS OVERLAY:
This is the panel version (overlay=false):
Renders in separate pane below price chart
RSI, bands, divergence lines, and Shark Fin fills appear in this pane
For price-chart annotations, use the companion overlay version (same logic, different rendering)
═══════════════════════════════════════════
This script implements proprietary methodology not available in regular community scripts:
REPAINTING-PROOF ARCHITECTURE
The pivot-locked detection system (rsi evaluation) is a non-trivial implementation that requires:
State management across bars using var variables
Historical RSI value storage at pivot confirmation
Divergence comparison between stored values (not current bar)
This architecture eliminates the #1 complaint with free divergence indicators: disappearing signals.
SHARK FIN EXHAUSTION LOGIC
The multi-condition state machine that validates momentum exhaustion is not found in free scripts:
Penetration threshold (buffer beyond band)
Directional slope confirmation on re-entry
Volatility gate (minimum standard deviation)
Cooldown enforcement (prevents clustering)
This filter layer was developed through extensive backtesting to reduce false divergences during choppy conditions.
ADAPTIVE VOLATILITY FRAMEWORK
The dynamic band system (34-SMA + 1.618σ) provides context-aware overbought/oversold detection:
Bands expand in volatile markets → signals adapt to conditions
Bands contract in ranging markets → tighter detection thresholds
50-line regime framework → directional bias context
This approach outperforms fixed-level systems (30/70) that ignore market context.
CONFLUENCE METHODOLOGY
The three-layer confirmation system (structure + exhaustion + volatility) was engineered to answer: "When is a divergence actually tradeable?" Free scripts detect divergence and stop there. Smart Divergence Engine asks: "Did RSI show exhaustion? Is volatility sufficient? Did structure confirm?"
This level of methodological depth—combined with repainting-proof architecture and professional-grade visual implementation—justifies closed-source protection and paid access.
═══════════════════════════════════════════
Smart Divergence Engine is engineered for traders who demand institutional-grade divergence detection without the noise, repainting, and false positives that plague free alternatives.
Access is restricted to maintain signal quality as methodology evolves.
Smart Divergence Engine Overlay [ChartNation]SMART DIVERGENCE ENGINE OVERLAY — CANDLE-ANCHORED RSI DIVERGENCE VISUALIZATION
═══════════════════════════════════════════
TECHNICAL OVERVIEW
═══════════════════════════════════════════
Smart Divergence Engine Overlay renders pivot-confirmed RSI divergences directly on the price chart with candle-anchored lines and labels. This companion overlay shares the identical detection logic as the panel version but visualizes signals at their exact price levels rather than in oscillator space.
The overlay implements repainting-proof divergence detection through pivot-locked RSI evaluation at historical bars (rsi ), ensuring all lines and labels remain stable as new bars form. Visual elements anchor to xloc.bar_index coordinates, maintaining precise positioning across zoom levels and timeframe changes.
═══════════════════════════════════════════
CORE ARCHITECTURE
═══════════════════════════════════════════
PIVOT-LOCKED DETECTION SYSTEM
The overlay evaluates RSI at confirmed pivot bars, not at the current bar:
Technical implementation:
Price pivots detected via ta.pivotlow() / ta.pivothigh() with configurable Left/Right parameters
RSI value captured at the pivot bar: rsi (historical bar offset)
Divergence comparison performed between stored pivot values (lowRsiPrev vs lowRsiCurr)
State management via var floats prevents recalculation across bars
Result: Once a divergence line prints, it never moves or disappears. Historical stability is guaranteed because RSI evaluation occurs at a locked bar index (bar_index - pivotR), not at the moving present.
Bullish divergence logic:
if not na(lowPricePrev) and lowPriceCurr < lowPricePrev and lowRsiCurr > lowRsiPrev
→ Price made lower low, RSI made higher low
→ Divergence confirmed at lowIdxCurr (pivot bar index)
Bearish divergence logic:
if not na(highPricePrev) and highPriceCurr > highPricePrev and highRsiCurr < highRsiPrev
→ Price made higher high, RSI made lower high
→ Divergence confirmed at highIdxCurr (pivot bar index)
RSI ENGINE
The overlay uses the same RSI calculation as the panel version to ensure signal synchronization:
Base calculation: ta.rsi(src, 14) — standard RSI momentum window
Smoothing layer: ta.rma(rsiRaw, 2) — reduces high-frequency noise
Volatility bands: 34-period SMA basis with 1.618 standard deviation multiplier
Purpose: Bands define adaptive overbought/oversold context (not plotted on overlay)
The volatility framework exists in the calculation layer to maintain logic parity with the panel version, ensuring divergences trigger at identical bars across both implementations.
CANDLE-ANCHORED RENDERING
All visual elements use xloc.bar_index positioning:
Line rendering:
line.new(x1=lowIdxPrev, y1=lowPricePrev, x2=lowIdxCurr, y2=lowPriceCurr,
xloc=xloc.bar_index, color=bullCol, width=lineW)
This anchors lines to specific bar indices and price levels, not to time coordinates. Result: Lines maintain exact positioning when zooming, panning, or switching timeframes.
Label rendering:
label.new(x=lowIdxCurr, y=lowPriceCurr, text="BUY",
xloc=xloc.bar_index, style=label.style_label_up)
Labels attach to the second pivot's bar index and price level, scaling naturally with chart transformations.
═══════════════════════════════════════════
VISUAL IMPLEMENTATION
═══════════════════════════════════════════
DIVERGENCE LINES
Bullish divergence: Connects two price swing lows with upward-sloping line
Color: Configurable (default lime green)
Width: 1-6 pixels (configurable)
Endpoint 1: Previous swing low (lowPricePrev at lowIdxPrev)
Endpoint 2: Current swing low (lowPriceCurr at lowIdxCurr)
Requirement: Current price lower than previous, current RSI higher than previous
Bearish divergence: Connects two price swing highs with downward-sloping line
Color: Configurable (default red)
Width: 1-6 pixels (configurable)
Endpoint 1: Previous swing high (highPricePrev at highIdxPrev)
Endpoint 2: Current swing high (highPriceCurr at highIdxCurr)
Requirement: Current price higher than previous, current RSI lower than previous
Lines extend between pivot bars only (extend.none), never projecting into future.
DIVERGENCE LABELS
Optional BUY/SELL markers render at the second pivot:
BUY label (bullish divergence):
Position: Below current swing low (label.style_label_up)
Text: "BUY"
Color: Matches bullish line color
Size: Normal (size.normal)
SELL label (bearish divergence):
Position: Above current swing high (label.style_label_down)
Text: "SELL"
Color: Matches bearish line color
Size: Normal (size.normal)
Labels can be toggled independently of lines via showLabels input.
═══════════════════════════════════════════
CONFIGURATION PARAMETERS
═══════════════════════════════════════════
RSI CALCULATION SETTINGS:
Price Source: close (configurable to any price field)
RSI Length: 14 (standard momentum window)
Volatility Band Length: 34 (SMA period for RSI basis)
Band Multiplier: 1.618 (standard deviation expansion)
Note: Bands calculate internally but don't plot (logic parity with panel)
DIVERGENCE DETECTION SETTINGS:
Pivot Left: 10 bars (left-side swing confirmation)
Pivot Right: 10 bars (right-side swing confirmation)
Overbought Level: 68 (reference, does not affect logic)
Oversold Level: 32 (reference, does not affect logic)
Pivot parameters control strictness:
Higher values = fewer, more significant divergences (requires wider swings)
Lower values = more frequent divergences (detects smaller swings)
VISUAL SETTINGS:
Show Divergence Lines: true/false toggle
Show BUY/SELL Labels: true/false toggle (independent of lines)
Line Width: 1-6 pixels
Bull Color: Configurable (default lime green)
Bear Color: Configurable (default red)
═══════════════════════════════════════════
ALERT SYSTEM
═══════════════════════════════════════════
Two alert conditions trigger at identical timing as visual signals:
"Bullish Divergence (Overlay)"
Triggers when: Bullish divergence confirms at second pivot
Timing: Fires AFTER Pivot Right bars complete (delayed but stable)
Message: "TDI: Bullish divergence"
Reliability: Never repaints (confirmation locked at rsi )
"Bearish Divergence (Overlay)"
Triggers when: Bearish divergence confirms at second pivot
Timing: Fires AFTER Pivot Right bars complete (delayed but stable)
Message: "TDI: Bearish divergence"
Reliability: Never repaints (confirmation locked at rsi )
Alert configuration:
Set once on any chart/timeframe
Fires only when divergence condition evaluates true
Synchronized with visual rendering (alert = line + label appear)
═══════════════════════════════════════════
TRADING IMPLEMENTATION
═══════════════════════════════════════════
VISUAL ANALYSIS WORKFLOW
The overlay provides direct price-level context for divergence signals:
Bullish divergence interpretation:
Identify two connected swing lows with upward-sloping line
Lower price low indicates selling pressure weakening
Higher RSI low indicates momentum refusing to confirm price weakness
BUY label marks the second swing low (divergence confirmation point)
Bearish divergence interpretation:
Identify two connected swing highs with downward-sloping line
Higher price high indicates buying pressure weakening
Lower RSI high indicates momentum refusing to confirm price strength
SELL label marks the second swing high (divergence confirmation point)
CONFLUENCE WITH PRICE STRUCTURE
Overlay enables direct correlation with chart elements:
Support/Resistance alignment:
Bullish divergence at major support level = higher probability reversal
Bearish divergence at major resistance level = higher probability reversal
Divergence in middle of range = lower conviction signal
Volume confirmation:
Divergence with decreasing volume = confirms momentum exhaustion
Divergence with increasing volume = mixed signal, proceed with caution
Multi-timeframe context:
Higher timeframe trend alignment increases signal reliability
Counter-trend divergences (against HTF trend) require additional confirmation
ENTRY/EXIT FRAMEWORK
The overlay marks divergence confirmation points, not entry triggers:
Entry consideration process:
Divergence line appears → structure-confirmed momentum divergence detected
Wait for price confirmation (engulfing candle, break of structure, rejection wick)
Validate with additional confluence (volume, support/resistance, HTF trend)
Enter with predefined stop below/above divergence pivot
Size position according to distance to invalidation level
Exit planning:
Initial target: Previous swing high (bullish) / swing low (bearish)
Trail stop: Move to breakeven after initial profit target
Invalidation: Close below divergence low (bullish) / above divergence high (bearish)
═══════════════════════════════════════════
PANEL VS OVERLAY USAGE
═══════════════════════════════════════════
IDENTICAL DETECTION LOGIC
Both versions implement the same pivot-locked RSI evaluation:
Same RSI calculation (14-length with 2-period RMA smoothing)
Same volatility band framework (34-SMA + 1.618σ)
Same pivot confirmation (10 Left + 10 Right)
Same divergence comparison (rsi at locked bar indices)
Result: Divergences trigger at identical bars across both implementations.
RENDERING DIFFERENCES
Panel version (overlay=false):
Renders in separate pane below price chart
Displays RSI line, volatility bands, 50-line midline
Divergence lines drawn in oscillator space (RSI value coordinates)
Optional Shark Fin exhaustion visualization
Labels positioned relative to RSI levels
Overlay version (overlay=true):
Renders directly on price chart
No RSI line or bands visible (calculate internally for logic only)
Divergence lines drawn in price space (actual price coordinates)
No Shark Fin visualization (price chart remains clean)
Labels positioned at actual swing high/low prices
COMPLEMENTARY WORKFLOW
Recommended usage pattern:
Panel version: Monitor RSI regime (above/below 50), band interactions, Shark Fin exhaustion
Overlay version: Identify exact divergence price levels, correlate with support/resistance
Combined analysis: Use panel for momentum context, overlay for entry/exit precision
Alternative workflow (overlay only):
If RSI analysis not required, overlay version provides clean divergence detection
Pair with external RSI indicator if separate momentum visualization needed
Focuses chart space on price action and divergence markers only
═══════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════
RESOURCE ALLOCATION:
max_lines_count: 500 (divergence connector lines)
max_labels_count: 500 (BUY/SELL markers)
Suitable for most chart configurations and timeframes
RENDERING STABILITY:
xloc.bar_index positioning ensures visual stability across zoom/pan operations
Historical divergences never move once printed
Lines and labels scale proportionally with chart transformations
TIMEFRAME COMPATIBILITY:
Functions on any timeframe (1m to 1M)
Pivot detection adapts to bar spacing automatically
Lower timeframes generate more frequent signals (smaller swings)
Higher timeframes generate fewer signals (larger swings)
SYMBOL COMPATIBILITY:
Works on all asset classes (stocks, forex, crypto, futures, indices)
No symbol-specific logic or calculations
Universal RSI-based divergence detection
PERFORMANCE CHARACTERISTICS:
Lightweight calculation overhead (RSI + pivot detection + state management)
Visual rendering occurs only on divergence confirmation (not every bar)
No continuous repainting or historical recalculation
═══════════════════════════════════════════
USE CASE SCENARIOS
═══════════════════════════════════════════
SCENARIO 1: Support/Resistance Divergence
Setup: Price tests major support level twice, second test makes lower low
Signal: Bullish divergence line appears, RSI makes higher low at support
Interpretation: Momentum refusing to confirm price weakness at critical level
Action: Consider long entry on next bullish candle above divergence low
SCENARIO 2: Trend Exhaustion
Setup: Strong uptrend, price makes new high but momentum slowing
Signal: Bearish divergence line appears, RSI makes lower high
Interpretation: Buying pressure weakening despite higher price high
Action: Consider profit-taking on longs, watch for reversal confirmation
SCENARIO 3: Range-Bound Reversal
Setup: Price oscillating in horizontal range, tests lower boundary
Signal: Bullish divergence at range support
Interpretation: Oversold bounce opportunity within defined range
Action: Long entry targeting range midpoint or upper boundary
SCENARIO 4: Failed Breakout
Setup: Price breaks resistance but momentum doesn't confirm
Signal: Bearish divergence forms immediately after breakout
Interpretation: Breakout lacks momentum conviction, likely false breakout
Action: Consider fade setup (short) with stop above divergence high
═══════════════════════════════════════════
LIMITATIONS & CONSIDERATIONS
═══════════════════════════════════════════
SIGNAL TIMING:
Divergences print AFTER Pivot Right bars complete. This delay is intentional:
Ensures structure confirmation (full swing formation)
Prevents real-time repaint issues
Trades confirmation reliability for signal speed
Users requiring instant signals should use real-time divergence detectors (with repaint risk).
Users requiring reliable, stable signals should accept the confirmation delay.
LINE CLUTTER:
On lower timeframes with sensitive pivot settings:
High signal frequency may create visual clutter
Solution: Increase Pivot Left/Right values to filter smaller swings
Alternative: Use panel version for primary analysis, overlay for key divergences only
FALSE SIGNALS:
Divergences indicate momentum divergence, not guaranteed reversals:
Strong trends can maintain divergent conditions for extended periods
Divergence in isolation is a warning sign, not a trade trigger
Requires confluence with price action, volume, structure for high-probability setups
VOLATILITY BAND CONTEXT:
Bands calculate internally but don't visualize on overlay:
Users lose visual context of RSI overbought/oversold zones
Solution: Use panel version alongside overlay for complete RSI regime awareness
Alternative: Add separate RSI indicator to chart for band visualization
═══════════════════════════════════════════
Smart Divergence Engine Overlay provides candle-anchored, repainting-proof RSI divergence visualization directly on price charts. Lines and labels render at exact pivot price levels using xloc.bar_index positioning, maintaining stability across all chart transformations. Divergence detection uses pivot-locked RSI evaluation (rsi ) to ensure historical signals never move or disappear.
The overlay shares identical detection logic with the panel version but renders in price space rather than oscillator space, enabling direct correlation with support/resistance levels and price structure. All visual elements trigger only after full pivot confirmation (Pivot Left + Pivot Right bars), trading signal speed for absolute reliability.






















