Hurst Exponent Adaptive Filter (HEAF) [PhenLabs]📊 PhenLabs - Hurst Exponent Adaptive Filter (HEAF)
Version: PineScript™ v6
📌 Description
The Hurst Exponent Adaptive Filter (HEAF) is an advanced Pine Script indicator designed to dynamically adjust moving average calculations based on real time market regimes detected through the Hurst Exponent. The intention behind the creation of this indicator was not a buy/sell indicator but rather a tool to help sharpen traders ability to distinguish regimes in the market mathematically rather than guessing. By analyzing price persistence, it identifies whether the market is trending, mean-reverting, or exhibiting random walk behavior, automatically adapting the MA length to provide more responsive alerts in volatile conditions and smoother outputs in stable ones. This helps traders avoid false signals in choppy markets and capitalize on strong trends, making it ideal for adaptive trading strategies across various timeframes and assets.
Unlike traditional moving averages, HEAF incorporates fractal dimension analysis via the Hurst Exponent to create a self-tuning filter that evolves with market conditions. Traders benefit from visual cues like color coded regimes, adaptive bands for volatility channels, and an information panel that suggests appropriate strategies, enhancing decision making without constant manual adjustments by the user.
🚀 Points of Innovation
Dynamic MA length adjustment using Hurst Exponent for regime-aware filtering, reducing lag in trends and noise in ranges.
Integrated market regime classification (trending, mean-reverting, random) with visual and alert-based notifications.
Customizable color themes and adaptive bands that incorporate ATR for volatility-adjusted channels.
Built-in information panel providing real-time strategy recommendations based on detected regimes.
Power sensitivity parameter to fine-tune adaptation aggressiveness, allowing personalization for different trading styles.
Support for multiple MA types (EMA, SMA, WMA) within an adaptive framework.
🔧 Core Components
Hurst Exponent Calculation: Computes the fractal dimension of price series over a user-defined lookback to detect market persistence or anti-persistence.
Adaptive Length Mechanism: Maps Hurst values to MA lengths between minimum and maximum bounds, using a power function for sensitivity control.
Moving Average Engine: Applies the chosen MA type (EMA, SMA, or WMA) to the adaptive length for the core filter line.
Adaptive Bands: Creates upper and lower channels using ATR multiplied by a band factor, scaled to the current adaptive length.
Regime Detection: Classifies market state with thresholds (e.g., >0.55 for trending) and triggers alerts on regime changes.
Visualization System: Includes gradient fills, regime-colored MA lines, and an info panel for at-a-glance insights.
🔥 Key Features
Regime-Adaptive Filtering: Automatically shortens MA in mean-reverting markets for quick responses and lengthens it in trends for smoother signals, helping traders stay aligned with market dynamics.
Custom Alerts: Notifies on regime shifts and band breakouts, enabling timely strategy adjustments like switching to trend-following in bullish regimes.
Visual Enhancements: Color-coded MA lines, gradient band fills, and an optional info panel that displays market state and trading tips, improving chart readability.
Flexible Settings: Adjustable lookback, min/max lengths, sensitivity power, MA type, and themes to suit various assets and timeframes.
Band Breakout Signals: Highlights potential overbought/oversold conditions via ATR-based channels, useful for entry/exit timing.
🎨 Visualization
Main Adaptive MA Line: Plotted with regime-based colors (e.g., green for trending) to visually indicate market state and filter position relative to price.
Adaptive Bands: Upper and lower lines with gradient fills between them, showing volatility channels that widen in random regimes and tighten in trends.
Price vs. MA Fills: Color-coded areas between price and MA (e.g., bullish green above MA in trending modes) for quick trend strength assessment.
Information Panel: Top-right table displaying current regime (e.g., "Trending Market") and strategy suggestions like "Follow trends" or "Trade ranges."
📖 Usage Guidelines
Core Settings
Hurst Lookback Period
Default: 100
Range: 20-500
Description: Sets the period for Hurst Exponent calculation; longer values provide more stable regime detection but may lag, while shorter ones are more responsive to recent changes.
Minimum MA Length
Default: 10
Range: 5-50
Description: Defines the shortest possible adaptive MA length, ideal for fast responses in mean-reverting conditions.
Maximum MA Length
Default: 200
Range: 50-500
Description: Sets the longest adaptive MA length for smoothing in strong trends; adjust based on asset volatility.
Sensitivity Power
Default: 2.0
Range: 1.0-5.0
Description: Controls how aggressively the length adapts to Hurst changes; higher values make it more sensitive to regime shifts.
MA Type
Default: EMA
Options: EMA, SMA, WMA
Description: Chooses the moving average calculation method; EMA is more responsive, while SMA/WMA offer different weighting.
🖼️ Visual Settings
Show Adaptive Bands
Default: True
Description: Toggles visibility of upper/lower bands for volatility channels.
Band Multiplier
Default: 1.5
Range: 0.5-3.0
Description: Scales band width using ATR; higher values create wider channels for conservative signals.
Show Information Panel
Default: True
Description: Displays regime info and strategy tips in a top-right panel.
MA Line Width
Default: 2
Range: 1-5
Description: Adjusts thickness of the main MA line for better visibility.
Color Theme
Default: Blue
Options: Blue, Classic, Dark Purple, Vibrant
Description: Selects color scheme for MA, bands, and fills to match user preferences.
🚨 Alert Settings
Enable Alerts
Default: True
Description: Activates notifications for regime changes and band breakouts.
✅ Best Use Cases
Trend-Following Strategies: In detected trending regimes, use the adaptive MA as a trailing stop or entry filter for momentum trades.
Range Trading: During mean-reverting periods, monitor band breakouts for buying dips or selling rallies within channels.
Risk Management in Random Markets: Reduce exposure when random walk is detected, using tight stops suggested in the info panel.
Multi-Timeframe Analysis: Apply on higher timeframes for regime confirmation, then drill down to lower ones for entries.
Volatility-Based Entries: Use upper/lower band crossovers as signals in adaptive channels for overbought/oversold trades.
⚠️ Limitations
Lagging in Transitions: Regime detection may delay during rapid market shifts, requiring confirmation from other tools.
Not a Standalone System: Best used in conjunction with other indicators; random regimes can lead to whipsaws if traded aggressively.
Parameter Sensitivity: Optimal settings vary by asset and timeframe, necessitating backtesting.
💡 What Makes This Unique
Hurst-Driven Adaptation: Unlike static MAs, it uses fractal analysis to self-tune, providing regime-specific filtering that's rare in standard indicators.
Integrated Strategy Guidance: The info panel offers actionable tips tied to regimes, bridging analysis and execution.
Multi-Regime Visualization: Combines adaptive bands, colored fills, and alerts in one tool for comprehensive market state awareness.
🔬 How It Works
Hurst Exponent Computation:
Calculates log returns over the lookback period to derive the rescaled range (R/S) ratio.
Normalizes to a 0-1 value, where >0.55 indicates trending, <0.45 mean-reverting, and in-between random.
Length Adaptation:
Maps normalized Hurst to an MA length via a power function, clamping between min and max.
Applies the selected MA type to close prices using this dynamic length.
Visualization and Signals:
Plots the MA with regime colors, adds ATR-based bands, and fills areas for trend strength.
Triggers alerts on regime changes or band crosses, with the info panel suggesting strategies like momentum riding in trends.
💡 Note:
For optimal results, backtest settings on your preferred assets and combine with volume or momentum indicators. Remember, no indicator guarantees profits—use with proper risk management. Access premium features and support at PhenLabs.
Volatility
ATR 5 min- FOREX + XAUThis indicator displays the Average True Range (ATR) over the last 20 candles, calculated using the 5-minute timeframe, regardless of the chart timeframe you're currently viewing.
It supports:
All major forex pairs
XAUUSD (Gold), with ATR displayed in full dollars
Key Features
Always reflects 5-minute volatility
Accurate pip scaling:
JPY pairs = 1 pip = 0.01
Other forex pairs = 1 pip = 0.0001
XAUUSD = 1 pip = 1.00 (i.e., full dollar)
Clean and minimal top-right table display
Automatically adapts based on the instrument you're viewing
Helps traders gauge recent market volatility across timeframes
This is an ideal tool for scalpers, intraday traders, or swing traders who want to monitor short-term volatility conditions from any timeframe view.
Dollar Volume + SD [ZTD]### So, What's the Big Deal with SD Dollar Volume?
TL:DR
What you see:
1. $ Volume = (Price * Volume) / 1M (we divide it by 1M by default so you don't have to look at 12 digits but you can select between 100k/1M/10M)
2. User selected M.A. period with difference sources
3. Up to 4 Standard Deviation from that M.A.
4. Color coded (explained below)
That's it, no fancy useless multi color rainbows. Functional, bringing depth and clarity to your analysis based on reality not optical illusion.
--------------
The Long version
You know how we've always looked at volume? It's a classic, but it's got a blind spot. A million shares traded when a stock is at $10 is a completely different ballgame from a million shares traded when it's at $200. The first is $10M in action; the second is $200M. Traditional volume treats them the same, but they are not the same story.
That's the whole idea behind the **Dollar Volume Standard Deviation (SD $VVOLUME)** indicator. Instead of just counting shares, it tracks the **actual dollar amount** ( also refered as Dollar Volume) changing hands. This gives you a much clearer picture of the real financial power behind a price move. It helps you see when the "big money" is truly stepping in or backing off.
Think about it this way: after a 20% drop on earnings, you might see a 10% volume increase and think, "Wow, buyers are stepping in!" But if you look at the *value traded*, it might actually be lower than the day before because the share price is so much cheaper. This indicator cuts through that noise.
What about that smaller stock you bought that suddenly doubles in prices in a matter of months. Do you really thing the volume you are looking at carries any meaning anymore?
On longer time frame? Think about Volume traded vs Value Traded on NVDA for example. Looking at volume alone on those charts is absolutely meaningless. I even wonder why volume alone ever existed in the first place as an indicator.
### How to Use It in Your Trading
This isn't just theory; here’s how you can actually use it to make better decisions.
#### Reading the Indicator
The indicator is designed to be visual and intuitive. Here’s what you're looking at:
* **The Bars:** Each bar on the indicator represents the total dollar value traded during that period. Bigger bar, more money moved.
* **The White Line:** This is your baseline—the moving average of the value traded. It shows you the normal level of money flow for that stock.
* **Bar Colors (The Important Part):**
* **Direction:** **Green** means the stock closed higher in that period. **Red** means it closed lower. Simple enough.
* **Intensity:** This is the real magic. The brightness or intensity of the color tells you how significant that money flow was. A dull, faded bar means the value traded was pretty average. A **bright, intense bar** means the value was way above normal (usually 1 or 2 standard deviations away from the average). *That's* when you need to pay attention.
#### Actionable Signals for Your Strategy
* **Spotting High-Conviction Moves:** When you see a bright, intense red or green bar that towers over the others, that's a signal of major conviction. Big players are making a decisive move, either buying up everything in sight or dumping their positions. This is your cue that something significant is happening.
* **Confirming a Trend's Strength:** Are you in a strong uptrend? Look for a consistent pattern of bright green bars. This tells you that significant capital is flowing in to support the rising price. It's confirmation that the trend has legs.
* **Catching a Weakening Trend (Divergence):** This is a powerful one. Imagine the stock price is grinding out new highs, but on the SD
V
VOLUME
indicator, the bars are getting smaller and less intense. That's a major red flag. It shows that even though the price is inching up, the real money isn't following. There's no conviction, and the trend could be about to reverse.
* **Gauging Liquidity:** If the bars are consistently low and dull, it's a sign that interest in the stock is drying up. It's a good way to spot illiquid conditions and avoid getting trapped in a stock that's hard to get out of.
Ultimately, SD SEED_YASHALGO_NSE_BREADTH:VOLUME helps you see the market from a different angle. It's not just about the noise of shares being traded; it's about following the money.
BTC CME Futures Gaps (BTCGapHunt_CME)BTC CME Futures Gaps Indicator
Overview
This indicator visualises price gaps between the daily close and open of Bitcoin CME futures (CME:BTC1!). These gaps are often revisited ("filled") by market price action and may serve as technical targets.
Thanks
... to Maven and the Blockchain Masons (x.com/Masons_DAO) to push me on this topic.
What Is a CME Gap?
CME Bitcoin Futures do not trade 24/7. Gaps form when the market reopens at a different price than where it last closed.
Gaps are often used as support/resistance or liquidity targets.
This indicator tracks, visualises, and alerts on these gaps.
Key Features
Automatic gap detection using daily open/close on CME:BTC1!
Dynamic gap size threshold based on ATR (Average True Range)
Highlight unfilled gaps and track partial fills visually
Alerts for gap formation and fill events
Parameter overlay showing real-time settings
Supported and Overrideable Parameters
ATR Length: Defines the lookback period for ATR calculation (default: 14)
Gap Size Multiplier: Multiplies the ATR to set the dynamic gap threshold (default: 1.0)
Proximity Threshold: Price distance from gap edge to consider it filled (default: 100 USD)
Max Gaps Tracked: Maximum number of concurrent gaps shown (default: 50)
Alerts Enabled: Toggle alerts for gap formation and gap fill events
How the Gap Size Is Calculated
Minimum Gap Size = ATR(14) * Gap Size Multiplier
ATR Length and Gap Size Multiplier are configurable.
Gap threshold adjusts dynamically with market volatility.
Visual Guide
Red Box: Fully unfilled gap
Lemon Yellow Box: Partially filled gap
Right Margin Boxes: Snapshot of unfilled gaps for quick access
Top-Right Panel: Current ATR, Gap Size, Thresholds, etc.
Alerts
Gap Formed: A new gap is detected.
Gap Filled: The gap is either partially or fully filled.
Recommended Timeframes
1H, 4H, 1D (best resolution)
Designed for BTC spot/perpetual charts (e.g., BTCUSD, BTCUSDT)
How To Use
Add the script to your BTC chart.
Monitor red/yellow boxes for unfilled gaps.
Check config panel for current threshold and settings.
Enable alerts via TradingView for real-time updates.
Notes
Up to 50 gaps are tracked (adjustable).
Data source: CME futures via request.security.
All visuals and alerts are time-synced with your chart.
Disclaimer
This script is for educational purposes only. Trade at your own risk.
DeltaTrace ForecastDeltaTrace Forecast is a forward-looking projection tool that visualizes the probable directional path of price using a multi-timeframe momentum model rooted in volatility-adjusted nonlinear dynamics. Rather than relying on traditional indicators that react to price after the fact, DeltaTrace estimates future price motion by tracing the progression of momentum changes across expanding timeframes—then scaling those deltas using adaptive volatility to forecast a plausible path forward.
At its core, DeltaTrace constructs a momentum vector from a series of smoothed z-scores derived from increasing multiples of the current chart's timeframe. These z-scores are normalized using a hyperbolic tangent function (tanh), which compresses extreme values and emphasizes meaningful deviations without being overly sensitive to outliers. This nonlinear normalization ensures that explosive moves are weighted with less distortion, while still preserving the shape and direction of the underlying trend.
Once the z-scores are calculated for a range of 12 timeframes (from 1× the current timeframe up to 12×), the indicator computes the first difference between each adjacent pair. These differences—or deltas—represent the change in momentum from one timeframe to the next. In this structure, a strong positive delta implies momentum is strengthening as we look into higher timeframes, while a negative delta reflects waning or reversing strength.
However, not all deltas are treated equally. To make the projection adaptive to market volatility and temporally meaningful, each delta is scaled by the square root of its corresponding timeframe multiple, weighted by the ATR (Average True Range) of the base timeframe. This square-root volatility scaling mirrors the behavior of Brownian motion and reflects the natural geometric diffusion of price over time. By applying this scaling, the model tempers its forecast according to recent volatility while maintaining proportional distance over longer time horizons.
The result is a chain of projected price steps—11 in total—starting from the current closing price. These steps are cumulative, meaning each one builds upon the previous, forming a continuously adjusted polyline that represents the most recent forecast path of price. Each point in the forecast line is directional: if the next projected point is above the last, the segment is colored green (upward momentum); if below, it is colored red (downward momentum). This color coding gives immediate visual feedback on the nature of the projected path and allows for intuitive at-a-glance interpretation.
What makes DeltaTrace unique is its combination of ideas from signal processing, time-series momentum analysis, and volatility theory. Instead of relying on static support/resistance levels or lagging moving averages, it dynamically adapts to both momentum curvature and volatility structure. This allows it to be used not just for trend confirmation, but also for top-down bias fading, reversal anticipation, and path-following strategies.
Traders can use DeltaTrace in a variety of ways depending on their style:
For trend traders, a consistent upward or downward curve in the forecast suggests directional continuation and can be used for position sizing or confirmation of bias.
For mean-reversion traders, exaggerated divergence between the current price and the first few forecast points may indicate temporary exhaustion or overextension.
For scalpers or intraday traders, the short-term bend or flattening of the initial segments can reveal early signs of weakening momentum or build-up before breakout.
For swing traders, the full shape of the polyline gives an evolving map of market rhythm across time compression, allowing for context-aware decision-making.
It’s important to understand that this is a path projection tool, not a precise price target predictor. The forecast does not attempt to predict exact price levels at exact bars, but rather illustrates how the market might evolve if the current multi-timeframe momentum structure persists. Like all models, it should be interpreted probabilistically and used in conjunction with other confirmation signals, risk management tools, or strategy frameworks.
Inputs allow customization of the z-score calculation length and ATR window to tune the sensitivity of the model. The color scheme for up/down forecast segments can also be adjusted for personal preference. Additionally, users can toggle the polyline forecast on or off, which may be useful for pairing this indicator with others in a crowded chart layout.
Because the forecast path is calculated only on the last bar, it does not repaint or shift once the candle closes—preserving historical accuracy for visual inspection and backtesting reference. However, it is also sensitive to changes in volatility and momentum structure, meaning it updates each bar as conditions evolve, making it most effective in real-time decision support.
DeltaTrace Forecast is particularly well-suited for traders who want a deeper understanding of hidden momentum shifts across timeframes without relying on traditional trend-following tools. It reveals the shape of future possibility based on present dynamics, offering a compact yet powerful visualization of directional bias, transition risk, and path strength.
To maximize its utility, consider pairing DeltaTrace with volume profiles, order flow tools, higher timeframe zones, or market structure indicators. Used in context, it becomes a powerful companion to both systematic and discretionary trading styles—especially for those who appreciate a blend of mathematics and intuition in their market analysis.
This indicator is not based on magic or black-box logic; every component—from the z-score standardization to the volatility-adjusted deltas—is fully transparent and grounded in simple, interpretable mechanics. If you're looking for a reliable way to visualize multi-timeframe bias and momentum diffusion, DeltaTrace provides a unique lens through which to interpret future potential in an ever-shifting market landscape.
%ATR + ΔClose HighlightScript Overview
This indicator displays on your chart:
Table of the last N bars that passed the ATR-based range filter:
Columns: Bar #, High, Range (High–Low), Low
Summary row: ATR(N), suggested Stop-Loss (SL = X % of ATR), and the current bar’s range as a percentage of ATR
Red badge on the most recent bar showing ΔClose% (the absolute difference between today’s and yesterday’s close, expressed as % of ATR)
Background highlights:
Blue fill under the most recent bar that met the filter
Yellow fill under bars that failed the filter
Hidden plots of ATR, %ATR, and ΔClose% (for use in strategies or alerts)
All table elements, fills, and plots can be toggled off with a single switch so that only the red ΔClose% badge remains visible.
Inputs
Setting Description Default
Length (bars) Lookback period for ATR and range filter (bars) 5
Upper deviation (%) Upper filter threshold (% of average ATR) 150%
Lower deviation (%) Lower filter threshold (% of average ATR) 50%
SL as % of ATR Stop-loss distance (% of ATR) 10%
Label position Table position relative to bar (“above” or “below”) above
Vertical offset (×ATR) Vertical spacing from the bar in ATR units 2.0
Show table & ATR plots Show or hide table, background highlights, and plots true
How It Works
ATR Calculation & Filtering
Computes average True Range over the last N bars.
Marks bars whose daily range falls within the specified upper/lower deviation band.
Table Construction
Gathers up to N most recent bars that passed the filter (or backfills from the most recent pass).
Formats each bar’s High, Low, and Range into fixed-width columns for neat alignment.
Stop-Loss & Percent Metrics
Calculates a recommended SL distance as a percentage of ATR.
Computes today’s bar range and ΔClose (absolute change in close) as % of ATR.
Chart Display
Table: Shows detailed per-bar data and summary metrics.
Background fills: Blue for the latest valid bar, yellow for invalid bars.
Hidden plots: ATR, %ATR, and ΔClose% (useful for backtesting).
Red badge: Always visible on the right side of the last bar, displaying ΔClose%.
Tips
Disable the table & ATR plots to reduce chart clutter—leave only the red ΔClose% badge for a minimalist volatility alert.
Use the hidden ATR fields (plot outputs) in TradingView Strategies or Alerts to automate volatility-based entries/exits.
Adjust the deviation band to capture “normal” intraday moves vs. outsized volatility spikes.
Load this script on any US market chart (stocks, futures, crypto, etc.) to instantly visualize recent volatility structure, set dynamic SL levels, and highlight today’s price change relative to average true range.
BTC CME Futures GapsBTC CME Futures Gaps Indicator
Overview
This indicator visualises price gaps between the daily close and open of Bitcoin CME futures (CME:BTC1!). These gaps are often revisited ("filled") by market price action and may serve as technical targets.
What Is a CME Gap?
CME Bitcoin Futures do not trade 24/7. Gaps form when the market reopens at a different price than where it last closed.
Gaps are often used as support/resistance or liquidity targets.
This indicator tracks, visualises, and alerts on these gaps.
Key Features
Automatic gap detection using daily open/close on CME:BTC1!
Dynamic gap size threshold based on ATR (Average True Range)
Highlight unfilled gaps and track partial fills visually
Alerts for gap formation and fill events
Parameter overlay showing real-time settings
Supported and Overrideable Parameters
ATR Length: Defines the lookback period for ATR calculation (default: 14)
Gap Size Multiplier: Multiplies the ATR to set the dynamic gap threshold (default: 1.0)
Proximity Threshold: Price distance from gap edge to consider it filled (default: 100 USD)
Max Gaps Tracked: Maximum number of concurrent gaps shown (default: 50)
Alerts Enabled: Toggle alerts for gap formation and gap fill events
How the Gap Size Is Calculated
Minimum Gap Size = ATR(14) * Gap Size Multiplier
ATR Length and Gap Size Multiplier are configurable.
Gap threshold adjusts dynamically with market volatility.
Visual Guide
Red Box: Fully unfilled gap
Lemon Yellow Box: Partially filled gap
Right Margin Boxes: Snapshot of unfilled gaps for quick access
Top-Right Panel: Current ATR, Gap Size, Thresholds, etc.
Alerts
Gap Formed: A new gap is detected.
Gap Filled: The gap is either partially or fully filled.
Recommended Timeframes
1H, 4H, 1D (best resolution)
Designed for BTC spot/perpetual charts (e.g., BTCUSD, BTCUSDT)
How To Use
Add the script to your BTC chart.
Monitor red/yellow boxes for unfilled gaps.
Check config panel for current threshold and settings.
Enable alerts via TradingView for real-time updates.
Notes
Up to 50 gaps are tracked (adjustable).
Data source: CME futures via request.security.
All visuals and alerts are time-synced with your chart.
Disclaimer
This script is for educational purposes only. Trade at your own risk.
3/2 Stochastic Volatility ProxyThis indicator, "3/2 Stochastic Volatility Proxy", implements a realized volatility model that incorporates advanced digital signal processing techniques, such as Butterworth filtering, super smoothing, RMS normalization, and optionally Z-Score transformation, to capture and visualize shifts in market volatility.
🔍 Indicator Overview: "3/2 Stochastic Volatility Proxy"
🎯 Purpose
To act as a momentum-based volatility proxy, estimating realized volatility and applying a 3/2 power transformation—a known mathematical volatility model—to better detect volatility regimes and potential price explosions or contractions.
📐 Core Mathematical Model: The 3/2 Stochastic Volatility Model
The 3/2 stochastic volatility model is defined in continuous time as:
🔑 Key Idea:
The variance follows a mean-reverting process, but the diffusion term has scaling. This makes the volatility more reactive to spikes, creating more realistic behavior for modeling risk, especially under high-volatility periods (tail events).
🧠 Indicator Components Explained
1. 🧮 Realized Variance Estimation
pinescript
Copy
Edit
ret = math.log(close / close ) // Log returns
vari = ta.sma(ret * ret, length) // Realized variance
volatility_proxy = math.pow(vari, 1.5) // Raise to 3/2 power
This transforms log returns into variance using a simple moving average.
The variance is then raised to the 3/2 power, per the 3/2 volatility model.
2. 🧹 Smoothing Options
Two smoothing techniques are available:
✅ Option 1: Z-Score Smoothing (Ehlers Loop logic)
pinescript
Copy
Edit
f_zscore(volatility_proxy, smoothing)
Normalizes the series to its statistical deviation from the mean.
Useful for spotting regime changes (e.g., +2σ or -2σ extremes).
✅ Option 2: RMS Scaled Filtering
pinescript
Copy
Edit
scaledFilt(volatility_proxy, ..., ..., ...)
This applies three steps:
Butterworth Highpass Filter → Removes slow drift, isolates cycles.
Super Smoother Filter → Reduces aliasing and short-term noise.
Fast RMS Normalization → Stabilizes the scale across varying regimes.
🛠 Filters and Utilities (Detailed)
🔸 butterworthHP()
A 2-pole high-pass filter that removes low-frequency trends to highlight cyclic components of volatility.
🔸 superSmoother()
Ehlers’ 2-pole smoother that attenuates high-frequency noise more effectively than EMA or SMA.
🔸 fastRMS()
An efficient way to estimate root mean square, normalizing the filtered signal to control amplitude.
📈 Plot and Alerts
🔸 plot(smoothed_vol)
Plots the smoothed, normalized volatility proxy:
Above 0 → Rising volatility.
Below 0 → Falling volatility.
Above +2σ / Below -2σ → Extreme volatility alerts.
🔸 Alert Conditions:
🔔 Cross Above 0 → Bullish volatility expansion.
🔔 Cross Below 0 → Bearish contraction or mean reversion.
🔔 Crossing ±2σ → Overheated or overcooled volatility zones.
🧪 Practical Use Cases
Volatility Momentum Proxy
Use this as a signal that volatility is accelerating (breakout environment).
Risk-on / Risk-off Filter
High values may warn of regime shifts; low values indicate calm markets.
Pair with Trend or Mean-Reverting Strategies
Helps determine if the current volatility favors breakouts or reversions.
Mig Trade Model - Kill Zones
Key features:
Liquidity Hunt Detection: Spots aggressive moves that "hunt" stops beyond recent swing highs/lows.
Consolidation Filter: Requires 1-3 small-range candles after a hunt before confirming with a strong candle.
Bias Application: Uses daily open/close to auto-detect bias or allows manual override.
Kill Zone Restriction: Limits signals to London (default: 7-10 AM UTC) and NY (default: 12-3 PM UTC) sessions for better relevance in active markets.
This strategy is inspired by smart money concepts (SMC) and ICT (Inner Circle Trader) methodologies, aiming to capture venom-like "stings" in price action where liquidity is grabbed before reversals.
How It Works
ATR Calculation: Uses a user-defined ATR length (default: 14) to measure volatility, which scales candle body and range thresholds.
Bias Determination:
Auto: Compares daily close to open (bullish if close > open).
Manual: User selects "Bullish" or "Bearish."
Strong Candles:
Bullish: Green candle with body > 2x ATR (configurable).
Bearish: Red candle with body > 2x ATR.
Small Range Candles:
Candles where high-low < 0.5x ATR (configurable).
Liquidity Hunt:
Bullish Hunt: Strong bearish candle making a new low below the past swing low (default: 10 bars).
Bearish Hunt: Strong bullish candle making a new high above the past swing high.
Signal Generation:
After a hunt, counts 1-3 small-range candles.
Confirms with a strong candle in the opposite direction (e.g., strong bullish after bearish hunt).
Resets if >3 small candles or an opposing strong candle appears.
Kill Zone Filter:
Checks if the current bar's time (in UTC) falls within London or NY Kill Zones.
Only allows final "Buy" (bullish entry) or "Sell" (bearish entry) if bias matches and in Kill Zone.
Plots:
Yellow circle (below): Bullish liquidity hunt.
Orange circle (above): Bearish liquidity hunt.
Blue diamond (below): Raw bullish signal.
Purple diamond (above): Raw bearish signal.
Green triangle up ("Buy"): Filtered bullish entry.
Red triangle down ("Sell"): Filtered bearish entry.
Inputs
Bias: "Auto" (default), "Bullish", or "Bearish" – Controls signal direction based on daily trend.
ATR Length: 14 (default) – Period for ATR calculation.
Swing Length for Liquidity Hunt: 10 (default) – Bars to look back for swing highs/lows.
Strong Candle Body Multiplier (x ATR): 2.0 (default) – Threshold for strong candle bodies.
Small Range Multiplier (x ATR): 0.5 (default) – Threshold for small-range candles.
London Kill Zone Start/End Hour (UTC): 7/10 (default) – Customize London session hours.
NY Kill Zone Start/End Hour (UTC): 12/15 (default) – Customize New York session hours.
Usage Tips
Timeframe: Best on lower timeframes (e.g., 5-15 min) for intraday trading, especially forex pairs like EURUSD or GBPUSD.
Timezone Adjustment: Inputs are in UTC. If your chart is in a different timezone (e.g., EST = UTC-5), adjust hours accordingly (e.g., London: 2-5 AM EST → 7-10 UTC).
Risk Management: Use with stop-loss (e.g., beyond the hunt low/high) and take-profit based on ATR multiples. Not financial advice—backtest thoroughly.
Customization: Tweak multipliers for different assets; higher for volatile cryptos, lower for stocks.
Limitations: Relies on historical data; may generate false signals in ranging markets. Combine with other indicators like volume or support/resistance.
This indicator is for educational purposes. Always use discretion and proper risk management in live trading. If you find it useful, feel free to share feedback or suggestions!
Multi-Ticker TableMulti-Ticker Table
A customizable TradingView indicator that displays a clean, organized table of up to 10 user-defined ticker symbols with their current daily price, daily dollar change, and daily percentage change.
Key features include:
Enable/disable individual tickers with custom symbols
Customizable font sizes and colors for header and body rows
Customizable table background colors for header and data rows
Flexible table positioning anywhere on the chart (top/middle/bottom × left/center/right)
Highlights positive changes in green and negative changes in red for quick visual analysis
Hides chart candles to display the table as a standalone dashboard
Ideal for traders who want a quick, at-a-glance summary of multiple markets or instruments without cluttering the chart.
ACR(Average Candle Range) With TargetsWhat is ACR?
The Average Candle Range (ACR) is a custom volatility metric that calculates the mean distance between the high and low of a set number of past candles. ACR focuses only on the actual candle range (high - low) of specific past candles on a chosen timeframe.
This script calculates and visualizes the Average Candle Range (ACR) over a user-defined number of candles on a custom timeframe. It displays a table of recent range values, plots dynamic bullish and bearish target levels, and marks the start of each new candle with a vertical line. All calculations update in real time as price action develops. This script was inspired by the “ICT ADR Levels - Judas x Daily Range Meter°” by toodegrees.
Key Features
Custom Timeframe Selection: Choose any timeframe (e.g., 1D, 4H, 15m) for analysis.
User-Defined Lookback: Calculate the average range across 1 to 10 previous candles.
Dynamic Targets:
Bullish Target: Current candle low + ACR.
Bearish Target: Current candle high – ACR.
Live Updates: Targets adjust intrabar as highs or lows change during the current candle.
Candle Start Markers: Vertical lines denote the open of each new candle on the selected timeframe.
Floating Range Table:
Displays the current ACR value.
Lists individual ranges for the previous five candles.
Extend Target Lines: Choose to extend bullish and bearish target levels fully across the screen.
Global Visibility Controls: Toggle on/off all visual elements (targets, vertical lines, and table) for a cleaner view.
How It Works
At each new candle on the user-selected timeframe, the script:
Draws a vertical line at the candle’s open.
Recalculates the ACR based on the inputted previous number of candles.
Plots target levels using the current candle's developing high and low values.
Limitation
Once the price has already moved a full ACR in the opposite direction from your intended trade, the associated target loses its practical value. For example, if you intended to trade long but the bearish ACR target is hit first, the bullish target is no longer a reliable reference for that session.
Use Case
This tool is designed for traders who:
Want to visualize the average movement range of candles over time.
Use higher or lower timeframe candles as structural anchors.
Require real-time range-based price levels for intraday or swing decision-making.
This script does not generate entry or exit signals. Instead, it supports range awareness and target projection based on historical candle behavior.
Key Difference from Similar Tools
While this script was inspired by “ICT ADR Levels - Judas x Daily Range Meter°” by toodegrees, it introduces a major enhancement: the ability to customize the timeframe used for calculating the range. Most ADR or candle-range tools are locked to a single timeframe (e.g., daily), but this version gives traders full control over the analysis window. This makes it adaptable to a wide range of strategies, including intraday and swing trading, across any market or asset.
EMA Channel with ATR Offset + 2 Custom EMAsJust an alternative channel indicator to Bollinger Bands or Ketner channels that uses ATR offsets as the corridor of possible movements, which I recommend changing to fit various tickers.
Also thrown in is EMA, default is 100 and 50 periods for trend direction and potential confirmation
UniStratV3 | QuantEdgeBUniversal Strategy V3 | QuantEdgeB
🔍 What is the Universal Strategy?
A dynamic, multi-engine trading framework engineered to adapt across asset classes, timeframes, and market conditions. It fuses multiple complementary signal engines into a single, unified decision model—automatically balancing speed, smoothness, momentum scoring, and breakout precision.
⚙️ Core Characteristics
• Multi-Engine Logic: Combines fast-reacting trend detection, adaptive smoothing, statistical momentum scoring, and volatility-normalized breakout confirmation.
• Modular Architecture: Each engine operates independently yet contributes to a unified signal index—allowing plug-and-play customization or replacement of individual components.
• Adaptive Thresholds: Dynamically adjusts trigger levels based on market volatility, percentile bands, or standard-deviation filters, ensuring robust performance in both quiet and turbulent conditions.
• Unified Signal Aggregation: Individual engine outputs (bullish/bearish) are averaged into a single trend, minimizing noise and reinforcing conviction.
🛠️ Construction & Structure
1. Signal Engines:
o Midline Cross Engines (RSI, Z-Score, ROC): Provide early directional cues by crossing their natural mid‐points.
o StDev Filters: Apply volatility bands around each raw engine to confirm only statistically significant moves.
o Normalized MA Engines: Transform simple, EMA, and ALMA moving averages into 0–1 signals via min/max normalization, capturing cross-asset momentum.
o Slope Engines: Combine base MA bands with normalized thresholds to detect breakouts validated by momentum direction.
o Wave/MACD Engines: Leverage classic MACD and a volume-adjusted wave oscillator to sense cyclical momentum extremes.
2. Aggregation Layers:
o Raw Score Layer: A straightforward average of +1/–1 from each engine subgroup.
o Filtered Score Layer: Applies standard-deviation filters to each engine’s raw value before re-scoring, reducing whipsaws.
o Composite Layer: Merges raw, filtered, normalized MA, slope, and wave scores into a final Trend Probability Index (TPI), which drives the long/short decision.
3. Visualization:
o Candles color-coded by final TPI sign.
o Mid- and threshold-lines (±0.34) denote trigger levels on the composite oscillator.
o Optional real-time tables display engine contributions, overall TPI, and backtest equity.
Each sub-input was selected and “meshed” to ensure no single engine dominates—fast modules flag initial trend, smoother modules confirm, filters refine, and normalization harmonizes scales so the final signal emerges as a balanced, multi-dimensional conviction score.
💡 Key Benefits
• Balance of Reactivity & Reliability: Fast-acting modules catch early trend shifts, while smoother, statistical layers confirm and filter false moves.
• Versatility Across Markets: Designed to work equally well in trending, range-bound, or high-volatility environments, and across equities, FX, commodities, and crypto.
• Customizable & Extensible: Users can tailor the number and type of engines, threshold methodologies, and signal-aggregation rules to match their style and risk tolerance.
• Transparency & Confidence: A real-time signal dashboard shows each engine’s contribution and the overall strategy, offering clear insight into what drives the strategy’s decisions.
📊 Generic Use Cases
1. Trend Capture
Identify and ride sustained directional moves with early-warning and confirmation engines.
2. Breakout Trading
Detect and validate volatility expansions while filtering out whipsaws.
3. Momentum Assessment
Quantify the strength behind price moves to distinguish fleeting spikes from genuine trends.
4. Cross-Asset Rotation
Apply the same framework to multiple symbols—allocating capital to the strongest opportunities.
📌 In Summary
The Universal Strategy V3 | QuantEdgeB is a framework, not a single indicator. By orchestrating diverse, forward-tested methodologies into one cohesive engine—and transparently combining their signals—it delivers adaptive precision, signal clarity, and robust performance—empowering traders to navigate any market environment with data-driven confidence.
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
2-Day ATR% & Smoothed Position Size (EMA)Position sizing based on 2 day atr. Used to vol target 1 position
OPTIONS GREEKS PROFESSIONAL DASHBOARD ANALYZEROPTIONS GREEKS’ PROFESSIONAL DASHBOARD ANALYZER
(Study Material & Script Description)
Overview
The "Professional Options Greeks Analyzer" by aiTrendview.com is a comprehensive analytical tool developed using the Black-Scholes Option Pricing Model. It is designed to help traders, investors, and financial analysts measure and visualize the most important first-order Greeks — Delta, Gamma, Theta, Vega, and Rho — along with key metrics like option pricing, implied volatility (IV), break-even points, moneyness, expected move, and risk level. This dashboard is highly configurable and supports various expiry durations, volatility assumptions, and strike price selection modes, providing a deeply customizable yet intuitive user interface.
________________________________________
Core Logic and Calculation Model
The tool is based on the Black-Scholes model, a well-known pricing method for European-style options. The model computes Call and Put prices using parameters such as current spot price (S), strike price (K), time to expiry (T), implied volatility (σ), and risk-free interest rate (r). The d1 and d2 components — central to Black-Scholes — are derived from logarithmic price ratios and volatility-adjusted time decay.
From these, all major Greeks are calculated:
• Delta: Measures the sensitivity of the option's price to the underlying asset's price.
• Gamma: Indicates the rate of change in Delta relative to changes in the underlying.
• Vega: Captures the sensitivity of the option's price to changes in implied volatility.
• Theta: Reflects the rate at which the option loses value due to time decay.
• Rho: Indicates the sensitivity to interest rate changes.
These values are updated in real time and displayed in a tabular format with visual progress bars to help traders interpret values more effectively.
________________________________________
Customization & User Inputs
The indicator allows users to adjust several key parameters to fit different trading scenarios:
• Implied Volatility (IV) can be manually input (default 25%), allowing traders to model expected outcomes under their assumptions.
• Strike Price Mode offers flexibility with "ATM" (At-the-Money) or "Custom" strike selection.
• Expiry Selection includes 7D, 14D, 30D, 60D, and 90D periods, making the Greeks adaptive to different option durations.
• Risk-Free Rate is configurable (default 4.5%) to reflect current economic conditions.
The tool also computes realized volatility from price action over 30 bars, which is compared with implied volatility to calculate IV Rank, categorized as HIGH, MEDIUM, or LOW. This helps traders decide whether options are relatively expensive or cheap.
________________________________________
Visual Dashboard and Interpretation
The dashboard is structured into five key rows:
1. Market Metrics: Asset name, spot price, selected strike, days to expiry, IV, IV Rank, trend over 1-day period, and moneyness (ITM/ATM/OTM).
2. Option Pricing: Call and Put prices, breakeven levels, time value components, expected move, and realized volatility.
3. Greeks: Displays Delta (with progress bar), Gamma, Vega, Theta (Call and Put), and visual interpretation.
4. Risk & Recommendation: Based on IV Rank and short-term trend, the script generates real-time suggestions (e.g., "BUY STRADDLES", "SELL CALL SPREADS").
5. Visual Encoding: Each data point is color-coded — green for positive, red for negative, and gray for neutral — enhancing visual clarity.
This layout not only provides transparency but also helps both novice and professional traders make quick and informed decisions.
________________________________________
Strategy Suggestions and Interpretation
The script provides a status-based recommendation engine that suggests strategic action based on market conditions:
• High IV & Rising Market: Suggests "SELL CALL SPREADS"
• High IV & Falling Market: Suggests "SELL PUT SPREADS"
• Low IV & Sideways Market: Suggests "BUY STRADDLES"
• Unclear Condition: Suggests "MONITOR"
Additionally, the risk level is determined by the Gamma value, which serves as a proxy for position sensitivity — categorized into HIGH, MEDIUM, or LOW.
________________________________________
Use Case and Trader Benefits
This tool is especially beneficial for:
• Options Traders analyzing multiple Greeks in real-time.
• Volatility Strategists comparing implied and realized volatility.
• Retail Investors evaluating premium pricing and moneyness quickly.
• Portfolio Managers visualizing risk and hedging exposures.
The real-time alert system, progress bars, and recommendation logic make it suitable for both manual trading and integration into automated strategies or alerts via webhook/notifications.
________________________________________
Practical Steps for Use
1. Load the script in TradingView’s Pine Script editor and apply it to your desired chart.
2. Choose your expiry duration and configure IV and strike price based on your trade thesis.
3. Observe the Greeks, pricing, IV Rank, and generated recommendations.
4. Use the dashboard to plan spreads, straddles, directional trades, or hedges accordingly.
5. Optionally, create alerts when IV Rank hits HIGH/LOW or when recommended strategies change.
________________________________________
Disclaimer by aiTrendview
The "Professional Options Greeks Analyzer" and all tools or materials provided by aiTrendview.com are strictly intended for educational and informational purposes only. They are not investment advice, financial recommendations, or trading signals. Options trading involves substantial risk and may not be suitable for all investors. Past performance does not guarantee future returns. Users are solely responsible for their decisions and are advised to test strategies in simulation environments before applying them to live trading. Please consult a certified financial advisor or legal counsel before making any financial decisions.
Bollinger Bands %b & RSI & Stochastic Smoothed Indicator & Alert
It’s works best on 1 Hour and larger timeframes (with high accuracy) .
This is very simple indicator, and not require much to explain, but let’s me point out my strategy view.
Swing trade is my favorite , so BB% + RSI + Stoch with 50 periods give a very good signal of enter and exit, IF all of them cross above or below 50 baseline. Supported by 20 & 45 MA or 50 & 200 , will provide an additional confidence.
Hint: As of larger periods such 50 period, are usually used for confirmation for enter and exit, so theoretical is indicator should work just fine on very small timeframes on 15 minutes and below .
Example 5 Min timeframe :
Disclaimer
These indicators are provided for educational purposes only and do not constitute financial advice or guarantees. Use is at your own risk, and all decisions remain your sole responsibility.
Trader's Club IndicatorTrader’s Club Indicator
The Trader’s Club Indicator is an advanced confluence-based tool combining Bollinger Bands , Relative Strength Index (RSI) , VWAP with multi-band overlays , and an intelligent chained divergence detection engine. It identifies potential buy/sell setups by aligning price extremes with momentum shifts and volume-weighted trends. The “E” signal highlights enhanced entry opportunities based on RSI divergence and price candle behaviour — offering a timing edge for informed traders.
TRADING METHOD
This indicator works best on 1-Minute candles. Tested it successfully on XAUUSD.
Buy signal: 'E' in a Blue box.
Sell signal: 'E' in a Red box.
Chained Divergence: White dot on the top or bottom of a candle. This shows possibility of a reversal from that zone.
Use the Buy/Sell signals in conjunction with the VWAP levels. If the Buy/Sell Signals form at VWAP and a key support/resistance level, that is an additional confluence.
Disclaimer
This indicator is for informational and educational purposes only. Trading involves risk, and you are solely responsible for your decisions. Do not rely solely on the buy/sell ‘E’ signals — it’s crucial to use additional confirmation, context, and personal judgment before placing trades. Always practice proper risk management and consider combining this indicator with broader technical or fundamental confluences.
ATR-Scaled Deviation OscillatorATR-DevOsc is a custom momentum-and-volatility adaptive oscillator that scales N-bar price momentum by its rolling deviation and then reacts dynamically to sudden ATR spikes. By shrinking the deviation window when true volatility surges, it amplifies extreme moves—making medium-term trend shifts and deep drawdowns far more likely to breach your predefined thresholds.
Key features include:
• configurable momentum length and separate deviation length for precise control over look-back periods
• ATR Reaction Multiplier to tune how strongly sudden volatility spikes contract the deviation, boosting oscillator amplitude during extreme moves
• independent upper and lower threshold inputs for clear long/short signal definitions
• integrated candle-coloring overlay to immediately visualize trend state on your price chart
• built-in alert conditions for both oscillator-threshold crossovers and ATR-reactive triggers
This indicator is particularly useful for swing traders seeking medium-term entry and exit points in highly volatile markets like BTC. It combines normalized momentum readings with true volatility feedback, so large drawdowns or breakouts generate unmistakable signal events while routine noise stays filtered.
Note: ATR-DevOsc is provided “as is” without formal robustness or optimization testing. Past performance is not indicative of future results; use in live trading only after sufficient back-testing and validation.
HiddenRidder - Donchain Keltner Bollinger Bands - Tom BassoCrafted this indicator mimicking Tom Basso method – the Legand.
//Market Wizard | Tom Basso
Tom’s use such method to give a confirmation of his orders (he known for his position sizing), where he wanted to waive all the noises and focus on the real trends only.
Trend is your friend , right !
Based on Tom’s account on X.com, he prefers 3 indicators “Donchain, Keltnet, Bolligner bands” which has 20 periods on upper trend and 50 period on downtrend. And he consider the sideway as a noise.
I preferred the visuality of indicators, and I noticed the 50 & 200 MA are providing an additional support for the confirmation!!.
It’s work best on 1 hour and larger timeframes.
Disclaimer
These indicators are provided for educational purposes only and do not constitute financial advice or guarantees. Use is at your own risk, and all decisions remain your sole responsibility.
HiddenRidder - 4x - SupertrendTrend is your friend , right !
Supertrend indicator was the king few years ago, which is based on ATR.
My work is to combine 4 of Supertrends to give clear signals for my favor swing trades.
Supported by 50 & 200 MA, give an additional clarity on signals and continuation.
Doesn't matter which timeframe prefer, after all it’s your time, trades combine with risk and rewards , right ! .
Below is 5 mins timeframe :
Image :
Disclaimer
These indicators are provided for educational purposes only and do not constitute financial advice or guarantees. Use is at your own risk, and all decisions remain your sole responsibility.
HiddenRidder - SCALP - 2 RSI + 2 Stoch + 2 %BBI must state, I’m NOT fan of intraday approach, but done some tradings with real money to verify my strategies.
Image:
Here you will see that I’m focus on 3 RSIs , main one is 50 period and it show a powerful stability on enter and exit my trades.
Adding a conformation indicators = RSI + Stoch + BB% , all in 12 period (for high volatility).
MA Cross 7 & 21 on small timeframes are convenient , on large timeframes that would be 20 & 45 or 50 & 200 .
Disclaimer
These indicators are provided for educational purposes only and do not constitute financial advice or guarantees. Use is at your own risk, and all decisions remain your sole responsibility.
HiddenRidder - LongTerm- TSI w/BBThis indicator is my secret . TSIs in 3 timeframe (super customized).
It’s work like charms on most timeframes (best results on 1 hour and larger timeframes).
It provides my with super convenient instruments; divergence signs, breakouts, trend direction. I’ve study it very well. (i may enhance code later to have divergence signs)
Additional: TSI indicators in 3 timeframes at the same chart.
Example: if current chart is Daily timeframe, so BLUE TSI line for current timeframe, and RED TSI line is for 1H timeframe , and the larger one with smoothly line for Weekly timeframe.
I added up the overbought and oversell, It shown clearly if it’s crossed the Bollinger band.
Not For sale . Sorry guy, but will let you try it , just DM me.
Disclaimer
These indicators are provided for educational purposes only and do not constitute financial advice or guarantees. Use is at your own risk, and all decisions remain your sole responsibility.