Adaptive Hurst Exponent Regime FilterAdaptive Hurst Exponent Regime Filter (AHERF)
█ OVERVIEW
The Adaptive Hurst Exponent Regime Filter (AHERF) is designed to identify the prevailing market regime—be it Trending, Mean-Reverting, or a Random Walk/Transition phase. While the Hurst Exponent is a well-known tool for this purpose, AHERF introduces a key innovation: an adaptive threshold . Instead of relying solely on the traditional fixed 0.5 Hurst value, this indicator's threshold dynamically adjusts based on current market volatility, aiming to provide more nuanced and responsive regime classifications.
This tool can assist traders in:
Gauging the current character of the market.
Tailoring trading strategies to the identified regime (e.g., deploying trend-following systems in Trending markets or mean-reversion tactics in Mean-Reverting conditions).
Filtering out trades that may be counterproductive to the dominant market behavior.
█ HOW IT WORKS
The indicator operates through the following key calculations:
1. Hurst Exponent Calculation:
The script computes an approximate Hurst Exponent (H). It utilizes log price changes as its input series.
The `calculateHurst` function implements a variance scaling approach:
It defines three sub-periods based on the main `Hurst Lookback Period`.
It calculates the standard deviation of the input series over these sub-periods.
The Hurst Exponent is then estimated from the slope of a log-log regression between the standard deviations and their respective sub-period lengths. A simplified calculation using the first and last sub-periods is performed: `H = (log(StdDev3) - log(StdDev1)) / (log(N3) - log(N1))`.
Theoretically, a Hurst Exponent:
H > 0.5 suggests persistence (trending behavior).
H < 0.5 suggests anti-persistence (mean-reverting behavior).
H ≈ 0.5 suggests a random walk (unpredictable movement).
Pine Script® Snippet (Hurst Calculation Call):
float logPriceChange = math.log(close) - math.log(close );
// ... ensure logPriceChange is not na on first bar ...
float hurstValue = calculateHurst(logPriceChange, hurstLookbackInput);
2. Volatility Proxy Calculation:
To enable the adaptive nature of the threshold, a volatility proxy is calculated.
Users can select the `Volatility Metric` to be either:
Average True Range (ATR), normalized by the closing price.
Standard Deviation (StdDev) of simple price returns.
This proxy quantifies the current degree of price activity or fluctuation in the market.
Pine Script® Snippet (Volatility Proxy Call):
float volatilityProxy = getVolatilityProxy(volatilityMetricInput, volatilityLookbackInput);
3. Adaptive Threshold Calculation:
This is the core of AHERF's adaptability. Instead of a static 0.5 line as the sole determinant, the script computes a dynamic threshold.
The adaptive threshold is calculated as: `0.5 + (Threshold Sensitivity * Volatility Proxy)`.
This means the threshold starts at the baseline 0.5 level and then adjusts upwards or downwards based on the current `volatilityProxy` scaled by the `Threshold Sensitivity (k)` input.
Pine Script® Snippet (Adaptive Threshold Calculation):
float adaptiveThreshold = 0.5 + sensitivityInput * nz(volatilityProxy, 0.0);
4. Regime Identification:
The prevailing market regime is determined by comparing the `hurstValue` to this `adaptiveThreshold`, incorporating a `Threshold Buffer` to reduce noise and clearly delineate zones:
Trending: `hurstValue > adaptiveThreshold + bufferInput`
Mean-Reverting: `hurstValue < adaptiveThreshold - bufferInput`
Random/Transition: Otherwise (Hurst value is within the buffer zone around the adaptive threshold).
Pine Script® Snippet (Regime Determination Logic):
if not na(hurstValue) and not na(adaptiveThreshold)
if hurstValue > adaptiveThreshold + bufferInput
currentRegimeColor := TRENDING_COLOR
regimeText := "Trending"
else if hurstValue < adaptiveThreshold - bufferInput
currentRegimeColor := MEAN_REVERTING_COLOR
regimeText := "Mean-Reverting"
// else remains Random/Transition
█ HOW TO USE IT
Interpreting the Visuals:
Observe the plotted `Hurst Exponent (H)` line (White) relative to the `Adaptive Threshold` line (Orange).
The background color provides an immediate indication of the current regime: Green for Trending, Red for Mean-Reverting, and Gray for Random/Transition.
The fixed `0.5 Level` (Dashed Gray) is plotted for reference against traditional Hurst interpretation.
Labels "T", "M", and "R" appear below bars to signal new entries into Trending, Mean-Reverting, or Random/Transition regimes, respectively.
Inputs Customization:
Hurst Exponent Calculation
Hurst Lookback Period: Defines the number of bars used for the Hurst Exponent calculation. Longer periods generally yield smoother Hurst values, reflecting longer-term market memory. Shorter periods are more responsive.
Adaptive Threshold Settings
Volatility Metric: Choose "ATR" or "StdDev" to drive the adaptive threshold. Experiment to see which best suits the asset.
Volatility Lookback: The lookback period for the selected volatility metric.
Threshold Sensitivity (k): A crucial multiplier determining how strongly volatility influences the adaptive threshold. Higher values mean volatility has a greater impact, potentially widening or shifting the regime bands more significantly.
Threshold Buffer: Creates a neutral zone around the adaptive threshold. This helps prevent overly frequent regime shifts due_to minor Hurst fluctuations.
█ ORIGINALITY AND USEFULNESS
The AHERF indicator distinguishes itself by:
Implementing an adaptive threshold mechanism for Hurst Exponent analysis. This threshold dynamically responds to changes in market volatility, offering a more flexible approach than a fixed 0.5 reference, potentially leading to more contextually relevant regime detection.
Providing clear, at-a-glance visualization of market regimes through background coloring and distinct plot shapes.
Offering user-configurable parameters for both the Hurst calculation and the adaptive threshold components, allowing for tuning across various assets and timeframes.
Traders can leverage AHERF to better align their chosen strategies with the prevailing market character, potentially enhancing trade filtering and decision-making processes.
█ VISUALIZATION
The indicator plots the following in a separate pane:
Hurst Exponent (H): A white line representing the calculated Hurst value.
Adaptive Threshold: An orange line representing the dynamic threshold.
Fixed 0.5 Level: A dashed gray horizontal line for traditional Hurst reference.
Background Color: Changes based on the identified regime:
Green: Trending regime.
Red: Mean-Reverting regime.
Gray: Random/Transition regime.
Regime Entry Shapes: Plotted below the price bars (forced overlay for visibility):
"T" (Green Label): Signals entry into a Trending regime.
"M" (Teal Label): Signals entry into a Mean-Reverting regime.
"R" (Cyan Label): Signals entry into a Random/Transition regime.
█ ALERTS
The script provides alert conditions for changes in the market regime:
Regime Shift to Trending: Triggers when the Hurst Exponent crosses above the adaptive threshold into a Trending state.
Regime Shift to Mean-Reverting: Triggers when the Hurst Exponent crosses below the adaptive threshold into a Mean-Reverting state.
Regime Shift to Random/Transition: Triggers when the Hurst Exponent enters the Random/Transition zone around the adaptive threshold.
These can be configured directly from the TradingView alerts panel.
█ NOTES & DISCLAIMERS
The Hurst Exponent calculation is an approximation; various methods exist, each with its nuances.
The performance and relevance of the identified regimes can differ across financial instruments and timeframes. Parameter tuning is recommended.
This indicator is intended as a decision-support tool and should not be the sole basis for trading decisions. Always integrate its signals within a broader analytical framework.
Past performance of any trading system or indicator, including those derived from AHERF, is not indicative of future results.
█ CREDITS & LICENSE
Author: mastertop ( Twitter: x.com )
Color Palette: Uses the `MaterialPalette` library by MASTERTOP_ASTRAY.
This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
© mastertop, 2025
Volatilità
Spazz Elite Top SignalsBreadth trust x VIX divergence top signal generator
Core Components
1. Breadth Indicators
The indicator collects data on the percentage of stocks trading above various moving averages:
2. VIX Analysis
The indicator incorporates the VIX (Volatility Index) to detect complacency and potential volatility divergences:
Auto-detects the appropriate volatility index for the instrument (VIX for S&P 500, VXN for Nasdaq, etc.)
Identifies when VIX is unusually low (market complacency)
Detects when price makes new highs but VIX isn't making new lows (bearish divergence)
Monitors for VIX bottoming patterns while prices continue to rise
POINT SYSTEM FOR SIGNAL GENERATION LOGIC
Signal Generation Logic
Score Accumulation: Points accumulate over time as warning conditions appear
Signal Thresholds:
Strong Signal: Score reaches 10 points (moderately concerning)
Extreme Signal: Score reaches 15 points (significantly concerning)
Signal Suppression:
Prevents signal clustering with a 5-bar minimum between signals
Resets score entirely after 120 bars with no new warning conditions
Signal Display:
Strong Signal: Orange arrow above the price bar
Extreme Signal: Red arrow above the price bar
EMA ± ATR Combined Finest# EMA ± ATR Combined Finest — Dynamic Trend Bands
🇹🇷 **Kısa Açıklama (Türkçe):**
Bu gösterge, EMA ve ATR'yi birleştirerek fiyatın trend yönünü ve volatiliteye göre destek/direnç bölgelerini görsel olarak sunar. Long ve Short bantları ayrı ayrı ayarlanabilir.
---
📷 **Live Preview:**
! (i.imgur.com)
*BTC/USDT 5-min chart example*
---
## 🔍 Features:
- **EMA + ATR (Long Band)**: Acts as dynamic resistance during uptrends.
- **EMA - ATR (Short Band)**: Acts as dynamic support during downtrends.
- Independent controls for each band (periods, ATR multiplier, visibility).
- Clean and color-coded plotting (Blue = Long / Red = Short).
---
## 🧠 Strategy Ideas:
- **Trend Confirmation**: Use bands to confirm the direction of the trend.
- **Volatility Expansion**: Watch for band widening to signal breakout potential.
- **Stop/Target Zones**: Use bands as trailing stop loss or dynamic take profit areas.
---
## ⚙️ Suggested Settings:
| Use Case | EMA Period | ATR Period | Multiplier |
|----------------|------------|------------|------------|
| Scalping | 5 | 2 | 1.2 |
| Swing Trading | 20 | 14 | 1.5 |
| Volatile Assets| 9 | 5 | 2.0 |
---
## ❓ FAQ:
**Q: Does this indicator give buy/sell signals?**
A: No. It’s a visual tool designed to complement your own strategy.
**Q: What assets/timeframes does it work on?**
A: It works across all asset classes (crypto, stocks, forex) and any timeframe.
**Q: Can I use only one side (Long or Short)?**
A: Yes. Each leg is independently configurable and can be turned off.
---
## 💡 Open-source and customizable.
Feel free to fork, modify, and improve it for your own needs.
📩 Feedback or questions? Reach out via TradingView DM: `@quabermay`
ATS DELTABAR V5.0This indicator is called DeltaBar, which reflects the actual momentum of buyers and sellers while filtering out market noise. It helps you identify the true starting and ending points of trends.
By analyzing the Delta Net Volume chart, you can anticipate shifts in market sentiment and gain a strategic edge. For instance:
Resonance Breakouts – When price and DeltaBar break key levels simultaneously
Divergences – Visible and hidden bullish/bearish divergences signaling potential reversals
DeltaBar provides scientific, high-precision trading signals, turning raw data into actionable intelligence for smarter decisions.
这个指标叫deltabar,反映了买卖双方的实际力量的走势图,过滤了市场噪音,帮助您识别真正的趋势起点与终点。
通过观察Delta净量走势图,您可以提前感知市场情绪的变化,抢占先机,比如价格和deltabar形成共振突破,形成了顶底背离和隐性的顶底背离。
Delta净量走势图都能为您提供更科学、更精准的交易策略。
Big Money TrackerOI-Anchored VWAP: Big Money Position Tracker
Understanding VWAP in Big Money Trading
Volume Weighted Average Price (VWAP) is the benchmark most widely used by institutions to assess their execution quality and market timing. It represents the average price a security has traded at throughout the day, weighted by volume.
Why Institutions Care About VWAP:
Portfolio managers often mandate trades to be executed at or better than VWAP
Large orders are broken down and executed around VWAP to minimize market impact
Trading desks use VWAP as a neutral price to assess if they're buying too high or selling too low
Algorithmic trading systems use VWAP as a key reference for order execution
The OI-VWAP Edge
This indicator takes Big Money VWAP trading to the next level by anchoring VWAP calculations to significant Open Interest (OI) changes. This helps identify not just where institutions are trading, but where they're establishing significant positions in the crypto markets.
Key Features:
Dynamic OI-based VWAP anchoring that identifies where large positions are established
Previous VWAP level tracking to monitor historical Big Money interest points
Smart sweep detection system for both current and previous VWAP levels
Standard deviation bands for volatility context
What Makes This Indicator Unique:
Uses aggregated Open Interest data from major exchanges (Binance, BitMEX, Bybit, Kraken)
Automatically detects significant OI increases to anchor VWAP levels
Tracks both current and previous Big Money reference prices
Identifies potential stop runs and liquidity sweeps
Trading Applications:
The indicator helps identify where large positions are established and how they might influence price action:
Defense Zones: When price approaches a VWAP level with high OI, institutions often defend their positions
Liquidation Levels: Previous VWAP levels can become liquidation targets for trapped positions
Stop Runs: Sweep detection helps identify when large players might be hunting stops or creating liquidity
Mean Reversion: SD bands help identify potential reversal zones around Big Money average prices
Best Practices:
Look for price reaction at current VWAP when OI is increasing
Monitor sweeps of previous VWAP levels for potential reversals
Use SD bands to gauge volatility expansion/contraction around Big Money positions
Pay attention to failed sweeps as they often indicate strong position defense
Trading Scenarios:
// Bullish Position Defense:
// 1. High OI increase creates new VWAP (Big Money entry)
// 2. Price tests VWAP from above (retest of entry)
// 3. Failed bearish sweeps = shorts trapped
// 4. Strong defense + trapped shorts = potential squeeze
// Bearish Liquidation:
// 1. Previous VWAP level above current price
// 2. High OI trapped at higher prices
// 3. Price sweeps above then fails = more trapped longs
// 4. Break below = potential cascading liquidations
Ralfetto: Head and Shoulders TargetsUser Guide: Ralfetto - Head and Shoulders Targets
📌 Overview
The Ralfetto: Head and Shoulders Targets indicator is a manual pattern mapping tool that allows traders to visually define a Head and Shoulders (H&S) formation on the chart and automatically calculates three price targets (TP1, TP2, TP3) based on the structure. The tool draws lines between the key points, projects target levels, and presents data in a clean on-chart table.
🧱 How It Works
You manually input 7 points representing the Head and Shoulders structure:
Left Shoulder Start & Peak
Head Peak
Right Shoulder Peak & End
Two Neckline Points (Left and Right)
The indicator then:
Draws the H&S shape on the chart.
Projects three target prices.
Displays a table showing TP values and % returns.
Plots those levels on the price scale.
⚙️ Inputs and Parameters
🔷 Display Settings
Line Color – Sets color for H&S lines.
TP Color – Sets color for target projection lines.
Table Background/Text Colors – Customize the table style.
📍 H&S Coordinates (Manual Input)
# Description Field Names
1 Left Shoulder Start 1. Left Shoulder Start
2 Left Shoulder Peak 2. Left Shoulder Peak
3 Neckline Left (Start of Head) 3. Neckline Left
4 Head Peak 4. Head Peak
5 Neckline Right (Start of RS) 5. Neckline Right
6 Right Shoulder Peak 6. Right Shoulder Peak
7 Right Shoulder End 7. Right Shoulder End
All prices must be precise, and timestamps must match chart candles exactly (e.g., using the TradingView date/time picker).
📈 What’s Displayed on the Chart
Head and Shoulders Shape
A series of connected lines between your inputs form the pattern.
Neckline (Extended Line)
Drawn between Point 3 and Point 5 and projected both directions.
Target Lines (TP1, TP2, TP3)
Based on shoulder and head heights, projected downward.
Target Price Table (Bottom Right):
less
Copy
Edit
-------------------------------------
| Ralfetto: Head and Shoulders |
-------------------------------------
| Label | Projection | Return % |
-------------------------------------
| Neck Line | | |
| TP1 | | |
| TP2 | | |
| TP3 | | |
📊 TP Logic (Target Prices)
TP1 & TP2
Based on the smaller and larger of the left/right shoulder height from the neckline.
TP3
Based on the head’s height from the midpoint of the neckline.
Each is plotted as a dashed horizontal line and shown in the table with return percentages based on the neckline price.
🪛 How to Use (Step-by-Step)
Open the Script on your TradingView chart.
Go to the Settings (gear icon) → Input tab.
Enter the 7 coordinates (price + time) to define the H&S manually.
Tip: Use vertical lines or crosshairs to get exact values.
Customize colors or table display as needed.
Click OK.
The pattern shape, TP levels, and data table will appear.
⚠️ Notes & Tips
This is a manual drawing tool; it does not detect H&S patterns automatically.
Ideal for technical traders who want to evaluate H&S structures visually.
Works on any asset (stocks, crypto, forex) and any timeframe.
Inputs must be accurate, or the pattern may appear distorted.
You can duplicate the indicator and track multiple patterns on one chart by changing input groups.
👨🏫 Best For
Intermediate to advanced traders.
Traders with a technical pattern-based approach.
Chartists who manually analyze and trade H&S patterns.
BTC Breakout + EMA + Volume + ATR Filter Indicator
I have tried to incorporate a few common filters in order to produce trade entries. The purpose is to automate trading and have the position flip long/short in order to compound the initial equity.
I have only geared this towards BTC and therefore do not know how it will perform on other assets. All variables are customisable. I have set the defaults to what I prefer based on the backtesting I was able to do on the 5 minute timeframe.
I planned on using this to scalp intraday, however, when I adjusted variables, it seems to filter out a lot of entries and despite being used on the 5 minute timeframe it averages less than a trade everyday.
Please feel free to give feedback. I'm always happy to improve and learn. Thanks
Kozakinvest AI Indicator 2.0In indicator:
✅ Risk and profit display
✅ Volatility analysis
✅ Automatic trend detection (Long/Short)
✅ Trade filter
✅ Accurate volume indicator
SuperTrend: Silent Shadow 🕶️ SuperTrend: Silent Shadow — Operate in trend. Vanish in noise.
Overview
SuperTrend: Silent Shadow is an enhanced trend-following system designed for traders who demand clarity in volatile markets and silence during indecision.
It combines classic Supertrend logic with a proprietary ShadowTrail engine and an adaptive Silence Protocol to filter noise and highlight only the cleanest signals.
Key Features
✅ Core Supertrend Logic
Built on Average True Range (ATR), this trend engine identifies directional bias with visual clarity. Lines adjust dynamically with price action and flip when meaningful reversals occur.
✅ ShadowTrail: Stepped Counter-Barrier
ShadowTrail doesn’t predict reversals — it reinforces structure.
When price is trending, ShadowTrail forms a stepped ceiling in downtrends and a stepped floor in uptrends. This visual containment zone helps define the edges of price behavior and offers a clear visual anchor for stop-loss placement and trade containment.
✅ Silence Protocol: Adaptive Noise Filtering
During low-volatility zones, the system enters “stealth mode”:
• Trend lines turn white to indicate reduced signal quality
• Fill disappears to reduce distraction
This helps avoid choppy entries and keeps your focus sharp when the market isn’t.
✅ Visual Support & Stop-Loss Utility
When trendlines flatten or pause, they naturally highlight price memory zones. These flat sections often align with:
• Logical stop-loss levels
• Prior support/resistance areas
• Zones of reduced volatility where price recharges or rejects
✅ Custom Styling
Full control over line colors, width, transparency, fill visibility, and silence behavior. Tailor it to your strategy and visual preferences.
How to Use
• Use Supertrend color to determine bias — flips mark momentum shifts
• ShadowTrail mirrors the primary trend as a structural ceiling/floor
• Use flat segments of both lines to identify consolidation zones or place stops
• White lines = low-quality signal → stand by
• Combine with RSI, volume, divergence, or your favorite tools for confirmation
Recommended For:
• Traders seeking clearer trend signals
• Avoiding false entries in sideways or silent markets
• Identifying key support/resistance visually
• Structuring stops around real market containment levels
• Scalping, swing, or position trading with adaptive clarity
Built by Sherlock Macgyver
Forged for precision. Designed for silence.
When the market speaks, you listen.
When it doesn’t — you wait in the shadows.
LULD Bands & Trading Halt Detector [Volume Vigilante]📖 LULD Bands & Trading Halt Detector
This advanced tool visualizes official Limit Up / Limit Down (LULD) price bands and detects regulatory trading halts and resumptions based on SEC and NASDAQ rules. It is engineered for high accuracy by anchoring all calculations to the 1-minute timeframe, ensuring reliable signals across any chart resolution.
📌 What Does This Script Do?
- Draws real-time LULD price band estimations and optional buffer (caution) zones directly on the chart.
- Detects trading halt resumptions by monitoring time gaps between candles and other regulatory criteria. (Note: Due to Pine Script limitations, halts cannot be detected in real-time, only resumptions after they occur.)
- Triggers real-time alerts for:
- Trading Resumptions (Limit Up & Limit Down)
- LULD Zone Entries (Caution Zone)
- Band Breaches (Limit Up and Limit Down)
- Plots historical halt resumption markers to analyse past events.
📐 How It Works:
- Implements official SEC/NASDAQ LULD rules for Tier 1 and Tier 2 securities.
- Applies special band adjustments for the final 25 minutes of trading (after 3:35 PM ET).
- Anchors all logic to the 1-minute timeframe for precise calculations, even on higher timeframe charts.
- Includes adjustable volume and volatility filters to eliminate false signals (ghost halts) on low-- liquidity assets, especially Tier 2 securities when TradingView fails to print candles.
⚙️ How to Use It:
1.) Apply the script to any asset or timeframe.
2.) Adjust Volume and Volatility Filters to reduce noise. (Recommended: 500,000+ volume, 10%+ volatility.)
3.) Enable or disable visual components like bands, buffer zones, and halt resumption labels.
4.) Configure alerts directly from the script settings panel.
5.) Apply alerts to individual assets via "Add Alert On..." or to entire watchlists using "Add Alert on the List."
🧩 What Makes This Script Unique?
- True 1-Minute Anchored Calculations: Ensures alerts and visuals match official trading halt criteria regardless of chart timeframe.
- Customisable Buffered Zones: Visualise proximity to regulatory price limits and avoid volatility traps.
- Combines halt resumption detection, limit up/down band visualisation, and real-time alerts into one clean, modular tool.
📚 Disclaimer:
This script is for educational purposes only and does not constitute financial advice. Use at your own discretion and consult a licensed financial advisor before making trading decisions based on it.
Official Resources:
- NASDAQ LULD Regulations (FAQ):
www.nasdaqtrader.com
Current Nasdaq Trading Halts:
www.nasdaqtrader.com
Melon_Mask_Signal v3.9📈 Melon_Mask_Signal v3.9 – Smart Buy/Sell Logic with OBV, RSI & Exhaustion Triggers
Melon_Mask_Signal v3.9 is a refined technical trading indicator designed for high-probability entry and exit signals in both trending and ranging markets.
This version integrates classic volume and momentum principles with intelligent cooldowns and volatility triggers, making it ideal for swing trading on any time frame.
🔍 Core Features
Buy Conditions
✅ A buy signal is triggered when one or more of the following conditions are met:
OBV drops below its Bollinger Band lower bound, with RSI < 35 and BB breakdown.
Recovery setups: RSI between 60~75, OBV above midline, and price above EMA20/EMA50.
Pullback bounce: price reclaims EMA20 with volume.
Breakout: price breaks recent highs with 2x volume.
RSI Double Bottom + OBV Divergence pattern.
Volatility squeeze breakout from BB with strong volume.
New: RSI bounce from oversold (<30) + OBV rising + close above EMA20 (🟣 label).
⚠️ A buy cooldown is enforced: no BUY signals are allowed within 3 bars after any SELL signal to prevent whipsaw re-entries.
Sell Conditions
🚨 Sell signals appear under one or more of the following:
RSI > 67 and OBV near Bollinger upper bound.
Momentum reversal: RSI down + OBV falling + red candle (⛔ label).
Bearish exhaustion: sharp volume spike + price weakening >0.3% (📉 label).
Top Detection: lower high structure + OBV peak + high volume with loss candle (⛰️ label).
📉 Risk Management
Forced Exit (⚠️): If OBV crashes below lower band AND RSI drops below 35, the position is exited regardless of gain/loss.
No re-entry allowed within 3 bars after a SELL.
Win/Loss labels printed directly (✅ WIN / ❌ LOSE) with automatic trade status tracking.
🧠 Visual Cues
Labels: 🟢 BUY, 🔴 SELL, ⛔, 📉, ⛰️, 🎯, 🔁, 🟣, 🚀
Plot: EMA20/50/100, Bollinger Bands (price and OBV)
Background shaded during active trade
🧪 Performance
Tested and tuned across 5m ~ 4h charts, the indicator has consistently achieved >70% signal accuracy when paired with disciplined trade management and proper risk control.
📌 Notes
This script is fully commented and modular, making it easy to customize entry/exit logic, stop loss ideas, or integrate with alert systems.
ATR ComboA Collection of three ATRs.
The whole idea of this indicator is to easily visualise the relationship of volatility to the current price action.
The default settings are:
5 Moving Average (Pink)
50 Moving Average (Blue)
1000 Moving Average (Yellow)
Using the default settings, the Yellow line represents the larger-scale volatility average.
the Blue line represents more recent volatility and the Pink lien represents the very recent average.
Using this indicator is possible in a number of ways:
If volatility is high and directional, you will see a sharp increase in the Pink line.
If volatility is high and choppy, the Pink line will be well above the Blue line and will oscillate up and down.
If volatility is starting to cool down, the Pink line will approach the Blue and Yellow lines.
Disparity Index with Volatility ZonesDisparity Index with Volatility Zones
is a momentum oscillator that measures the percentage difference between the current price and its simple moving average (SMA). This allows traders to identify overbought/oversold conditions, assess momentum strength, and detect potential trend reversals or continuations.
🔍 Core Concept:
The Disparity Index (DI) is calculated as:
DI = 100 × (Price − SMA) / SMA
A positive DI indicates the price is trading above its moving average (potential bullish sentiment), while a negative DI suggests the price is below the average (potential bearish sentiment).
This version of the Disparity Index introduces a dual-zone volatility framework, offering deeper insight into the market's current state.
🧠 What Makes This Version Unique?
1. High Volatility Zones
When DI crosses above +1.0% or below –1.0%, it often indicates the start or continuation of a strong trend.
Sustained readings beyond these thresholds typically align with trending phases, offering opportunities for momentum-based entries.
A reversal back within ±1.0% after exceeding these levels can suggest a shift in momentum — similar to how RSI exits the overbought/oversold zones before reversals.
These thresholds act as dynamic markers for breakout confirmation and potential trend exhaustion.
2. Low Volatility Zones
DI values between –0.5% and +0.5% define the low-volatility zone, shaded for visual clarity.
This area typically indicates market indecision, sideways price action, or consolidation.
Trading within this range may favor range-bound or mean-reversion strategies, as trend momentum is likely limited.
The logic is similar to interpreting a flat ADX, tight Bollinger Bands, or contracting Keltner Channels — all suggesting consolidation.
⚙️ Features:
Customizable moving average length and input source
Adjustable thresholds for overbought/oversold and low-volatility zones
Optional visual fill between low-volatility bounds
Clean and minimal chart footprint (non-essential plots hidden by default)
📈 How to Use:
1. Trend Confirmation:
A break above +1.0% can be used as a bullish continuation signal.
A break below –1.0% may confirm bearish strength.
Long periods above/below these thresholds support trend-following entries.
2. Reversal Detection:
If DI returns below +1.0% after exceeding it, bullish momentum may be fading.
If DI rises above –1.0% after falling below, bearish pressure may be weakening.
These shifts resemble overbought/oversold transitions in oscillators like RSI or Stochastic, and can be paired with divergence, volume, or price structure analysis for higher reliability.
3. Sideways Market Detection:
DI values within ±0.5% indicate low volatility or a non-trending environment.
Traders may avoid breakout entries during these periods or apply range-trading tactics instead.
Observing transitions out of the low-volatility zone can help anticipate breakouts.
4. Combine with Other Indicators:
DI signals can be enhanced using tools like MACD, Volume Oscillators, or Moving Averages.
For example, a DI breakout beyond ±1.0% supported by a MACD crossover or volume spike can help validate trend initiation.
This indicator is especially powerful when paired with Bollinger Bands:
A simultaneous price breakout from the Bollinger Band and DI moving beyond ±1.0% can help identify early trend inflection points.
This combination supports entering positions early in a developing trend, improving the efficiency of trend-following strategies and enhancing decision-making precision.
It also helps filter false breakouts when DI fails to confirm the move outside the band.
This indicator is designed for educational and analytical purposes and works across all timeframes and asset classes.
It is particularly useful for traders seeking a clear framework to identify momentum strength, filter sideways markets, and improve entry timing within a larger trading system.
Volume candle intraday 90% valid - with alertThe candle with the highest volume of the day and that creates a new daily high or low.
- Only usable on M15 timeframes;
- You can set a range of bars (from the beginning of the day) to ignore;
- "90% valid" means a candle with volume greater than 90% of the last candle with the highest volume of the day (in the script you can change the percentage of valid volumes to define the candle volume, replacing all the "90" with the desired percentage);
- Long volumes are compared to longs and short volumes are compared to shorts;
- Script created with ChatGpt;
The psychology behind this pattern is the following: on the daily high/low, a lot of volumes will enter in a short time, either by absorption: buyers or sellers enter en masse following the trend when it is too late; or by exhaustion: buyers or sellers who entered en masse and late have no more strength to continue pushing the price, they cause a volume peak to buy/sell as much as they could, then their enemies take over forming a high/low).
Happy trading everyone! :)
###################################################################################
La candela con il volume più alto della giornata e che crea un nuovo massimo o minimo giornaliero.
- Utilizzabile solo su timeframe M15;
- Si può impostare un range di barre(da inizio giornata) da ignorare;
- "90% valida" sta per candela con volume superiore del 90% dell'ultima candela con volume più alto della giornata(nello script si può cambiare percentuale di volumi validi per definire candela volume, sostituendo tutti i "90" con la percentuale desiderata);
- I volumi long vengono confrontati con i long e i volumi short con gli short;
- Script creato con ChatGpt;
La psicologia dietro questo pattern è la seguente: sul massimo/minimo giornaliero entreranno tanti volumi in breve tempo, sia per assorbimento: buyers o sellers entrano in massa seguendo il trend quando è troppo tardi; sia per esaurimento: buyers o sellers entrati in massa e in ritardo non hanno più forza per continuare a spingere il prezzo, causano un picco volumetrico per comprare/vendere più che potevano, quindi i loro nemici prendono il sopravvento formando un massimo/minimo).
Buon trading a tutti! :)
VOID Directional Spike MarkerThis indicator highlights significant directional moves on the $VOID chart (NYSE USI:UVOL − DERIBIT:DVOL ) using simple visual cues:
🔼 Green up arrows when the candle closes significantly higher than it opens
🔽 Red down arrows when the candle closes significantly lower than it opens
Threshold is fully customizable (default: 15,000,000)
Ideal for spotting explosive internal shifts on the 5-minute chart during key market moments
Alerts included for both up and down spikes
Use this to track aggressive buying or selling pressure across NYSE internals and time your entries on NQ, ES, or YM with stronger conviction.
Zen FDAX Session📝 Description
OVERVIEW
The Zen FDAX Session indicator highlights periods outside the regular trading hours of the FDAX (DAX Futures) on the Xetra exchange. It shades the chart background during non-trading hours, aiding traders in distinguishing active market periods from inactive ones.
FUNCTIONALITY
Customizable Trading Hours: Users can define the session's start and end times in UTC, allowing flexibility to match personal trading schedules or account for daylight saving changes.
Visual Clarity: The indicator applies a subtle background color to non-trading hours, ensuring clear demarcation without obscuring price data.
Time Zone Awareness: Designed with UTC inputs to maintain consistency across different user time zones.
USAGE
Add the Indicator: Apply the "Zen FDAX Session" indicator to your chart.
Set Trading Hours: Input your desired session start and end times in UTC.
Interpret the Shading: Areas with shaded backgrounds represent times outside your defined trading session.
Note: This indicator does not generate buy/sell signals but serves as a visual aid to identify trading sessions.
Bollinger Bands x3 with Fill + HMA + Dynamic Width Colors📄 Description for TradingView Publication:
This is an enhanced and flexible version of the classic Bollinger Bands indicator, designed for traders who want deeper insight into market volatility and price structure.
🔹 Key Features:
✅ Triple Bollinger Bands
Displays 3 standard deviation bands: ±1σ, ±2σ, and ±3σ
Customize each deviation level independently
✅ Dynamic Band Width Coloring
Band lines change color when the distance between upper and lower bands narrows
Helps identify volatility contractions and potential squeeze setups
✅ Dynamic Fill Coloring
Fill between bands also changes color when the bands narrow
Visually highlights transitions from high to low volatility conditions
✅ Multiple Moving Average Options
Choose from:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Smoothed Moving Average (SMMA / RMA)
Weighted Moving Average (WMA)
Volume-Weighted Moving Average (VWMA)
Hull Moving Average (HMA) for a smoother, more responsive central tendency
✅ Customization Options
Show/hide each band individually
Adjust standard deviation multipliers
Toggle fills between bands
Customize fill colors for normal and narrowing conditions
Offset option to shift all plots forward or backward
💡 Use Case Tips:
When all bands begin narrowing, it could signal an upcoming volatility expansion or breakout.
Use the ±3σ bands to gauge extreme price behavior, and ±1σ for short-term mean reversion.
Combine with price action, momentum, or volume for breakout confirmation.
🧰 Recommended For:
Volatility traders
Mean reversion strategies
Breakout traders
Trend confirmation and structure analysis
Enhanced Volume Trend Indicator with BB SqueezeEnhanced Volume Trend Indicator with BB Squeeze: Comprehensive Explanation
The visualization system allows traders to quickly scan multiple securities to identify high-probability setups without detailed analysis of each chart. The progression from squeeze to breakout, supported by volume trend confirmation, offers a systematic approach to identifying trading opportunities.
The script combines multiple technical analysis approaches into a comprehensive dashboard that helps traders make informed decisions by identifying high-probability setups while filtering out noise through its sophisticated confirmation requirements. It combines multiple technical analysis approaches into an integrated visual system that helps traders identify potential trading opportunities while filtering out false signals.
Core Features
1. Volume Analysis Dashboard
The indicator displays various volume-related metrics in customizable tables:
AVOL (After Hours + Pre-Market Volume): Shows extended hours volume as a percentage of the 21-day average volume with color coding for buying/selling pressure. Green indicates buying pressure and red indicates selling pressure.
Volume Metrics: Includes regular volume (VOL), dollar volume ($VOL), relative volume compared to 21-day average (RVOL), and relative volume compared to 90-day average (RVOL90D).
Pre-Market Data: Optional display of pre-market volume (PVOL), pre-market dollar volume (P$VOL), pre-market relative volume (PRVOL), and pre-market price change percentage (PCHG%).
2. Enhanced Volume Trend (VTR) Analysis
The Volume Trend indicator uses adaptive analysis to evaluate buying and selling pressure, combining multiple factors:
MACD (Moving Average Convergence Divergence) components
Volume-to-SMA (Simple Moving Average) ratio
Price direction and market conditions
Volume change rates and momentum
EMA (Exponential Moving Average) alignment and crossovers
Volatility filtering
VTR Visual Indicators
The VTR score ranges from 0-100, with values above 50 indicating bullish conditions and below 50 indicating bearish conditions. This is visually represented by colored circles:
"●" (Filled Circle):
Green: Strong bullish trend (VTR ≥ 80)
Red: Strong bearish trend (VTR ≤ 20)
"◯" (Hollow Circle):
Green: Moderate bullish trend (VTR 65-79)
Red: Moderate bearish trend (VTR 21-35)
"·" (Small Dot):
Green: Weak bullish trend (VTR 55-64)
Red: Weak bearish trend (VTR 36-45)
"○" (Medium Hollow Circle): Neutral conditions (VTR 46-54), shown in gray
In "Both" display mode, the VTR shows both the numerical score (0-100) alongside the appropriate circle symbol.
Enhanced VTR Settings
The Enhanced Volume Trend component offers several advanced customization options:
Adaptive Volume Analysis (volTrendAdaptive):
When enabled, dynamically adjusts volume thresholds based on recent market volatility
Higher volatility periods require proportionally higher volume to generate significant signals
Helps prevent false signals during highly volatile markets
Keep enabled for most trading conditions, especially in volatile markets
Speed of Change Weight (volTrendSpeedWeight, range 0-1):
Controls emphasis on volume acceleration/deceleration rather than absolute levels
Higher values (0.7-1.0): More responsive to new volume trends, better for momentum trading
Lower values (0.2-0.5): Less responsive, better for trend following
Helps identify early volume trends before they fully develop
Momentum Period (volTrendMomentumPeriod, range 2-10):
Defines lookback period for volume change rate calculations
Lower values (2-3): More responsive to recent changes, better for short timeframes
Higher values (7-10): Smoother, better for daily/weekly charts
Directly affects how quickly the indicator responds to new volume patterns
Volatility Filter (volTrendVolatilityFilter):
Adjusts significance of volume by factoring in current price volatility
High volume during high volatility receives less weight
High volume during low volatility receives more weight
Helps distinguish between genuine volume-driven moves and volatility-driven moves
EMA Alignment Weight (volTrendEmaWeight, range 0-1):
Controls importance of EMA alignments in final VTR calculation
Analyzes multiple EMA relationships (5, 10, 21 period)
Higher values (0.7-1.0): Greater emphasis on trend structure
Lower values (0.2-0.5): More focus on pure volume patterns
Display Mode (volTrendDisplayMode):
"Value": Shows only numerical score (0-100)
"Strength": Shows only symbolic representation
"Both": Shows numerical score and symbol together
3. Bollinger Band Squeeze Detection (SQZ)
The BB Squeeze indicator identifies periods of low volatility when Bollinger Bands contract inside Keltner Channels, often preceding significant price movements.
SQZ Visual Indicators
"●" (Filled Circle): Strong squeeze - high probability setup for an impending breakout
Green: Strong squeeze with bullish bias (likely upward breakout)
Red: Strong squeeze with bearish bias (likely downward breakout)
Orange: Strong squeeze with unclear direction
"◯" (Hollow Circle): Moderate squeeze - medium probability setup
Green: With bullish EMA alignment
Red: With bearish EMA alignment
Orange: Without clear directional bias
"-" (Dash): Gray dash indicates no squeeze condition (normal volatility)
The script identifies squeeze conditions through multiple methods:
Bollinger Bands contracting inside Keltner Channels
BB width falling to bottom 20% of recent range (BB width percentile)
Very narrow Keltner Channel (less than 5% of basis price)
Tracking squeeze duration in consecutive bars
Different squeeze strengths are detected:
Strong Squeeze: BB inside KC with tight BB width and narrow KC
Moderate Squeeze: BB inside KC with either tight BB width or narrow KC
No Squeeze: Normal market conditions
4. Breakout Detection System
The script includes two breakout indicators working in sequence:
4.1 Pre-Breakout (PBK) Indicator
Detects potential upcoming breakouts by analyzing multiple factors:
Squeeze conditions lasting 2-3 bars or more
Significant price ranges
Strong volume confirmation
EMA/MACD crossovers
Consistent price direction
PBK Visual Indicators
"●" (Filled Circle): Detected pre-breakout condition
Green: Likely upward breakout (bullish)
Red: Likely downward breakout (bearish)
Orange: Direction not yet clear, but breakout likely
"-" (Dash): Gray dash indicates no pre-breakout condition
The PBK uses sophisticated conditions to reduce false signals including minimum squeeze length, significant price movement, and technical confirmations.
4.2 Breakout (BK) Indicator
Confirms actual breakouts in progress by identifying:
End of squeeze or strong expansion of Bollinger Bands
Volume expansion
Price moving outside Bollinger Bands
EMA crossovers with volume confirmation
MACD crossovers with significant price range
BK Visual Indicators
"●" (Filled Circle): Confirmed breakout in progress
Green: Upward breakout (bullish)
Red: Downward breakout (bearish)
Orange: Unusual breakout pattern without clear direction
"◆" (Diamond): Special breakout conditions (meets some but not all criteria)
"-" (Dash): Gray dash indicates no breakout detected
The BK indicator uses advanced filters for confirmation:
Requires consecutive breakout signals to reduce false positives
Strong volume confirmation requirements (40% above average)
Significant price movement thresholds
Consistency checks between price action and indicators
5. Market Metrics and Analysis
Price Change Percentage (CHG%)
Displays the current percentage change relative to the previous day's close, color-coded green for positive changes and red for negative changes.
Average Daily Range (ADR%)
Calculates the average daily percentage range over a specified period (default 20 days), helping traders gauge volatility and set appropriate price targets.
Average True Range (ATR)
Shows the Average True Range value, a volatility indicator developed by J. Welles Wilder that measures market volatility by decomposing the entire range of an asset price for that period.
Relative Strength Index (RSI)
Displays the standard 14-period RSI, a momentum oscillator that measures the speed and change of price movements on a scale from 0 to 100.
6. External Market Indicators
QQQ Change
Shows the percentage change in the Invesco QQQ Trust (tracking the Nasdaq-100 Index), useful for understanding broader tech market trends.
UVIX Change
Displays the percentage change in UVIX, a volatility index, providing insight into market fear and potential hedging activity.
BTC-USD
Shows the current Bitcoin price from Coinbase, useful for traders monitoring crypto correlation with equities.
Market Breadth (BRD)
Calculates the percentage difference between ATHI.US and ATLO.US (high vs. low securities), indicating overall market direction and strength.
7. Session Analysis and Volume Direction
Session Detection
The script accurately identifies different market sessions:
Pre-market: 4:00 AM to 9:30 AM
Regular market: 9:30 AM to 4:00 PM
After-hours: 4:00 PM to 8:00 PM
Closed: Outside trading hours
This detection works on any timeframe through careful calculation of current time in seconds.
Buy/Sell Volume Direction
The script analyzes buying and selling pressure by:
Counting up volume when close > open
Counting down volume when close < open
Tracking accumulated volume within the day
Calculating intraday pressure (up volume minus down volume)
Enhanced AVOL Calculation
The improved AVOL calculation works in all timeframes by:
Estimating typical pre-market and after-hours volume percentages
Combining yesterday's after-hours with today's pre-market volume
Calculating this as a percentage of the 21-day average volume
Determining buying/selling pressure by analyzing after-hours and pre-market price changes
Color-coding results: green for buying pressure, red for selling pressure
This calculation is particularly valuable because it works consistently across any timeframe.
Customization Options
Display Settings
The dashboard has two customizable tables: Volume Table and Metrics Table, with positions selectable as bottom_left or bottom_right.
All metrics can be individually toggled on/off:
Pre-market data (PVOL, P$VOL, PRVOL, PCHG%)
Volume data (AVOL, RVOL Day, RVOL 90D, Volume, SEED_YASHALGO_NSE_BREADTH:VOLUME )
Price metrics (ADR%, ATR, RSI, Price Change%)
Market indicators (QQQ, UVIX, Breadth, BTC-USD)
Analysis indicators (Volume Trend, BB Squeeze, Pre-Breakout, Breakout)
These toggle options allow traders to customize the dashboard to show only the metrics they find most valuable for their trading style.
Table and Text Customization
The dashboard's appearance can be customized:
Table background color via tableBgColor
Text color (White or Black) via textColorOption
The indicator uses smart formatting for volume and price values, automatically adding appropriate suffixes (K, M, B) for readability.
MACD Configuration for VTR
The Volume Trend calculation incorporates MACD with customizable parameters:
Fast Length: Controls the period for the fast EMA (default 3)
Slow Length: Controls the period for the slow EMA (default 9)
Signal Length: Controls the period for the signal line EMA (default 5)
MACD Weight: Controls how much influence MACD has on the volume trend score (default 0.3)
These settings allow traders to fine-tune how momentum is factored into the volume trend analysis.
Bollinger Bands and Keltner Channel Settings
The Bollinger Bands and Keltner Channels used for squeeze detection have preset (hidden) parameters:
BB Length: 20 periods
BB Multiplier: 2.0 standard deviations
Keltner Length: 20 periods
Keltner Multiplier: 1.5 ATR
These settings follow standard practice for squeeze detection while maintaining simplicity in the user interface.
Practical Trading Applications
Complete Trading Strategies
1. Squeeze Breakout Strategy
This strategy combines multiple components of the indicator:
Wait for a strong squeeze (SQZ showing ●)
Look for pre-breakout confirmation (PBK showing ● in green or red)
Enter when breakout is confirmed (BK showing ● in same direction)
Use VTR to confirm volume supports the move (VTR ≥ 65 for bullish or ≤ 35 for bearish)
Set profit targets based on ADR (Average Daily Range)
Exit when VTR begins to weaken or changes direction
2. Volume Divergence Strategy
This strategy focuses on the volume trend relative to price:
Identify when price makes a new high but VTR fails to confirm (divergence)
Look for VTR to show weakening trend (● changing to ◯ or ·)
Prepare for potential reversal when SQZ begins to form
Enter counter-trend position when PBK confirms reversal direction
Use external indicators (QQQ, BTC, Breadth) to confirm broader market support
3. Pre-Market Edge Strategy
This strategy leverages pre-market data:
Monitor AVOL for unusual pre-market activity (significantly above 100%)
Check pre-market price change direction (PCHG%)
Enter position at market open if VTR confirms direction
Use SQZ to determine if volatility is likely to expand
Exit based on RVOL declining or price reaching +/- ADR for the day
Market Context Integration
The indicator provides valuable context for trading decisions:
QQQ change shows tech market direction
BTC price shows crypto market correlation
UVIX change indicates volatility expectations
Breadth measurement shows market internals
This context helps traders avoid fighting the broader market and align trades with overall market direction.
Timeframe Optimization
The indicator is designed to work across different timeframes:
For day trading: Focus on AVOL, VTR, PBK/BK, and use shorter momentum periods
For swing trading: Focus on SQZ duration, VTR strength, and broader market indicators
For position trading: Focus on larger VTR trends and use EMA alignment weight
Advanced Analytical Components
Enhanced Volume Trend Score Calculation
The VTR score calculation is sophisticated, with the base score starting at 50 and adjusting for:
Price direction (up/down)
Volume relative to average (high/normal/low)
Volume acceleration/deceleration
Market conditions (bull/bear)
Additional factors are then applied, including:
MACD influence weighted by strength and direction
Volume change rate influence (speed)
Price/volume divergence effects
EMA alignment scores
Volatility adjustments
Breakout strength factors
Price action confirmations
The final score is clamped between 0-100, with values above 50 indicating bullish conditions and below 50 indicating bearish conditions.
Anti-False Signal Filters
The indicator employs multiple techniques to reduce false signals:
Requiring significant price range (minimum percentage movement)
Demanding strong volume confirmation (significantly above average)
Checking for consistent direction across multiple indicators
Requiring prior bar consistency (consecutive bars moving in same direction)
Counting consecutive signals to filter out noise
These filters help eliminate noise and focus on high-probability setups.
MACD Enhancement and Integration
The indicator enhances standard MACD analysis:
Calculating MACD relative strength compared to recent history
Normalizing MACD slope relative to volatility
Detecting MACD acceleration for stronger signals
Integrating MACD crossovers with other confirmation factors
EMA Analysis System
The indicator uses a comprehensive EMA analysis system:
Calculating multiple EMAs (5, 10, 21 periods)
Detecting golden cross (10 EMA crosses above 21 EMA)
Detecting death cross (10 EMA crosses below 21 EMA)
Assessing price position relative to EMAs
Measuring EMA separation percentage
Recent Enhancements and Evolution
Version 5.2 includes several improvements:
Enhanced AVOL to show buying/selling direction through color coding
Improved VTR with adaptive analysis based on market conditions
AVOL display now works in all timeframes through sophisticated estimation
Removed animal symbols and streamlined code with bright colors for better visibility
Improved anti-false signal filters throughout the system
Optimizing Indicator Settings
For Different Market Types
Range-Bound Markets:
Lower EMA Alignment Weight (0.2-0.4)
Higher Speed of Change Weight (0.8-1.0)
Focus on SQZ and PBK signals for breakout potential
Trending Markets:
Higher EMA Alignment Weight (0.7-1.0)
Moderate Speed of Change Weight (0.4-0.6)
Focus on VTR strength and BK confirmations
Volatile Markets:
Enable Volatility Filter
Enable Adaptive Volume Analysis
Lower Momentum Period (2-3)
Focus on strong volume confirmation (VTR ≥ 80 or ≤ 20)
For Different Asset Classes
Equities:
Standard settings work well
Pay attention to AVOL for gap potential
Monitor QQQ correlation
Futures:
Consider higher Volume/RVOL weight
Reduce MACD weight slightly
Pay close attention to SQZ duration
Crypto:
Higher volatility thresholds may be needed
Monitor BTC price for correlation
Focus on stronger confirmation signals
Integrated Visual System for Trading Decisions
The colored circle indicators create an intuitive visual system for quick market assessment:
Progression Sequence: SQZ (Squeeze) → PBK (Pre-Breakout) → BK (Breakout)
This sequence often occurs in order, with the squeeze leading to pre-breakout conditions, followed by an actual breakout.
VTR (Volume Trend): Provides context about the volume supporting these movements.
Color Coding: Green for bullish conditions, red for bearish conditions, and orange/gray for neutral or undefined conditions.
ATR Volatility giua64ATR Volatility giua64 – Smart Signal + VIX Filter
📘 Script Explanation (in English)
Title: ATR Volatility giua64 – Smart Signal + VIX Filter
This script analyzes market volatility using the Average True Range (ATR) and compares it to its moving average to determine whether volatility is HIGH, MEDIUM, or LOW.
It includes:
✅ Custom or preset configurations for different asset classes (Forex, Indices, Gold, etc.).
✅ An optional external volatility index input (like the VIX) to refine directional bias.
✅ A directional signal (LONG, SHORT, FLAT) based on ATR strength, direction, and external volatility conditions.
✅ A clean visual table showing key values such as ATR, ATR average, ATR %, VIX level, current range, extended range, and final signal.
This tool is ideal for traders looking to:
Monitor the intensity of price movements
Filter trading strategies based on volatility conditions
Identify momentum acceleration or exhaustion
⚙️ Settings Guide
Here’s a breakdown of the user inputs:
🔹 ATR Settings
Setting Description
ATR Length Number of periods for ATR calculation (default: 14)
ATR Smoothing Type of moving average used (RMA, SMA, EMA, WMA)
ATR Average Length Period for the ATR moving average baseline
🔹 Asset Class Preset
Choose between:
Manual – Define your own point multiplier and thresholds
Forex (Pips) – Auto-set for FX markets (high precision)
Indices (0.1 Points) – For index instruments like DAX or S&P
Gold (USD) – Preset suitable for XAU/USD
If Manual is selected, configure:
Setting Description
Points Multiplier Multiplies raw price ranges into useful units (e.g., 10 for Gold)
Low Volatility Threshold Threshold to define "LOW" volatility
High Volatility Threshold Threshold to define "HIGH" volatility
🔹 Extended Range and VIX
Setting Description
Timeframe for Extended High/Low Used to compare larger price ranges (e.g., Daily or Weekly)
External Volatility Index (VIX) Symbol for a volatility index like "VIX" or "EUVI"
Low VIX Threshold Below this level, VIX is considered "low" (default: 20)
High VIX Threshold Above this level, VIX is considered "high" (default: 30)
🔹 Table Display
Setting Description
Table Position Where the visual table appears on the chart (e.g., bottom_center, top_left)
Show ATR Line on Chart Whether to display the ATR line directly on the chart
✅ Signal Logic Summary
The script determines the final signal based on:
ATR being above or below its average
ATR rising or falling
ATR percentage being significant (>2%)
VIX being high or low
Conditions Signal
ATR rising + high volatility + low VIX LONG
ATR falling + high volatility + high VIX SHORT
ATR flat or low volatility or low %ATR FLAT
Statistical Reliability Index (SRI)Statistical Reliability Index (SRI)
The Statistical Reliability Index (SRI) is a professional financial analysis tool designed to assess the statistical stability and reliability of market conditions. It combines advanced statistical methods to gauge whether current market trends are statistically consistent or prone to erratic behavior. This allows traders to make more informed decisions when navigating trending and choppy markets.
Key Concepts:
1. Extrapolation of Cumulative Distribution Functions (CDF)
What is CDF?
A Cumulative Distribution Function (CDF) is a statistical tool that models the probability of a random variable falling below a certain value.
How it’s used in SRI:
The SRI utilizes the 95th percentile CDF of recent returns to estimate the likelihood of extreme price movements. This helps identify when a market is experiencing statistically significant changes, crucial for forecasting potential breakouts or breakdowns.
Weight in SRI:
The weight of the CDF extrapolation can be adjusted to emphasize its impact on the overall reliability index, allowing customization based on the trader's preference for tail risk analysis.
2. Bias Factor (BF)
What is the Bias Factor?
The Bias Factor measures the ratio of the current market price to the expected mean price calculated over a defined period. It represents the deviation from the typical price level.
How it’s used in SRI:
A higher bias factor indicates that the current price significantly deviates from the historical average, suggesting a potential mean reversion or trend exhaustion.
Weight in SRI:
Adjusting the Bias Factor weight lets users control how much this deviation influences the SRI, balancing between momentum trading and mean reversion strategies.
3. Coefficient of Variation (CV)
What is CV?
The Coefficient of Variation (CV) is a statistical measure that expresses the ratio of the standard deviation to the mean. It indicates the relative variability of asset returns, helping gauge the risk-to-return consistency.
How it’s used in SRI:
A lower CV indicates more stable and predictable price behavior, while a higher CV signals increased volatility. The SRI incorporates the inverse of the normalized CV to reflect price stability positively.
Weight in SRI:
By adjusting the CV weight, users can prioritize consistent price movements over erratic volatility, aligning the indicator with risk tolerance and strategy preferences.
Interpreting the SRI:
1. SRI Plot:
The SRI plot dynamically changes color to reflect market conditions:
Aqua Line: Indicates uptrend stability, signaling statistically consistent upward movements.
Fuchsia Line: Indicates downtrend stability, where statistically reliable downward movements are present.
The overlay background shifts between colors:
Aqua Background: Signifies statistical stability, where trends are historically consistent.
Fuchsia Background: Indicates statistical instability, often associated with trend uncertainty.
Yellow Background: Marks choppy periods, where statistical data suggests that market conditions are not conducive to reliable trading.
2. SRI Volatility Plot:
Displays the volatility of the SRI itself to detect when the indicator is stable or unstable:
Blue Area Fill: Signifies that the SRI is stable, indicating trending conditions.
Yellow Area Fill: Represents choppy or unstable SRI movements, suggesting sideways or unreliable market conditions.
A Chop Threshold Line (dotted yellow) highlights the maximum acceptable SRI volatility before the market is considered too unpredictable.
3. Stability Assessment:
Stable Trend (No Chop):
The SRI is smooth and consistent, often accompanied by aqua or fuchsia lines.
Volatility remains below the chop threshold, indicating a low-risk, trend-following environment.
Chop Mode:
The SRI becomes erratic, and the volatility plot spikes above the threshold.
Marked by a yellow shaded background, indicating uncertain and non-trending conditions.
[Trend Identification:
Use the color-coded SRI line and background to determine uptrend or downtrend reliability.
Be cautious when the SRI volatility plot shows yellow, as this signals trading conditions may not be reliable.
Practical Use Cases:
Trend Confirmation:
Utilize the SRI plot color and background to confirm whether a detected trend is statistically reliable.
Chop Mode Filtering:
During yellow chop periods, it is advisable to reduce trading activity or adopt range-bound strategies.
Strategy Filter:
Combine the SRI with trend-following indicators (like moving averages) to enhance entry and exit accuracy.
Volatility Monitoring:
Pay attention to the SRI volatility plot, as spikes often precede erratic price movements or trend reversals.
Disclaimer:
The Statistical Reliability Index (SRI) is a technical analysis tool designed to aid in market stability assessment and trend validation. It is not intended as a standalone trading signal generator. While the SRI can help identify statistically reliable trends, it is essential to incorporate additional technical and fundamental analysis to make well-informed trading decisions.
Trading and investing involve substantial risk, and past performance does not guarantee future results. Always use risk management practices and consult with a financial advisor to tailor strategies to your individual risk profile and objectives.
Kernel Regression Bands SuiteMulti-Kernel Regression Bands
A versatile indicator that applies kernel regression smoothing to price data, then dynamically calculates upper and lower bands using a wide variety of deviation methods. This tool is designed to help traders identify trend direction, volatility, and potential reversal zones with customizable visual styles.
Key Features
Multiple Kernel Types: Choose from 17+ kernel regression styles (Gaussian, Laplace, Epanechnikov, etc.) for smoothing.
Flexible Band Calculation: Select from 12+ deviation types including Standard Deviation, Mean/Median Absolute Deviation, Exponential, True Range, Hull, Parabolic SAR, Quantile, and more.
Adaptive Bands: Bands are calculated around the kernel regression line, with a user-defined multiplier.
Signal Logic: Trend state is determined by crossovers/crossunders of price and bands, coloring the regression line and band fills accordingly.
Custom Color Modes: Six unique color palettes for visual clarity and personal preference.
Highly Customizable Inputs: Adjust kernel type, lookback, deviation method, band source, and more.
How to Use
Trend Identification: The regression line changes color based on the detected trend (up/down)
Volatility Zones: Bands expand/contract with volatility, helping spot breakouts or mean-reversion opportunities.
Visual Styling: Use color modes to match your chart theme or highlight specific market states.
Credits:
Kernel regression logic adapted from:
ChartPrime | Multi-Kernel-Regression-ChartPrime (Link in the script)
Disclaimer
This script is for educational and informational purposes only. Not financial advice. Use at your own risk.
Spread/Range Oscillator + Signal + HistogramThe Spread/Range Oscillator is a technical analysis tool designed to assess market momentum by evaluating the relationship between price movement and volatility.
Calculation
Spread: The difference between the closing and opening prices of a candle (close - open).
Range: The difference between the high and low prices of a candle (high - low).
Oscillator: The spread divided by the range (spread / range). This ratio provides a normalized measure of price movement within each candle.
Smoothed Oscillator: An Exponential Moving Average (EMA) applied to the oscillator over a user-defined period (Smoothing Length) to reduce noise.
Signal Line: An EMA of the Smoothed Oscillator over another user-defined period (Signal Line Length) to identify potential trend changes.
Histogram: The difference between the Smoothed Oscillator and the Signal Line (Smoothed Oscillator - Signal Line). Positive values suggest bullish momentum, while negative values indicate bearish momentum.
Inputs
Smoothing Length (EMA): Determines the period for smoothing the oscillator.
Signal Line Length (EMA): Sets the period for the EMA applied to the Smoothed Oscillator to generate the Signal Line.
Visual Representation
Smoothed Oscillator: Plotted as a line representing the smoothed momentum of price movements.
Signal Line: Displayed as a line serving as a reference to identify potential crossovers and trend changes.
Histogram: Rendered as bars, with positive values indicating bullish momentum and negative values indicating bearish momentum.
Zero Line: A horizontal line at zero to distinguish between bullish and bearish territories.
Applications
Momentum Analysis: Identify periods of strong buying or selling pressure based on the oscillator's position relative to the zero line.
Trend Confirmation: Use crossovers between the Smoothed Oscillator and Signal Line to confirm potential trend reversals or continuations.
Divergence Detection: Spot divergences between price action and the oscillator to anticipate possible market turning points.
This indicator is open-source and intended for educational purposes. It is recommended to use it in conjunction with other forms of analysis and risk management practices before making trading decisions.
Aggregated VolumeThis is the volume for crypto instruments. The volume in crypto instruments is different from the volume in stock or forex instruments. Because in crypto instrument at the same coin, for example bitcoin, there are differences in volume appearing on chart in Tradingview between exchanges. For example the exchanges on Binance and OKX, and between the spot market and the future or perpetual market, even though the transaction is in the same coin, bitcoin, there are differences in volume appearing on chart.
For those of us who trade relying on base volume as the main analysis in trading or investing, it is important to see the differences in volume between exchanges on Bitget, Binance, Bybit, and others, that Tradingview does not display the total transaction volume on the chart, but only the transaction volume per exchange, that does not describe the reality of the transaction volume. Therefore we need an indicator that totals volume on all exchanges, both spot and future / perpetual markets.
This indicator is called Aggregated Volume, which is the total volume of the exchanges: Binance, Bybit, OKX, Coinbase, Bitget, Kukoin, Kraken, Cryptocom, and Mexc. We chose these exchanges because they are the top 9 exchanges in the world that dominate the crypto market.
Therefore, this indicator appearing the total volume of transactions made on the 9 exchanges, both spot and perpetual, and will be summed into one volume indicator called " Aggregated Volume ".