[COG]Adaptive Volatility Bands# Adaptive Volatility Bands (AVB) Indicator Guide for Traders
## Special Acknowledgment 🙌
This script is inspired by and builds upon the foundational work of **DonovanWall**, a respected contributor to the trading community. His innovative approach to adaptive indicators has been instrumental in developing this advanced trading tool.
## What is the Adaptive Volatility Bands Indicator?
The Adaptive Volatility Bands (AVB) is a sophisticated technical analysis tool designed to help traders understand market dynamics by creating dynamic, responsive price channels that adapt to changing market conditions. Unlike traditional static indicators, this script uses advanced mathematical techniques to create flexible bands that adjust to market volatility in real-time.
## Key Features and Inputs
### 1. Price and Filtering Options
- **Price Source**: Determines the base price used for calculations (default is HLC3 - Average of High, Low, and Close)
- **Filter Poles**: Controls the smoothness of the indicator (1-9 poles)
- Lower values: More responsive, more noise
- Higher values: Smoother, but slower to react
### 2. Volatility and Band Settings
- **Sample Length**: Determines how many bars are used to calculate volatility (default 144)
- **Volatility Multiplier**: Adjusts the width of the main bands (default 1.414)
- **Outer Band Multiplier**: Controls the width of the outer bands (default 2.5)
- **Inner Band Ratio**: Positions the inner bands between the center and outer bands (default 0.25)
### 3. Advanced Processing Options
- **Lag Reduction Mode**: Helps reduce indicator delay
- **Fast Response Mode**: Makes the indicator more responsive to recent price changes
### 4. Signal and Visualization Options
- **Show Entry Signals**: Displays buy and sell signals
- **Signal Display Style**: Choose between labels or shapes
- **Range Filter**: Adds an additional filter for signal validation
## How the Indicator Works
The Adaptive Volatility Bands create a dynamic price channel with three key components:
1. **Center Line**: Represents the core trend direction
2. **Inner Bands**: Closer to the center line
3. **Outer Bands**: Wider bands that show broader price potential
### Color Dynamics
- The indicator uses a smart color gradient system
- Colors change based on price position within the bands
- Helps visualize bullish (green/blue) and bearish (red) market conditions
## Trading Strategies for Beginners
### Basic Entry Signals
- **Buy Signal**:
- Price touches the center line from below
- Candle is bullish (closes higher than it opens)
- Price is above the center line
- Trend is upward
- **Sell Signal**:
- Price touches the center line from above
- Candle is bearish (closes lower than it opens)
- Price is below the center line
- Trend is downward
### Risk Management Tips
1. Use the bands to identify:
- Potential trend changes
- Volatility levels
- Support and resistance areas
2. Combine with other indicators for confirmation
3. Always use stop-loss orders
4. Adjust parameters to match your trading style and asset
## When to Use This Indicator
Best suited for:
- Trending markets
- Swing trading
- Identifying potential entry and exit points
- Understanding market volatility
### Recommended Markets
- Stocks
- Forex
- Cryptocurrencies
- Futures
## Customization
The script offers extensive customization:
- Adjust smoothness
- Change band multipliers
- Modify color schemes
- Enable/disable features like lag reduction
## Important Considerations for Beginners
🚨 **Disclaimer**:
- No indicator guarantees profits
- Always practice with a demo account first
- Learn and understand the indicator before live trading
- Market conditions change, so continually adapt your strategy
## Getting Started
1. Add the script to your TradingView chart
2. Experiment with different settings
3. Backtest on historical data
4. Start with small positions
5. Continuously learn and improve
Happy Trading! 📈🔍
Bands and Channels
KumoBreakLongShows Breakouts over and under Kumo Cloud, don't trade with it, just use it as indicator
[blackcat] L3 Breakout IndicatorOVERVIEW
This script provides a breakout detection system ( L3 Breakout Indicator) analyzing price momentum across timeframes. It identifies market entry/exit zones through dynamically scaled thresholds and visual feedback layers.
FEATURES
Dual momentum visualization: • Price Momentum Ratio Plot ( yellow ) • Filtered Signal Value Plot ( fuchsia )
Adjustable trade boundaries: ▪ Lower Threshold (default: 0.5) ▪ Upper Threshold (default: 2.9) ▪ Central boundary ( fixed at 2.0 )
Real-time visual feedback: ☀ Buy zone highlights ( lime ) on momentum crossover ⚠ Sell zone highlights ( red ) on momentum cross-under ♦ Dynamic convergence area between plots ( colored gradient )
HOW TO USE
Interpretation Flow
Monitor momentum plots relative to threshold lines
Actionable signals occur when momentum crosses thresholds
Persistent movement above/below central boundary indicates trend continuation
Key Zones
• Below 0.5: Potential buying opportunity zone
• Above 2.0: Cautionary selling region
• Between 0.5-2.0: Neutral consolidation phase
Optimization Tips
Adjust thresholds based on asset volatility
Combine with volume metrics for confirmation
Backtest parameters using historical data
LIMITATIONS
• Lag induced by 4-period EMA smoothing
• Historical dependency in calculating extremes (lowest(100)/highest(250))
• No built-in risk management protocols (stop loss take profit)
• Performance variability during sideways markets
SuperTrend AI with RSI, EMA & Dynamic S/RSupport, resistance, entry and exit signals, and combining the average with the relative strength
US500 Institutional Bias - MultiTF Pro EditionUS500 Institutional Bias – Multi-Timeframe Pro Edition
This custom-built TradingView indicator is designed to replicate an institutional-level bias model using multi-timeframe analysis, trend structure, and volume-based smart money signals. It combines over 20 high-value components into a single, weighted directional score — helping traders determine whether the environment favors long, short, or neutral positioning.
✅ Key Features & What It Does:
📈 Multi-Timeframe Trend Following
Analyzes EMA structures (fast > mid > slow) on:
M1 (intrabar)
M5
M15
H1
1D
Each timeframe contributes to the final bias based on its weight.
Higher timeframes like H1 and D1 have stronger influence on the overall direction.
🧠 Bias Score Calculation
The script calculates a composite Bias Score by summing weighted signals from:
Moving Averages (Trend)
MACD Histogram (Momentum)
RSI & Stochastic (Mean Reversion)
MFI, OBV, ADL, CMF (Volume Flow)
TSI & ROC (True Strength)
VWAP relationship
Bollinger Band squeeze detection
Donchian Channel positioning
RSI divergence detection
Relative Vigor Index & Volatility Index
Seasonality (month-based behavior)
🔺 Smart Money & Liquidity Zones
Highlights potential Order Blocks
Detects Volume Spikes and Support/Resistance pivots
📊 Visual Outputs
Color-coded chart background based on bias intensity
Triangle signals for Strong Long or Strong Short zones
Divergence dots when price and RSI disagree (early reversal alerts)
Optional Bias Panel to show total score and market state
🧭 Use Case
This tool is ideal for:
Intraday scalpers and swing traders
Confirming trend alignment across timeframes
Avoiding trades during neutral or conflicting structure
Combining technical and sentiment-based signals
Zero-Lag MA Trend Levels [jineet]hello this indicator can be used for crypto and forex both works well.....
52-Week Breakout w/10%SL - Created by Sai DhakshinThis plots the 52 week high and entry on breakout keeping the 10% stoploss that is market below the LTP of the asset and the breakout of the 52 week high
Pairs Trading Pétrole-OrPair between gold and oil. When the blue line passes below the lowest green line, oil becomes undervalued relative to gold and a long on oil would become interesting until the blue line goes back over the orange line. The logic is the same for the opposite.
Angel Signal proAngel Signal Pro is a comprehensive technical analysis tool that integrates multiple indicators for a structured market assessment.
RSI, MACD, and ADX — evaluate trend strength and identify potential entry and exit points.
Momentum and ATR — measure price acceleration and volatility, assisting in risk management.
Stochastic Oscillator — detects overbought and oversold conditions.
SMA (50, 100, 200) — tracks key moving averages with the option to enable all at once.
Cryptocurrency price display — select and monitor real-time prices of any cryptocurrency available on the BINANCE exchange.
Automatic trend detection— classifies trends as bullish, bearish, or neutral based on RSI and MACD signals.
Customizable table — presents key indicator values in a structured and convenient format. The table also provides automatic trend detection across different timeframes (TF), allowing you to assess the current market situation more accurately on various levels.
Automatic gap detection — identifies market gaps, helping to spot potential trading opportunities.
Buy and sell signals — the system generates buy and sell signals based on the analysis of five key indicator values, allowing traders to respond quickly to market changes.
Bollinger Bands — helps assess market volatility and identify support and resistance levels, as well as potential reversal points, by detecting when prices move outside of normal volatility ranges.
Customization settings — in Angel Signal Pro, you can select which indicators and features you want to display. All elements can be turned on or off according to your preferences. There is also the ability to change colors and the appearance of each element, allowing you to tailor the interface to your personal preferences and make the tool more convenient to use.
Angel Signal Pro is suitable for traders of all experience levels and helps navigate market conditions with confidence.
VIX Implied MovesKey Features:
Three Timeframe Bands:
Daily: Blue bands showing ±1σ expected move
Weekly: Green bands showing ±1σ expected move
30-Day: Red bands showing ±1σ expected move
Calculation Methodology:
Uses VIX's annualized volatility converted to specific timeframes using square root of time rule
Trading day convention (252 days/year)
Band width = Price × (VIX/100) ÷ √(number of periods)
Visual Features:
Colored semi-transparent backgrounds between bands
Progressive line thickness (thinner for shorter timeframes)
Real-time updates as VIX and ES prices change
Example Calculation (VIX=20, ES=5000):
Daily move = 5000 × (20/100)/√252 ≈ ±63 points
Weekly move = 5000 × (20/100)/√50 ≈ ±141 points
Monthly move = 5000 × (20/100)/√21 ≈ ±218 points
This indicator helps visualize expected price ranges based on current volatility conditions, with wider bands indicating higher market uncertainty. The probabilistic ranges represent 68% confidence levels (1 standard deviation) derived from options pricing.
[blackcat] L3 Composite Trading System with ControlOVERVIEW
This indicator combines three distinct trading strategies into a unified decision-making framework. Utilizing KDJ oscillators, MACD divergence analysis, and adaptive signal filtering techniques, it provides actionable buy/sell signals validated against multi-period momentum trends and structural support/resistance levels.
FEATURES
Integrated KDJ oscillator with weighted moving average smoothing
Dynamic MACD difference visualization normalized against price volatility
Multi-layered confirmation process: • Momentum convergence/divergence tracking
• Candle pattern recognition (Yellow/Fuchsia flags)
• SMAs cross-validation (20/60-day thresholds)
Adaptive risk controls via tunable α parameter adjustment
HOW TO USE
Set Alpha Period parameter matching market cycle characteristics
Monitor primary trend direction via candle coloring (green/red zones)
Confirm directional bias using: ▪️ KDJ-J line position relative to zero axis ▪️ MACD histogram slope persistence (>3 bar validation)
Execute trades only when: • Buy/Sell labels align across both oscillator panels • Coincide with candle flag transitions (e.g., red→yellow) • Validate against concurrent SMA breakout conditions
LIMITATIONS
Lag inherent in EMA-based components during rapid reversals
Requires minimum 60-bar history for full functionality
Sensitive to fractal scaling due to normalization methods
Does not account for liquidity/volume dynamics
NOTES
• Yellow/Fuchsia flags reflect relative strength changes vs prior session
• SMA crossover validations have 16-bar lookback memory retention
PriorHourRangeLevels_v0.1PriorHourRangeLevels_v0.1
Created by dc_77 | © 2025 | Mozilla Public License 2.0
Overview
"PriorHourRangeLevels_v0.1" is a versatile Pine Script™ indicator designed to help traders visualize and analyze price levels based on the prior hour’s range. It overlays key levels—High, Low, 75%, 50% (EQ), and 25%—from the previous hour onto the current price chart, alongside the current hour’s opening price. With customizable display options and time zone support, it’s ideal for intraday traders looking to identify support, resistance, and breakout zones.
How It Works
Hourly Reset: The indicator detects the start of each hour based on your chosen time zone (e.g., "America/New_York" by default).
Prior Hour Range: It calculates the High and Low of the previous hour, then derives three additional levels:
75%: 75% of the range above the Low.
EQ (50%): The midpoint of the range.
25%: 25% of the range above the Low.
Current Hour Open: Displays the opening price of the current hour.
Projection: Lines extend forward (default: 24 bars) to project these levels into the future, aiding in real-time analysis.
Alerts: Triggers alerts when the price crosses any of the prior hour’s levels (High, 75%, EQ, 25%, Low).
Key Features
Time Zone Flexibility: Choose from options like UTC, New York, Tokyo, or London to align with your trading session.
Visual Customization:
Toggle visibility for each level (High, Low, 75%, EQ, 25%, Open, and Anchor).
Adjust line styles (Solid, Dashed, Dotted), colors, and widths.
Show or hide labels with adjustable sizes (Tiny, Small, Normal, Large).
Anchor Line: A vertical line marks the start of the prior hour, with optional labeling.
Alert Conditions: Set up notifications for price crossings to catch key moments without watching the chart.
Usage Tips
Use the High and Low as potential breakout levels, while 75%, EQ, and 25% act as intermediate support/resistance zones.
Trend Confirmation: Watch how price interacts with the EQ (50%) level to gauge momentum.
Session Planning: Adjust the time zone to match your market (e.g., "Europe/London" for FTSE trading).
Projection Offset: Extend or shorten the lines (via "Projection Offset") based on your chart timeframe.
Inputs
Time Zone: Select your preferred market time zone.
Anchor Settings: Show/hide the prior hour start line, style, color, width, and label.
Level Settings: Customize visibility, style, color, width, and labels for Open, High, 75%, EQ, 25%, and Low.
Display: Set projection length and label size.
Close Price PercentileClose Price Percentile with Range Distribution
This indicator helps traders identify where the current price stands relative to its historical context using percentile ranking. It calculates and displays the current price's percentile position within a customizable lookback window (default: 365 periods).
Key Features:
• Percentile Ranking: Shows where the current price falls within its historical range (0-100%)
• Customizable Thresholds: Set your own high/low percentile boundaries for analysis
• Statistical Distribution: Tracks and displays the number and percentage of data points falling in each range (below threshold, between thresholds, above threshold)
• Visual References: Includes dashed lines at threshold levels for easy visual reference
• Clean Data Presentation: Organized table display in the top-right corner
Perfect for:
• Understanding price extremes
• Identifying potential overbought/oversold conditions
• Statistical analysis of price movements
• Mean reversion strategies
Fully customizable with adjustable window length, thresholds, and visual settings.
SessionRangeLevels_v0.1SessionRangeLevels_v0.1
Overview:
SessionRangeLevels_v0.1 is a customizable Pine Script (v6) indicator designed to plot key price levels based on a user-defined trading session. It identifies the high and low of the session and calculates intermediate levels (75%, 50% "EQ", and 25%) within that range. These levels are projected forward as horizontal lines with accompanying labels, providing traders with dynamic support and resistance zones. The indicator supports extensive customization for session timing, time zones, line styles, colors, and more.
Key Features:
Session-Based Range Detection: Tracks the high and low prices during a specified session (e.g., 0600-0900) and updates them dynamically as the session progresses.
Customizable Levels: Displays High, 75%, EQ (50%), 25%, and Low levels, each with independent toggle options, styles (Solid, Dashed, Dotted), colors, and widths.
Session Anchor: Optional vertical line marking the session start, with customizable style, color, and width.
Projection Offset: Extends level lines forward by a user-defined number of bars (default: 24) for future price reference.
Labels: Toggleable labels for each level (e.g., "High," "75%," "EQ") with adjustable size (Tiny, Small, Normal, Large).
Time Zone Support: Aligns session timing to a selected time zone (e.g., America/New_York, UTC, Asia/Tokyo, etc.).
Alert Conditions: Triggers alerts when the price crosses any of the plotted levels (High, 75%, EQ, 25%, Low).
Inputs:
Session Time (HHMM-HHMM): Define the session range (e.g., "0600-0900" for 6:00 AM to 9:00 AM).
Time Zone: Choose from options like UTC, America/New_York, Europe/London, etc.
Anchor Settings: Toggle the session start line, adjust its style (default: Dotted), color (default: Black), and width (default: 1).
Level Settings:
High (Solid, Black, Width 2)
75% (Dotted, Blue, Width 1)
EQ/50% (Dotted, Orange, Width 1)
25% (Dotted, Blue, Width 1)
Low (Solid, Black, Width 2)
Each level includes options to show/hide, set style, color, width, and label visibility.
Projection Offset: Number of bars to extend lines (default: 24).
Label Size: Set label size (default: Small).
How It Works:
The indicator detects the start and end of the user-defined session based on the specified time and time zone.
During the session, it tracks the highest high and lowest low, updating the levels in real-time.
At the session start, it plots the High, Low, and intermediate levels (75%, 50%, 25%), projecting them forward.
Lines and labels dynamically adjust as new highs or lows occur within the session.
Alerts notify users when the price crosses any active level.
Usage:
Ideal for traders who focus on session-based strategies (e.g., London or New York open). Use it to identify key price zones, monitor breakouts, or set targets. Customize the appearance to suit your chart preferences and enable alerts for real-time trading signals.
Notes:
Ensure your chart’s timeframe aligns with your session duration for optimal results (e.g., 1-minute or 5-minute charts for short sessions).
The indicator overlays directly on the price chart for easy integration with other tools.
RakyatChart_ProUsed to determine exit points based on price volatility using ATR (Average True Range).
Key Features:
BUY/SELL signals with larger and clearer labels
Automatic trailing stop to safely follow trends
Alert notifications when a trend reversal occurs
Option to use close price or high/low for extremum calculations
Use this indicator for trend-following trading or as an additional confirmation tool in scalping/day trading strategies.
Jim Simons Mean Reversion (Adapted)Interpret Signals
Long Trades:
Price enters green zone (<2% below 21MA).
RSI > 30 (avoids extreme oversold).
Buy when price crosses back above 21MA.
Short Trades:
Price enters red zone (>2% above 21MA).
RSI < 70.
Sell when price crosses below 21MA.
Dynamic Momentum Bands | AlphaAlgosDynamic Momentum Bands | AlphaAlgos
Overview
The Dynamic Momentum Bands indicator is an advanced technical analysis tool that combines multiple analytical techniques to provide a comprehensive view of market momentum and trend dynamics. By integrating RSI (Relative Strength Index), volatility analysis, and adaptive moving averages, this indicator offers traders a nuanced perspective on market conditions.
Key Features
Adaptive band calculation based on price momentum
Integrated RSI-driven volatility scaling
Multiple moving average type options (EMA, SMA, VWMA)
Smooth, gradient-based band visualization
Optional price bar coloring for trend identification
Technical Methodology
The indicator employs a sophisticated approach to market analysis:
1. Momentum Calculation
Calculates RSI using a customizable length
Uses RSI to dynamically adjust band volatility
Scales band width based on distance from the 50 RSI level
2. Band Construction
Applies a selected moving average type to the price source
Calculates deviation using ATR (Average True Range)
Smooths band edges for improved visual clarity
Configuration Options
Core Settings:
Price Source: Choose the price data used for calculations
RSI Length: Customize the RSI calculation period (1-50)
Band Length: Adjust the moving average period (5-100)
Volatility Multiplier: Fine-tune band width
Band Type: Select between EMA, SMA, and VWMA
Visual Settings:
Bar Coloring: Toggle color-coded price bars
Gradient-based band visualization
Smooth color transitions for trend representation
Trend Identification
The indicator provides trend insights through:
Color-coded bands (blue for bullish, pink for bearish)
Smooth gradient visualization
Optional price bar coloring
Trading Applications
Trend Following:
- Use band position relative to price as trend indicator
- Identify momentum shifts through color changes
- Utilize gradient zones for trend strength assessment
Volatility Analysis:
Observe band width changes
Detect potential breakout or consolidation periods
Use RSI-driven volatility scaling for market context
Best Practices
Adjust RSI length to match trading timeframe
Experiment with different moving average types
Use in conjunction with other technical indicators
Consider volatility multiplier for different market conditions
This indicator is provided for informational purposes only. Always use proper risk management when trading. Past performance is not indicative of future results. Not financial Advise
Donchian Fibonacci Zones with Trading FeaturesThis is a modification of Donchian Fibonacci Trading tool by eykpunter. The only change is the range of Donchian channel is modified to a range of 5 to 60.
This is to study if lower range can help with narrow day trading mean reversion strategy .
Multi-Anchored Linear Regression Channels [TANHEF]█ Overview:
The 'Multi-Anchored Linear Regression Channels ' plots multiple dynamic regression channels (or bands) with unique selectable calculation types for both regression and deviation. It leverages a variety of techniques, customizable anchor sources to determine regression lengths, and user-defined criteria to highlight potential opportunities.
Before getting started, it's worth exploring all sections, but make sure to review the Setup & Configuration section in particular. It covers key parameters like anchor type, regression length, bias, and signal criteria—essential for aligning the tool with your trading strategy.
█ Key Features:
⯁ Multi-Regression Capability:
Plot up to three distinct regression channels and/or bands simultaneously, each with customizable anchor types to define their length.
⯁ Regression & Deviation Methods:
Regressions Types:
Standard: Uses ordinary least squares to compute a simple linear trend by averaging the data and deriving a slope and endpoints over the lookback period.
Ridge: Introduces L2 regularization to stabilize the slope by penalizing large coefficients, which helps mitigate multicollinearity in the data.
Lasso: Uses L1 regularization through soft-thresholding to shrink less important coefficients, yielding a simpler model that highlights key trends.
Elastic Net: Combines L1 and L2 penalties to balance coefficient shrinkage and selection, producing a robust weighted slope that handles redundant predictors.
Huber: Implements the Huber loss with iteratively reweighted least squares (IRLS) and EMA-style weights to reduce the impact of outliers while estimating the slope.
Least Absolute Deviations (LAD): Reduces absolute errors using iteratively reweighted least squares (IRLS), yielding a slope less sensitive to outliers than squared-error methods.
Bayesian Linear: Merges prior beliefs with weighted data through Bayesian updating, balancing the prior slope with data evidence to derive a probabilistic trend.
Deviation Types:
Regressive Linear (Reverse): In reverse order (recent to oldest), compute weighted squared differences between the data and a line defined by a starting value and slope.
Progressive Linear (Forward): In forward order (oldest to recent), compute weighted squared differences between the data and a line defined by a starting value and slope.
Balanced Linear: In forward order (oldest to newest), compute regression, then pair to source data in reverse order (newest to oldest) to compute weighted squared differences.
Mean Absolute: Compute weighted absolute differences between each data point and its regression line value, then aggregate them to yield an average deviation.
Median Absolute: Determine the weighted median of the absolute differences between each data point and its regression line value to capture the central tendency of deviations.
Percent: Compute deviation as a percentage of a base value by multiplying that base by the specified percentage, yielding symmetric positive and negative deviations.
Fitted: Compare a regression line with high and low series values by computing weighted differences to determine the maximum upward and downward deviations.
Average True Range: Iteratively compute the weighted average of absolute differences between the data and its regression line to yield an ATR-style deviation measure.
Bias:
Bias: Applies EMA or inverse-EMA style weighting to both Regression and/or Deviation, emphasizing either recent or older data.
⯁ Customizable Regression Length via Anchors:
Anchor Types:
Fixed: Length.
Bar-Based: Bar Highest/Lowest, Volume Highest/Lowest, Spread Highest/Lowest.
Correlation: R Zero, R Highest, R Lowest, R Absolute.
Slope: Slope Zero, Slope Highest, Slope Lowest, Slope Absolute.
Indicator-Based: Indicators Highest/Lowest (ADX, ATR, BBW, CCI, MACD, RSI, Stoch).
Time-Based: Time (Day, Week, Month, Quarter, Year, Decade, Custom).
Session-Based: Session (Tokyo, London, New York, Sydney, Custom).
Event-Based: Earnings, Dividends, Splits.
External: Input Source Highest/Lowest.
Length Selection:
Maximum: The highest allowed regression length (also fixed value of “Length” anchor).
Minimum: The shortest allowed length, ensuring enough bars for a valid regression.
Step: The sampling interval (e.g., 1 checks every bar, 2 checks every other bar, etc.). Increasing the step reduces the loading time, most applicable to “Slope” and “R” anchors.
Adaptive lookback:
Adaptive Lookback: Enable to display regression regardless of too few historical bars.
⯁ Selecting Bias:
Bias applies separately to regression and deviation.
Positive values emphasize recent data (EMA-style), negative invert, and near-zero maintains balance. (e.g., a length 100, bias +1 gives the newest price ~7× more weight than the oldest).
It's best to apply bias to both (regression and deviation) or just the deviation. Biasing only regression may distort deviation visually, while biasing both keeps their relationship intuitive. Using bias only for deviation scales it without altering regression, offering unique analysis.
⯁ Scale Awareness:
Supports linear and logarithmic price scaling, the regression and deviations adjust accordingly.
⯁ Signal Generation & Alerts:
Customizable entry/exit signals and alerts, detailed in the dedicated section below.
⯁ Visual Enhancements & Real-World Examples:
Optional on-chart table display summarizing regression input criteria (display type, anchor type, source, regression type, regression bias, deviation type, deviation bias, deviation multiplier) and key calculated metrics (regression length, slope, Pearson’s R, percentage position within deviations, etc.) for quick reference.
█ Understanding R (Pearson Correlation Coefficient):
Pearson’s R gauges data alignment to a straight-line trend within the regression length:
Range: R varies between –1 and +1.
R = +1 → Perfect positive correlation (strong uptrend).
R = 0 → No linear relationship detected.
R = –1 → Perfect negative correlation (strong downtrend).
This script uses Pearson’s R as an anchor, adjusting regression length to target specific R traits. Strong R (±1) follows the regression channel, while weak R (0) shows inconsistency.
█ Understanding the Slope:
The slope is the direction and rate at which the regression line rises or falls per bar:
Positive Slope (>0): Uptrend – Steeper means faster increase.
Negative Slope (<0): Downtrend – Steeper means sharper drop.
Zero or Near-Zero Slope: Sideways – Indicating range-bound conditions.
This script uses highest and lowest slope as an anchor, where extremes highlight strong moves and trend lines, while values near zero indicate sideways action and possible support/resistance.
█ Setup & Configuration:
Whether you’re new to this script or want to quickly adjust all critical parameters, the panel below shows the main settings available. You can customize everything from the anchor type and maximum length to the bias, signal conditions, and more.
Scale (select Log Scale for logarithmic, otherwise linear scale).
Display (regression channel and/or bands).
Anchor (how regression length is determined).
Length (control bars analyzed):
• Max – Upper limit.
• Min – Prevents regression from becoming too short.
• Step – Controls scanning precision; increasing Step reduces load time.
Regression:
• Type – Calculation method.
• Bias – EMA-style emphasis (>0=new bars weighted more; <0=old bars weighted more).
Deviation:
• Type – Calculation method.
• Bias – EMA-style emphasis (>0=new bars weighted more; <0=old bars weighted more).
• Multiplier - Adjusts Upper and Lower Deviation.
Signal Criteria:
• % (Price vs Deviation) – (0% = lower deviation, 50% = regression, 100% = upper deviation).
• R – (0 = no correlation, ±1 = perfect correlation; >0 = +slope, <0 = -slope).
Table (analyze table of input settings, calculated results, and signal criteria).
Adaptive Lookback (display regression while too few historical bars).
Multiple Regressions (steps 2 to 7 apply to #1, #2, and #3 regressions).
█ Signal Generation & Alerts:
The script offers customizable entry and exit signals with flexible criteria and visual cues (background color, dots, or triangles). Alerts can also be triggered for these opportunities.
Percent Direction Criteria:
(0% = lower deviation, 50% = regression line, 100% = upper deviation)
Above %: Triggers if price is above a specified percent of the deviation channel.
Below %: Triggers if price is below a specified percent of the deviation channel.
(Blank): Ignores the percent‐based condition.
Pearson's R (Correlation) Direction Criteria:
(0 = no correlation, ±1 = perfect correlation; >0 = positive slope, <0 = negative slope)
Above R / Below R: Compares the correlation to a threshold.
Above│R│ / Below│R│: Uses absolute correlation to focus on strength, ignoring direction.
Zero to R: Checks if R is in the 0-to-threshold range.
(Blank): Ignores correlation-based conditions.
█ User Tips & Best Practices:
Choose an anchor type that suits your strategy, “Bar Highest/Lowest” automatically spots commonly used regression zones, while “│R│ Highest” targets strong linear trends.
Consider enabling or disabling the Adaptive Lookback feature to ensure you always have a plotted regression if your chart doesn’t meet the maximum-length requirement.
Use a small Step size (1) unless relying on R-correlation or slope-based anchors as the are time-consuming to calculate. Larger steps speed up calculations but reduce precision.
Fine-tune settings such as lookback periods, regression bias, and deviation multipliers, or trend strength. Small adjustments can significantly affect how channels and signals behave.
To reduce loading time , show only channels (not bands) and disable signals, this limits calculations to the last bar and supports more extreme criteria.
Use the table display to monitor anchor type, calculated length, slope, R value, and percent location at a glance—especially if you have multiple regressions visible simultaneously.
█ Conclusion:
With its blend of advanced regression techniques, flexible deviation options, and a wide range of anchor types, this indicator offers a highly adaptable linear regression channeling system. Whether you're anchoring to time, price extremes, correlation, slope, or external events, the tool can be shaped to fit a variety of strategies. Combined with customizable signals and alerts, it may help highlight areas of confluence and support a more structured approach to identifying potential opportunities.
SMA and Bollinger Bands Distancecalculate price gap between fast moving SMA and slow moving bollinger band
Find Untapped LevelsYou can find your daily, weekly and monthly levels with this indicator. You still need to go through each time frame and draw them yourself
Jansson Swing EMA 8EMA 8 is the Trend. It is green when up and red when down. Three green lines mark +1%, +2,5% and + 4%. There are also three opposit red lines.
Nasan Ultimate Health Index (NUHI)The Nasan Ultimate Health Index (NUHI) is a technical indicator designed to measure the relative health of a stock compared to a benchmark index or sector. By incorporating price action, volume dynamics, and volatility, NUHI provides traders with a clearer picture of a stock’s performance relative to the broader market.
The NUHI is based on the idea that a stock’s relative strength and momentum can be assessed more effectively when adjusted for volume behavior and benchmark comparison. Instead of looking at price movement alone, this indicator factors in:
The stock’s price trend (via EMA)
Volume participation (green vs. red volume) and volume ratio - SMA(volume, 21)/ SMA(volume, 252)
Volatility-adjusted performance (ATR-based scaling)
Comparison with a selected benchmark (e.g., SPX, NDX, sector ETFs)
This results in a normalized and comparative score that helps traders identify outperforming, neutral, and underperforming stocks within a specific market environment.
The NUHI is constructed using the following elements:
1️⃣ Stock Raw Score (Unadjusted Momentum)
The exponential moving average (EMA) of the hlc3 (average of high, low, close) is used to define the price trend.
The difference between the current EMA and the EMA from n bars ago shows whether the stock is gaining or losing momentum.
This difference is divided by the ATR (Average True Range) to adjust for volatility.
2️⃣ Volume Behavior Adjustment
Volume is split into green volume (up candles) and red volume (down candles).
The ratio of green to red volume determines whether buyers or sellers dominate over the selected period (n bars).
If the stock is in an uptrend, green volume is weighted higher; if in a downtrend, red volume is weighted higher.
The stock’s Volume Ratio (short-term SMA divided by long-term SMA) is adjusted based on this weight.
3️⃣ Benchmark Comparison
A similar Raw Score calculation is performed on the selected benchmark (SPX, NDX, or sector ETF).
Benchmark price movements, volume behavior, and ATR adjustments mirror the stock’s calculations.
This provides a reference point for evaluating the stock’s relative strength.
4️⃣ Normalization Process
Both the stock and benchmark raw scores are min-max normalized over the past 252 bars (1-year lookback).
This scales values between 0 and 1, ensuring fair comparisons regardless of absolute price differences.
5️⃣ NUHI Calculation
The final NUHI value is computed using a logarithmic ratio between the normalized stock score and the normalized benchmark score:
This transformation ensures a more symmetrical representation of overperformance and underperformance.
Performance Zones
Strong Outperforming (NUHI between >0.41 and 0.69)
Leading (NUHI between >0.10 and 0.41)
Transitioning Outperformance (NUHI between 0.10 and 0)
Equilibrium (NUHI 0)
Transitioning Underperformance (NUHI between -0.10 and 0)
Lagging (NUHI between < -0.1 and -0.41)
Strong Underperforming (NUHI between< -0.41 and -0.69 )
How to Use NUHI
✅ Identifying Strong Stocks
If NUHI > 0, the stock is outperforming its benchmark.
If NUHI < 0, the stock is underperforming the benchmark.
✅ Trend Confirmation
A steadily rising NUHI and raw score (colored green) suggests sustained strength bullish conditions.
A falling NUHI and raw score (colored orange) indicates weakness and possible rotation into other assets.
✅ Finding Reversals
Bullish Divergence: If NUHI is improving while the stock’s raw score is negative, it may signal a bottoming opportunity.
Bearish Signs: If NUHI is dropping despite price strength, it could hint at underlying weakness.
Why a Stock in a Downtrend Can Have NUHI > 0 (and Vice Versa )
NUHI measures performance relative to both its own history and the benchmark.
A stock’s recent movement is compared to how it usually behaves and how the benchmark is performing.
Example Scenarios:
Stock in a Downtrend but NUHI > 0
The stock may still be in a downtrend (negative raw score), but it’s performing better relative to its past downtrend behavior and better than the benchmark over the same period.
This could mean it’s showing relative strength compared to the broader market or sector.
Stock in an Uptrend but NUHI < 0
Even in a uptrend (positive raw score), the stock might be underperforming relative to its past uptrend behavior and underperforming the benchmark.
What This Means:
NUHI > 0 in a downtrend → The stock is falling less aggressively than usual and/or holding up better than the benchmark.
NUHI < 0 in an uptrend → The stock is gaining less than expected based on its history and/or lagging behind the benchmark.
NUHI helps identify relative strength or weakness .