Relative Performance Indicator - TrendSpider StyleRelative Performance Indicator - TrendSpider Style
📈 Overview
This Relative Performance (RP) indicator measures how your stock is performing compared to a benchmark index, displayed as a percentile ranking from 0-100. Based on TrendSpider's methodology, it answers the critical question: "Is this stock a leader or a laggard?"
Unlike simple ratio charts, this indicator uses percentile ranking to normalize relative performance, making it easy to identify when a stock is showing exceptional strength (>80) or concerning weakness (<20) compared to its historical relationship with the benchmark.
✨ Key Features
Three Calculation Modes:
Quarterly: 3-month relative performance for swing trading
Yearly: Weighted 4-quarter performance for position trading
TechRank: Composite of 6 technical indicators for multi-factor analysis
Clean Visual Design:
Green fills above 80 (strong outperformance)
Red fills below 20 (significant underperformance)
Dotted median line at 50 for quick reference
Current value label for instant reading
Flexible Benchmarks:
Compare against major indices (SPY, QQQ, IWM)
Sector ETFs for within-sector analysis
Custom symbols for specialized comparisons
Built-in Alerts:
Strong performance zone entry (>80)
Weak performance zone entry (<20)
Median crossovers (50 level)
📊 How To Use
Buy Signals:
RP crosses above 80: Stock entering leadership status
RP holding above 60: Maintaining relative strength
RP rising while price consolidating: Accumulation phase
Sell/Avoid Signals:
RP drops below 50: Losing relative strength
RP below 20: Significant underperformance
RP falling while price rising: Bearish divergence
Sector Rotation:
Compare multiple assets to find strongest sectors
Rotate into high RP assets (>70)
Exit low RP positions (<30)
🎯 Reading The Values
80-100: Exceptional outperformance - Strong buy/hold
60-80: Moderate outperformance - Hold positions
40-60: Market perform - No edge
20-40: Underperformance - Caution/reduce
0-20: Severe underperformance - Avoid/exit
⚙️ Calculation Method
Calculates percentage performance of both your stock and the benchmark
Finds the performance differential
Ranks this differential against historical values using percentile analysis
Normalizes to 0-100 scale for easy interpretation
This percentile approach adapts to different market conditions and volatility regimes, providing consistent signals whether in trending or choppy markets.
💡 Pro Tips
For Growth Stocks: Use quarterly mode with QQQ as benchmark
For Value Stocks: Use yearly mode with SPY as benchmark
For Small Caps: Compare against IWM, not SPY
For Sector Analysis: Use sector ETFs (XLK, XLF, XLE, etc.)
Combine with Price Action: High RP + price breakout = powerful signal
⚠️ Important Notes
RP is relative, not absolute - stocks can fall with high RP if the market falls harder
Choose appropriate benchmarks for meaningful comparisons
Best used in conjunction with price action and volume analysis
Historical lookback period affects sensitivity (adjustable in settings)
🔧 Customization
Fully customizable visual settings, thresholds, calculation periods, and smoothing options. Adjust the normalization lookback period (default 252 days) to fine-tune sensitivity to your trading timeframe.
📌 Credit
Inspired by TrendSpider's Relative Performance implementation, adapted for TradingView with enhanced customization options and Pine Script v6 optimization.
Tags to include: relativeperformance, relativestrength, percentile, ranking, sectorrotation, benchmark, outperformance, trendspider, marketbreadth, strengthindicator
Category: Momentum Indicators / Trend Analysis
Feel free to modify this description to match your style or add any specific points you want to emphasize!
Analisis Trend
ActivTrades Europe Market Pulse – Ion JaureguiActivTrades Europe Market Pulse Indicator – Detailed Description
The ActivTrades Europe Market Pulse Indicator is a market analysis tool designed to assess overall risk sentiment in European financial markets. Unlike trading signals, it provides a clear view of market conditions, helping traders and analysts understand whether the market environment favors risk-taking or caution.
How it Works:
The indicator combines three key metrics to gauge European market sentiment:
1. Equity Index and Sector Performance:
o Compares the relative position of major European equity indices and sector ETFs to their 50-day moving averages.
o A performance above the moving average signals market strength, while below indicates relative weakness, reflecting investors’ appetite for risk.
2. German 10-Year Government Bond Yield:
o Monitors the level of the German 10-year bond yield relative to its 10-day moving average.
o Yields above the moving average indicate greater confidence and risk tolerance, while yields below suggest caution or risk aversion.
3. Point-Based Scoring System:
o Each instrument is assigned points depending on whether it is above or below its moving average.
o Points are combined to generate an overall Risk-On/Risk-Off score, which oscillates between -5 (Extreme Risk-Off) and +5 (Extreme Risk-On), providing a quantitative measure of European market sentiment.
Visual Output:
• The results are displayed as a colored histogram, allowing quick interpretation of market conditions.
• Labeled zones include:
o Extreme Risk-On: Indicates bullish conditions with high risk appetite.
o Extreme Risk-Off: Reflects heightened market caution or fear.
o Neutral Zone: Suggests mixed or balanced sentiment.
Purpose and Use:
• Provides investors, analysts, and traders with insight into the prevailing European market mood.
• Supports informed decision-making and risk management strategies without offering explicit buy or sell signals.
________________________________________
Disclaimer:
The information provided does not constitute investment research. It has not been prepared in accordance with legal requirements designed to promote the independence of investment research and should be considered marketing communication.
All information is prepared by ActivTrades ("AT") and does not contain a record of AT’s prices or constitute an offer or solicitation for a transaction in any financial instrument. No representation is made regarding its accuracy or completeness.
This material does not consider the specific investment objectives or financial situation of any individual. Past performance and forecasts are not reliable indicators of future results. AT provides execution-only services. Any action taken based on this information is at the recipient’s own risk. Political and central bank risks are unpredictable. Platform tools do not guarantee success.
Indicators Risk Advice: The indicator and publications do not constitute financial, investment, trading, or other advice. They are designed to provide trend guidance and filter market noise for international users and are not intended for use by users in Spain.
BOS & ChoCh Market StructureBOS/ChoCh Market Structure Indicator
 
This indicator identifies key market structure shifts using Break of Structure (BOS) and Change of Character (ChoCh) signals based on pivot point analysis.
 Concept 
 Break of Structure (BOS)  occurs when price breaks through a significant pivot level in the direction of the current trend, signaling trend continuation. A bullish BOS happens when price breaks above a pivot high while in an uptrend, while a bearish BOS occurs when price breaks below a pivot low during a downtrend.
 Change of Character (ChoCh)  signals a potential trend reversal. It occurs when price breaks against the prevailing trend - breaking above a pivot high while in a downtrend, or breaking below a pivot low while in an uptrend. This indicates the market structure is shifting.
 How It Works 
The indicator automatically detects swing highs and lows using configurable pivot strength. When price breaks these levels, it plots:
 
 Color-coded labels (cyan for bullish breaks, red for bearish breaks)
 Small horizontal lines marking the exact breakout level
 Extended lines from pivot points showing key support/resistance levels
 
 Settings 
 Pivot Strength  - Number of candles on each side required to confirm a swing high/low (default: 5). Higher values identify more significant pivots but produce fewer signals.
 Breakout Confirmation  - Choose whether breakouts require a candle close beyond the level ("Close") or just a wick touch ("Wick").
 Show BOS / Show ChoCh  - Toggle visibility of Break of Structure and Change of Character signals independently.
 Colors  - Customize the colors for bullish (cyan) and bearish (red) signals.
Perfect for swing traders and market structure analysis.
Sector RSI (Auto-Select)This indicator measures the relative strength momentum of any stock against its most closely correlated sector ETF, using the Relative Strength Index (RSI).
Auto sector selection: The script computes correlations between your symbol’s short-term returns and all major SPDR sector ETFs (XLB, XLE, XLF, XLI, XLK, XLP, XLU, XLV, XLY, XTN). The sector with the highest correlation is automatically chosen as the benchmark.
Sector vs Symbol RSI: It calculates RSI (default 14-period) for both the chosen sector and the current chart’s symbol.
Display modes:
Line mode: Plots both RSIs with colored fill (red if the sector RSI is stronger, green if the symbol RSI is stronger).
Histogram mode: Shows the difference between Sector RSI and Symbol RSI as a column chart.
RSI bands: Standard 70/50/30 reference lines are available in line mode.
Status line: The selected sector’s ticker is shown on the TradingView status line so you always know which sector is being used.
Use Cases:
Identify whether a stock’s momentum is driven by its sector or if it’s showing independent relative strength.
Detect sector rotations: when the stock begins to outperform or underperform its sector on momentum basis.
Combine with absolute RSI levels (overbought/oversold) to filter signals.
Notes:
This tool infers sector membership via rolling correlation, not from static classification metadata. This means in some cases (e.g. diversified companies or news shocks) the “best” sector may not be the official one, but the one most correlated in the current market regime.
Use min positive correlation input to filter out weak matches and enforce a fallback (defaults to Technology XLK).
CNagda-MomentumX - Institutional FlowMomentumX is designed to empower traders with a deeper understanding of market movements by focusing on Institutional Flow and advanced market structure analytics. The core goal is to identify and visualize where major market participants are operating, and to translate these complex footprints into clear, actionable trading signals — all in real time.
  
 
 Real-time institutional activity mapping
 Actionable entry and exit signals based on live market structure
 Intuitive dashboard and dynamic chart visuals
 Fully customizable modules for trend, liquidity, and order blocks
 
 Core Logic Design 
At the heart of MomentumX lies a robust algorithmic engine built to capture and surface institutional trading behavior. By leveraging advanced mathematical models, the indicator calculates institutional volume ratios and price momentum to pinpoint aggressive moves from large participants.
 
 Institutional Volume & Price Momentum:
 
Utilizes custom volume indicators and price change analysis to detect strong buying or selling pressure, filtering out retail noise.
 
 Liquidity Grab Detection & Activity Zones:
 
The script identifies liquidity grabs by monitoring abrupt price sweeps at major support/resistance levels—often where institutions trigger stop hunts or reversals. All critical activity zones are automatically color-coded on the chart for instant recognition.
 
 Dashboard Visualization:
 
A fully dynamic dashboard table overlays live scores for accumulation, distribution, strength, and weakness—giving traders a real-time scan of market health.
 
 Trendline & Order Block Architecture:
 
The logic auto-detects pivot highs/lows to draw smart trendlines, while the order block system highlights key reversal areas and breaker zones—making market structure clear and actionable.
  
MomentumX is packed with high-performance modules, each engineered to simplify complex market behavior and enhance decision-making for traders:
Institutional Flow Signals:
Instantly identifies spots where institutional players drive momentum, using unique volume and price activity analytics.
Bullish/Bearish Liquidity Grab Detection:
Marks abrupt price moves that signal stop hunts or reversals, letting traders anticipate snap-backs or trend shifts.
Trendline Auto-Detection:
Smartly draws trendlines based on significant swing highs and lows, automatically adjusting as price evolves.
Order Block System (Rejection/Breaker):
Spots and highlights key reversal zones with order block rectangles, confirming rejections or breakouts at strategic levels.
Dashboard and Bar Coloring:
A clean dashboard overlay presents live market scores, while dynamic bar coloring makes trend, strength, and high-activity periods instantly visible.
User Input Toggles for Each Module:
Every major feature is fully customizable—enable or disable modules to match individual trading setups or preferences.
Scripting/Development
MomentumX’s scripting process is modular, enabling clarity, scalability, and fast optimization throughout development:
Initialization & Inputs:
Start by defining all user input options, module toggles, color settings, and calculation parameters—ensuring maximum flexibility early on.
Core Calculation Functions:
Script advanced institutional volume and price momentum algorithms. Build out swing length logic, market state filters, and activity scoring methods.
Detection Engines:
Develop and integrate engines for liquidity grabs, automated trendline detection, and order block identification—each with dedicated functions for speed and precision.
Visual Overlays & Plotting:
Implement powerful plotting logic for colored bars, score dashboards, trendlines, reversal zones, and liquidity markers—making every data point clear and actionable on the chart.
Testing Handlers:
Add diagnostic panels and debug outputs to refine calculations and assure accuracy in every market environment.
 Sample Trade Setups (Usage) 
Cnagda MomentumX delivers clarity for multiple trading styles by providing timely, actionable setups grounded in institutional behavior and market structure. Here’s how traders can leverage the indicator for confident decision-making:
Liquidity Grab Reversal
Enter trades around detected liquidity grabs when price sweeps major support/resistance and the dashboard signals a momentum shift.
  
Example: Wait for a bullish/Bearish grab near market lows/high, with institutional flow turning positive/negative—enter long/short for potential mean reversion.
Order Block Breakout
Trade breakouts when price cleanly rejects or flips key order block zones highlighted on the chart.
  
  
Example: Short at a marked breaker block after a rejection signal, confirmed by a downward institutional activity spike.
Trendline Continuation
Ride established market moves by entering on trendline confirmations plotted by the auto-detect system.
  
Example: Go long after a trendline retest, confirmed by a green bar color and dashboard strength score.
Dashboard Confirmation
Combine dashboard metrics (strength, accumulation, distribution) with bar color overlays for multi-factor entries.
Example: Enter trades only when all market signals align in real time for maximum probability.
For Short Entry check -- Weakness : For Long Entry Check - Strength With Other Indications
MomentumX is not just another indicator – it’s your edge for reading the market like an insider. By transparently mapping institutional flow, uncovering hidden liquidity zones, and color-coding every major structure shift, MomentumX transforms complexity into actionable clarity. Whether you’re scalping, swing trading, or investing, you’ll gain a decisive, real-time advantage on every chart.
Embrace smarter decisions, adapt to changing market conditions instantly, and join a new generation of technically empowered traders.
Customize, observe, and let the market reveal opportunities in a way you’ve never experienced before.
Happy Trading
Combined SMA with Murrey Math and Fixed Fractal Bands "Combined SMA with Murrey Math and Fixed Fractal Bands" , overlaying a Simple Moving Average (SMA), Murrey Math (MM) bands, and fixed fractal bands on a price chart. Here's a brief description of its functionality:Inputs:SMA Length: Configurable period for the SMA (default: 180 bars).
Resolution: Optional custom timeframe for data.
Frame Size for MM: Lookback period for Murrey Math calculations (default: 180 bars, adjustable via multiplier).
Ignore Wicks: Option to use open/close prices instead of high/low for MM calculations.
Fixed Fractal Size: Fixed distance in points for fractal bands (default: 1.22).
Shade 3/8-5/8 Overlap: Option to highlight overlapping regions between SMA-centered and absolute MM bands.
Data Source:Uses open, close, high, and low prices from the specified ticker and timeframe.
Optionally ignores wicks (high/low) for MM calculations, using max/min of open/close instead.
SMA Calculation:Computes a Simple Moving Average (SMA) based on the closing price and user-defined length.
Murrey Math Bands:Absolute MM Bands: Calculated using a dynamic range based on the highest/lowest prices over a lookback period, scaled logarithmically to create 13 levels (from -3/8 to +3/8, with 8/8 as the midpoint). These adapt to price action.
SMA-Centered MM Bands: Constructs MM bands relative to the SMA, with levels (0/8 to 8/8) spaced by a calculated increment derived from the absolute MM range.
Colors bands dynamically (green for bullish, red for bearish, gray for neutral) based on changes in the 4/8 level or increment, with labels indicating "Higher," "Lower," or "Same" states.
Fixed Fractal Bands:Plots six fixed-distance bands (±1, ±2, ±3) around the SMA, using a user-defined point value (default: 1.22).
Overlaps and Shading:Detects overlaps between SMA-centered and absolute MM bands at key levels (7/8-8/8, 0/8-1/8, and optionally 3/8-5/8).
Shades overlapping regions with distinct colors (red for 7/8-8/8, green for 0/8-1/8, blue for 3/8-5/8).
Fills specific SMA-centered MM regions (3/8-5/8, 0/8-1/8, 7/8-8/8) for visual emphasis.
Visualization:Plots SMA-centered MM bands, absolute MM bands, and fixed fractal bands as stepped lines with varying colors and transparency.
Displays a table at the bottom-right showing the current MM increment value.
Adds labels when the 4/8 level or increment changes, indicating trend direction.
In summary, this indicator combines a user-defined SMA with Murrey Math bands (both absolute and SMA-centered) and fixed fractal bands to provide a multi-level support/resistance framework. It highlights dynamic price levels, trend direction, and key overlaps, aiding traders in identifying potential reversal or consolidation zones.
Hurst‑Millard FLD Normalized 2.0 – Signals "Hurst-Millard FLD Normalized 2.0 – Signals" indicator. It analyzes price data using a combination of moving averages (MAs) and the Hurst exponent to decompose price movements into trend, swing, and noise components, generating buy and sell signals. Here's a brief overview of its functionality:Inputs and Modes:Offers Auto Mode (cycle-based) and Manual Mode for configuring three moving averages: Long-Term (LT), Mid-Term (MT), and Short-Term (ST).
Auto Mode calculates MA lengths and offsets based on user-defined target cycle lengths (e.g., LT: 400 bars, MT: 100 bars, ST: 25 bars) with predefined offset ratios (0.2, 0.333, 0.5 respectively).
Manual Mode allows direct input of MA lengths and offsets.
Moving Averages:Computes Simple Moving Averages (SMAs) for LT, MT, and ST based on the closing price.
Applies forward-shifting to simulate future price behavior (e.g., maLongFwd shifts the LT MA by the specified offset).
Decomposition:Trend: Derived from the forward-shifted LT MA (maLongFwd).
Swing: Calculated as the difference between MT and LT MAs, scaled as a percentage of the closing price and amplified (using ATR or a manual factor).
Noise: Calculated as the difference between ST and MT MAs, similarly scaled and amplified.
Hurst Exponent:Estimates the Hurst exponent to measure the persistence or mean-reversion of the noise component.
Uses a 50-bar lookback period, smoothed with a 5-period SMA.
Signal Generation:Generates buy signals when the noise component is less than the swing component and their difference is within a user-defined proximity threshold (default: 25% of swing).
Generates sell signals when noise exceeds swing within the same threshold.
Signals are plotted as diamond shapes at the calculated proximity price level.
Visualization:Plots the trend, swing, and noise components as lines with customizable colors and gradient intensity based on their relative strength.
Optional debugging plots for raw forward-shifted MAs and proximity thresholds.
Displays a periodic debug table (every 100 bars) showing key metrics like close price, MAs, trend, swing, noise, Hurst exponent, and more.
Additional Features:Supports ATR-based amplification for scaling swing and noise.
Allows customization of signal colors, diamond offsets, and proximity thresholds.
Includes debugging options to visualize raw MAs and proximity bands.
In summary, this indicator uses cycle-based or manually configured MAs to break down price action into trend, swing, and noise, calculates the Hurst exponent for noise analysis, and generates buy/sell signals based on the relationship between swing and noise within a proximity threshold. It’s designed for traders to identify potential trend reversals or continuations.
Regression Channel (ShareScope-style, parallel)What it does 
Replicates ShareScope’s Trend of displayed data look: a single straight linear-regression line (dashed) across a chosen window with parallel, constant-width bands above and below, plus optional shading.
Use it to see the overall trend gradient for a period and a statistically sized channel based on the fit’s residual error.
 How it works (math, short) 
Computes an OLS regression once over the analysis window.
Residual standard error s is derived from SSE and degrees of freedom (n−2).
Band half-width is constant across the window:
Mean CI (narrower): half = z * s / √n
Prediction (wider): half = z * s * √(1 + 1/n)
Three straight, parallel lines are drawn from the regression endpoints; midline is dashed.
This is intentionally not a tapered CI (which widens at the ends). It matches the visual behaviour of ShareScope’s shaded trend line channel.
 Inputs 
Source – Price series (Close, High, Low, HL2, etc.).
Use last N bars / N (bars) – Rolling window length.
From / To (date mode) – Alternative fixed date window.
Confidence (%) – 90 / 95 / 99 / Custom (uses z≈t).
Custom Z (t) – Override the quantile if desired.
Prediction bands – Use wider prediction envelope instead of mean CI.
Shade region + colors / opacity / line width.
 Usage 
To mimic ShareScope exactly, pick the same date span (use date mode) and set Confidence 99%.
Choose Prediction OFF for a tighter “confidence” look; ON for a wider, more permissive channel.
If ShareScope used High as source, set Source = High here as well.
 Notes & limitations 
TradingView does not expose the visible viewport to Pine. The script cannot auto-read “displayed data.” Use last N bars or date range.
Bands are parallel by design. Prices may close outside; the channel does not bend.
Window capped at 5,000 bars for performance. No alerts are emitted.
 Differences vs TV’s native tools 
Linear Regression (drawing) – manual object; no statistical sizing or shading.
Linear Regression Channel (indicator) – uses price standard deviations around the regression; width is a user stdev multiple.
This script – uses residual error of the OLS fit and a z/t quantile to size a statistically meaningful parallel channel.
Changelog
r3.1 – Guard fix (no return at top level), minor refactor, stable line updates.
r3 – Switched to single-fit OLS with parallel constant-width bands (ShareScope look).
(Earlier experimental builds r1–r2.2 implemented rolling/tapered CI; superseded.)
Disclaimer: Educational use only. Not investment advice.
Cheap/Expensive Zone Highlighter V.2 Publicindicator Cheap/Expensive Zone Highlighter Ver2
Uptrend = Based on price> EMA200 (O+H+L+C)/4
Cheap zone = RSI<45
Dowtrend = Based on price< EMA200 (O+H+L+C)/4
Expensive Zone= RSI>55
Cheap/Expensive Zone Highlighter V.2 indicator Cheap/Expensive Zone Highlighter Ver2
Uptrend = Based on price> EMA200 (O+H+L+C)/4
Cheap zone = RSI<45
Dowtrend = Based on price< EMA200 (O+H+L+C)/4
Expensive Zone= RSI>55
Demand & Supply by DaoEADemand & Supply by DaoEA
This indicator is designed to help traders identify key demand and supply zones, displaying strong price action patterns such as Pin Bar, Engulfing, Hammer, and Shooting Star to confirm reversal points.
Key Features
Automatically identifies Supply & Demand Zones and extends them to the right.
Displays Break of Structure (BOS) when prices break out of these zones.
Tracks Swing Highs/Lows and analyzes HH, HL, LH, and LL.
Highlights strong price action patterns such as Bullish/Bearish Pin Bars, Engulfing, Hammer, and Shooting Star.
Customizable zones, colors, and labels.
Overlay zone protection. To avoid over-cluttering the chart,
Usage
Use with higher timeframes (H1 and above) to identify high demand and supply points.
Switch to smaller timeframes (M15–M30) to identify entry and exit opportunities.
Wait for a strong BOS + PA to confirm the signal.
Suitable for scalpers, swing traders, and Smart Money Concept (SMC) traders who want to clearly understand market structure.
Cheap/Expensive Zone Highlighter 2
indicator Cheap/Expensive Zone Highlighter Ver2 
Uptrend = Based on  price> EMA200 (O+H+L+C)/4 
Cheap zone = RSI<45
Dowtrend = Based on price< EMA200 (O+H+L+C)/4 
Expensive Zone=  RSI>55
Signal Core Basic [NevoxCore]⯁ OVERVIEW
Signal Core Basic   is a clean and functional ATR-based trailing stop with BUY/SELL signals.
It modernizes the classic "UT-style" concept with adaptive sensitivity, multi-source inputs (Close, Heikin-Ashi, ZLEMA, KAMA), and compact visuals.
The tool is designed for traders who want a clear, minimal, and reliable base indicator without repainting issues.
⯁ HOW IT WORKS
Calculates an ATR-based trailing stop (nLoss = Key × ATR).
Adaptive mode scales sensitivity depending on trend strength (trend/range detection).
Trailing stop flips when price crosses from one regime to the other.
BUY/SELL signals trigger only when confirmed and not blocked by cooldown.
Label ring-buffer ensures chart stays clean (max 50 labels).
Bar coloring optional (solid), auto-disabled when classic red/green colors are enabled.
⯁ KEY FEATURES
ATR-based trailing stop with adjustable sensitivity.
Adaptive key (trend/range aware).
Multiple compute sources: Close, Heikin-Ashi, ZLEMA, KAMA.
Global confirm-on-close switch (no repaint).
Early-flip protection (cooldown).
Compact BUY/SELL labels with auto-cleanup (max 50).
Optional solid bar coloring.
Alerts with ticker, timeframe, and price included.
⯁ SETTINGS (quick overview)
Visual: Classic Colors, Show Labels, Plot Trailing Stop, Barcolor ON/OFF.
Source & Sensitivity: Key Value, ATR Length, Compute Source.
Advanced: Adaptive Key toggle with min/max bounds.
Global: Confirm on bar close.
Extras: Cooldown protection (bars).
⯁ ALERTS (built-in)
Basic Long: BUY signal.
Basic Short: SELL signal.
Each alert includes {{ticker}} {{interval}} @ {{close}}.
⯁ HOW TO USE
Use as a trailing stop and regime filter.
Combine BUY/SELL signals with your strategy rules.
Enable cooldown for cleaner signals in choppy markets.
Try ZLEMA or Heikin-Ashi as compute source for smoother performance.
⯁ WHY IT’S DIFFERENT
Unlike generic UT-style scripts, Signal Core Basic adds adaptive sensitivity, multiple input sources, and strict non-repaint safety.
The visuals follow NevoxCore’s design standards: compact, minimal, and clean — ready for live trading with alerts.
⯁ DISCLAIMER
Backtest and paper-trade before using live. Not financial advice.
Performance depends on market, timeframe, and parameters.
Z-Score Regression Bands [BOSWaves]Z-Score Regression Bands   – Adaptive Trend and Volatility Insight 
 Overview 
The Z-Score Regression Bands is a trend and volatility analysis framework designed to give traders a clear, structured view of price behavior. It combines Least Squares Moving Average (LSMA) regression, a statistical method to detect underlying trends, with Z-Score standardization, which measures how far price deviates from its recent average.
  
Traditional moving average bands, like Bollinger Bands, often lag behind trends or generate false signals in noisy markets. Z-Score Regression Bands addresses these limitations by:
 
 Tracking trends accurately using LSMA regression
 Normalizing deviations with Z-Scores to identify statistically significant price extremes
 Visualizing multiple bands for normal, strong, and extreme moves
 Highlighting trend shifts using diamond markers based on Z-Score crossings
 
This multi-layered approach allows traders to understand trend strength, detect overextensions, and identify periods of low or high volatility — all from a single, clear chart overlay. It is designed for traders of all levels and can be applied across scalping, day trading, swing trading, and longer-term strategies.
 Theoretical Foundation 
The Z-Score Regression Bands are grounded in statistical and trend analysis principles. Here’s the idea in plain terms:
 
 Least Squares Moving Average (LSMA) – Unlike standard moving averages, LSMA fits a straight line to recent price data using regression. This “best-fit” line shows the underlying trend more precisely and reduces lag, helping traders see trend changes earlier.
 Z-Score Standardization – A Z-Score expresses how far the LSMA is from its recent mean in standard deviation units. This shows whether price is unusually high or low, which can indicate potential reversals, pullbacks, or acceleration of a trend.
 Multi-Band Structure – The three bands represent: Band #1: Normal range of price fluctuations; Band #2: Significant deviation from the trend; Band #3: Extreme price levels that are statistically rare. The distance between bands dynamically adapts to market volatility, allowing traders to visualize expansions (higher volatility) and contractions (lower volatility).
 Trend Signals – When Z-Score crosses zero, diamonds appear on the chart. These markers signal potential trend initiation, continuation, or reversal, offering a simple alert for shifts in market momentum.
 
 How It Works 
The indicator calculates and plots several layers of information:
 LSMA Regression (Trend Detection) 
 
 Computes a line that best fits recent price points.
 The LSMA line smooths out minor fluctuations while reflecting the general direction of the market.
 
 Z-Score Calculation (Deviation Measurement) 
 
 Standardizes the LSMA relative to its recent average.
 Positive Z-Score → LSMA above average, negative → LSMA below average.
 Helps identify overbought or oversold conditions relative to the trend.
 
 Multi-Band Construction (Volatility Envelope) 
 
 Upper and lower bands are placed at configurable multiples of standard deviation.
 Band #1 captures typical price movement, Band #2 signals stronger deviation, Band #3 highlights extreme moves.
 Bands expand and contract with volatility, giving an intuitive visual guide to market conditions.
 
 Trend Signals (Diamonds) 
 
 Appear when Z-Score crosses zero.
 Indicates moments when momentum may shift, helping traders time entries or exits.
 
 Visual Interpretation 
 
 Band width = volatility: wide bands indicate strong movement; narrow bands indicate calm periods.
 LSMA shows underlying trend direction, while bands show how far price has strayed from that trend.
 
 Interpretation 
The Z-Score Regression Bands provide a multi-dimensional view of market behavior:
 
 Trend Analysis – LSMA line slope shows general market direction.
 Momentum & Volatility – Z-Score indicates whether the trend is accelerating or losing strength; band width indicates volatility levels.
 Price Extremes – Price touching Band #2 or #3 may suggest overextension and potential reversals.
 Trend Shifts – Diamonds signal statistically significant changes in momentum.
 Cycle Awareness – Standard deviation bands help distinguish normal market fluctuations from extreme events.
 
By combining these insights, traders can avoid false signals and react to meaningful structural shifts in the market.
 Strategy Integration 
 Trend Following 
 
 Enter trades when diamonds indicate momentum aligns with LSMA direction.
 Use Band #1 and #2 for stop placement and partial exits.
 
 Breakout Trading 
 
 Watch for narrow bands (low volatility) followed by price pushing outside Band #1 or #2.
 Confirm with Z-Score movement in the breakout direction.
 
 Mean Reversion/Pullback 
 
 If price reaches Band #2 or #3 without continuation, expect a pullback toward LSMA.
 
 Exhaustion & Reversals 
 
 Flattening Z-Score near zero while price remains at extreme bands signals trend weakening.
 Tighten stops or scale out before a potential reversal.
 
 Multi-Timeframe Confirmation 
 
 High timeframe LSMA confirms the main trend.
 Lower timeframe bands provide refined entry and exit points.
 
 Technical Implementation 
 
 LSMA Regression : Best-fit line minimizes lag and captures trend slope.
 Z-Score Standardization : Normalizes deviation to allow consistent interpretation across markets.
 Multi-Band Envelope : Three layers for normal, strong, and extreme deviations.
 Trend Signals : Automatic diamonds for Z-Score zero-crossings.
 Band Fill Options : Optional shading to visualize volatility expansions and contractions.
 
 Optimal Application 
Asset Classes:
 
 Forex : Capture breakouts, overextensions, and trend shifts.
 Crypto : High-volatility adaptation with adjustable band multipliers.
 Stocks/ETFs : Identify trending sectors, reversals, and pullbacks.
 Indices/Futures : Track cycles and structural trends.
 
Timeframes:
 
 Scalping (1–5 min) : Focus on Band #1 and trend signals for fast entries.
 Intraday (15m–1h) : Use Bands #1–2 for continuation and breakout trades.
 Swing (4h–Daily) : Bands #2–3 capture trend momentum and exhaustion.
 Position (Daily–Weekly) : LSMA trend dominates; Bands #3 highlight regime extremes.
 
 Performance Characteristics 
Strong Performance:
 
 Trending markets with moderate-to-high volatility
 Assets with steady liquidity and identifiable cycles
 
Weak Performance:
 
 Flat or highly choppy markets
 Very short timeframes (<1 min) dominated by noise
 
 Integration Tips 
 
 Combine with support/resistance, volume, or order flow analysis for confirmation.
 Use bands for stops, targets, or scaling positions.
 Apply multi-timeframe analysis: higher timeframe LSMA confirms main trend, lower timeframe bands refine entries.
 
 Disclaimer 
The Z-Score Regression Bands is a trading analysis tool, not a guaranteed profit system. Its effectiveness depends on market conditions, parameter selection, and disciplined risk management. Use it as part of a broader trading strategy, not in isolation.
Volume Percentile Supertrend [BackQuant]Volume Percentile Supertrend  
  A volatility and participation aware Supertrend that automatically widens or tightens its bands based on where current volume sits inside its recent distribution. The goal is simple: fewer whipsaws when activity surges, faster reaction when the tape is quiet. 
 What it does 
  
  Calculates a standard Supertrend framework from an ATR on a volume weighted price source.
  Measures current volume against its recent percentile and converts that context into a dynamic ATR multiplier.
  Widens bands when volume is unusually high to reduce chop. Tightens bands when volume is unusually low to catch turns earlier.
  Paints candles, draws the active Supertrend line and optional bands, and prints clear Long and Short signal markers.
  
 Why volume percentile 
  
  Fixed ATR multipliers assume all bars are equal. They are not. When participation spikes, price swings expand and a static band gets sliced.
  Percentiles place the current bar inside a recent distribution. If volume is in the top slice, the Supertrend allows more room. If volume is in the bottom slice, it expects smaller noise and tightens.
  This keeps the same playbook usable across busy sessions and sleepy ones without constant manual retuning.
  
 How it works 
  
  Volume distribution  - A rolling window computes the Pth percentile of volume. Above that is flagged as high volume. A lower reference percentile marks quiet bars.
  Dynamic multiplier  - Start from a Base Multiplier. If bar is high volume, scale it up by a function of volume-to-average and a Sensitivity knob. If bar is low volume, scale it down. Smooth the result with an EMA to avoid jitter.
  VWMA source  - The price input for bands is a short volume weighted moving average of close. Heavy prints matter more.
  ATR envelope  - Compute ATR on your length. UpperBasic = VWMA + Multiplier x ATR. LowerBasic = VWMA - Multiplier x ATR.
  Trailing logic  - The final lines trail price so they only move in a direction that preserves Supertrend behavior. This prevents sudden flips from transient pokes.
  Direction and signals  - Direction flips when price crosses through the relevant trailing line. SupertrendLong and SupertrendShort mark those flips. The plotted Supertrend is the active trailing side.
  
 Inputs and what they change 
  
  Volume Lookback  - Window for percentile and average. Larger window = stabler percentile, smaller = snappier.
  Volume Percentile Level  - Threshold that defines high volume. Example 70 means top 30 percent of recent bars are treated as high activity.
  Volume Sensitivity  - Gain from volume ratio to the dynamic multiplier. Higher = bands expand more when volume spikes.
  VWMA Source Length  - Smoothing of the volume weighted price source for the bands.
  ATR Length  - Standard ATR window. Larger = slower, smaller = quicker.
  Base Multiplier  - Core band width before volume adjustment. Think of this as your neutral volatility setting.
  Multiplier Smoothing  - EMA on the dynamic multiplier. Reduces back and forth changes when volume oscillates around the threshold.
  Show Supertrend on chart  - Toggles the active line.
  Show Upper Lower Bands  - Draws both sides even when inactive. Good for context.
  Paint candles according to Trend  - Colors bars by trend direction.
  Show Long and Short Signals  - Prints 𝕃 and 𝕊 markers at flips.
  Colors  - Choose your long and short palette.
  
 Reading the plot 
  
  Supertrend line  - Thick line that hugs price from above in downtrends and from below in uptrends. Its distance breathes with volume.
  Bands  - Optional upper and lower rails. Useful to see the inactive side and judge how wide the envelope is right now.
  Signals  - 𝕃 prints when the trend flips long. 𝕊 prints when the trend flips short.
  Candle colors  - Quick bias read at a glance when painting is enabled.
  
 Typical workflows 
  
  Trend following  - Use 𝕃 flips to initiate longs and ride while bars remain colored long and price respects the lower trailing line. Mirror for shorts with 𝕊 and the upper trailing line. During high volume phases the line will give more room, which helps stay in the move.
  Pullback adds  - In an established trend, shallow tags toward the active line after a high volume expansion can be add points. The dynamic envelope adjusts to the session so your add distance is not fixed to a stale volatility regime.
  Mean reversion filter  - In quiet tape the multiplier contracts and flips come earlier. If you prefer fading, watch for quick toggles around the bands when volume percentile remains low. In high volume, avoid fading into the widened line unless you have other strong reasons.
  
 Notes on behavior 
  
  High volume bar: the percentile gate opens, volRatio > 1 powers up the multiplier through the Sensitivity lever, bands widen, fewer false flips.
  Low volume bar: multiplier contracts, bands tighten, flips can happen earlier which is useful when you want to catch regime changes in quiet conditions.
  Smoothing matters: both the price source (VWMA) and the multiplier are smoothed to keep structure readable while still adapting.
  
 Quick checklist 
  
  If you see frequent chop and today feels busy: check that volume is above your percentile. Wider bands are expected. Consider letting the trend prove itself against the expanded line before acting.
  If everything feels slow and you want earlier entries: percentile likely marks low volume, so bands tighten and 𝕃 or 𝕊 can appear sooner.
  If you want more or fewer flips overall: adjust Base Multiplier first. If you want more reaction specifically tied to volume surges: raise Volume Sensitivity. If the envelope breathes too fast: raise Multiplier Smoothing.
  
 What the signals mean 
  
  SupertrendLong  - Direction changed from non-long to long. 𝕃 marker prints. The active line switches to support below price.
  SupertrendShort  - Direction changed from non-short to short. 𝕊 marker prints. The active line switches to resistance above price.
  Trend color  - Bars painted long or short help validate context for entries and management.
  
 Summary 
  Volume Percentile Supertrend adapts the classic Supertrend to the day you are trading. Volume percentile sets the mood, sensitivity translates it into dynamic band width, and smoothing keeps it clean. The result is a single plot that aims to stay conservative when the tape is loud and act decisively when it is quiet, without you having to constantly retune settings. 
Pivot Trend Flow [BigBeluga]🔵 OVERVIEW 
 Pivot Trend Flow   turns raw swing points into a clean, adaptive trend band. It averages recent pivot highs and lows to form two dynamic reference levels; when price crosses above the averaged highs, trend flips  bullish  and a  green  band is drawn; when it crosses below the averaged lows, trend flips  bearish  and a  red  band is drawn. During an uptrend the script highlights  breakouts of previous pivot highs  with ▲ labels, and during a downtrend it flags  breakdowns of previous pivot lows  with ▼ labels—making structure shifts and continuation signals obvious.
 🔵 CONCEPTS 
 
   Pivot-Based Averages : Recent pivot highs/lows are collected and averaged to create smoothed upper/lower reference levels.
 
if not na(ph)
    phArray.push(ph)
if not na(pl)
    plArray.push(pl)
if phArray.size() > avgWindow
    upper := phArray.avg()
    phArray.shift()
if plArray.size() > avgWindow
    lower := plArray.avg()
    plArray.shift()
 
  
   Trend State via Crosses : Close above the averaged-highs ⇒ bullish trend; close below the averaged-lows ⇒ bearish trend.
   Trend Band : A colored band (green/red) is plotted and optionally filled to visualize the active regime around price.
  
   Structure Triggers : 
In bull mode the tool watches for prior pivot-high breakouts (▲). 
  
In bear mode it watches for prior pivot-low breakdowns (▼).
  
 
 🔵 FEATURES 
 
   Adaptive Trend Detection  from averaged pivot highs/lows.
   Clear Visuals : Green band in uptrends, red band in downtrends; optional fill for quick read.
   Breakout/Breakdown Labels :
 
  ▲ marks breaks of previous pivot highs in uptrends
  ▼ marks breaks of previous pivot lows in downtrends
 
   Minimal Clutter : Uses compact lines and labels that extend only on confirmation.
   Customizable Colors & Fill  for trend states and band styling.
 
 🔵 HOW TO USE 
 
   Pivot Length : Sets how swing points are detected. Smaller = more reactive; larger = smoother.
   Avg Window (pivots) : How many recent pivot highs/lows are averaged. Increase to stabilize the band; decrease for agility.
   Read the Band :
 
  Green band active ⇒ prioritize longs, pullback buys toward the band.
  Red band active ⇒ prioritize shorts, pullback sells toward the band.
 
   Trade the Triggers :
 
  In bull mode, ▲ on a prior pivot-high break can confirm continuation.
  In bear mode, ▼ on a prior pivot-low break can confirm continuation.
 
   Combine with Context : Use HTF trend, S/R, or volume for confluence and to filter signals.
   Fill Color Toggle : Enable/disable band fill to match your chart style.
 
 🔵 CONCLUSION 
 Pivot Trend Flow   converts swing structure into an actionable, low-lag trend framework. By blending averaged pivots with clean breakout/breakdown labels, it clarifies trend direction, timing, and continuation spots—ideal as a core bias tool or a confirmation layer in any trading system.















