Volatility Percentile [EXCAVO]ATR Percentile Rank with Four-State Volatility Classification and Trend Detection
The Volatility Percentile measures where the current Average True Range stands
relative to its own history using a percentile rank. Rather than comparing ATR to a
fixed threshold, the indicator continuously evaluates whether current volatility is
low, normal, elevated, or extreme relative to the recent distribution - adapting
automatically to each instrument and timeframe.
This is not a basic ATR display. The percentile rank provides a normalized, context-aware
measure of volatility that remains comparable across assets, timeframes, and market cycles.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW TO USE
Step 1 → Add the indicator to a new pane. The histogram appears immediately,
colored by the current volatility state (blue, gray, orange, or red).
Step 2 → Read the state from the histogram color and dashboard. Blue = Low,
Gray = Normal, Orange = Elevated, Red = Extreme.
Step 3 → Note the percentile value. Above 80% indicates the current ATR is
in the top 20% of its historical range - unusually wide price swings.
Below 25% indicates unusually quiet conditions.
Step 4 → Check the Vol Trend row in the dashboard. RISING means the ATR is
accelerating above its 20-bar average. FALLING means it is contracting.
Step 5 → Set up state-change alerts to receive notifications when volatility
transitions between states on bar close.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW IT CALCULATES
◆ ATR Percentile Rank
The indicator computes ATR(length) on each bar, then applies ta.percentrank() over
the lookback period. The percentile rank answers: "Out of the last N bars, what
percentage had an ATR lower than today's?" A result of 80 means 80% of recent bars
had a smaller ATR - current volatility is in the top 20% historically. The rank
always falls between 0 and 100, making it directly comparable across instruments.
◆ Smoothing
The raw percentile rank is passed through a simple moving average of configurable
length (default 3 bars). This suppresses single-bar spikes that would otherwise
cause false state transitions. The smoothed value is used for both the histogram
display and state classification. Setting smoothing to 1 disables it entirely.
◆ Four-State Classification
The smoothed percentile is compared against three configurable thresholds to assign
one of four states: Low (below 25th percentile), Normal (25th to 60th), Elevated
(60th to 80th), or Extreme (above 80th). State boundaries are user-adjustable,
allowing calibration for instruments that spend more time at elevated volatility
levels (such as crypto) versus lower-volatility markets.
◆ Volatility Trend
A secondary calculation compares the current ATR to its 20-bar simple moving average.
ATR above 105% of the SMA is classified as RISING. ATR below 95% of the SMA is
classified as FALLING. Between those bands the trend is STABLE. This early-warning
layer detects momentum in volatility before a state boundary is crossed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ WHAT MAKES IT DIFFERENT
◆ Percentile Rank vs Fixed Threshold
A fixed ATR threshold (e.g., "ATR > 500 = high volatility") fails when applied across
different instruments or timeframes. The percentile approach self-calibrates: the same
indicator works on BTCUSD hourly and EURUSD daily without parameter changes, because
it measures volatility relative to the instrument's own recent history.
◆ Four States Instead of Two
Most volatility filters use a binary high/low split. Separating Normal from Elevated
and Extreme provides more granular awareness: Elevated volatility may still be
tradable, while Extreme conditions warrant a different approach to position sizing.
The four-state model also makes transitions visible earlier - Elevated appears before
Extreme is reached.
◆ Volatility Trend Detection
The Vol Trend layer detects whether ATR is currently accelerating or decelerating,
independently of which state it is in. It is possible to be in Normal state with
RISING trend (volatility building) or in Elevated state with FALLING trend
(volatility contracting back toward normal). This combination is visible only in the
dashboard and is not represented by the histogram color alone.
◆ ATR / Price Ratio
The dashboard shows ATR expressed as a percentage of the current close price. This
normalized measure is directly comparable across instruments and useful for estimating
stop distance relative to price without manual calculation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ DASHBOARD
Real-time panel showing current volatility conditions:
State - active volatility state (LOW / NORMAL / ELEVATED / EXTREME), colored by type
Percentile - current smoothed ATR percentile rank (0-100%)
ATR - raw ATR value in price units for the current bar
ATR / Price - ATR expressed as a percentage of close price
Vol Trend - volatility momentum (RISING / FALLING / STABLE) vs 20-bar ATR average
Lookback - active lookback period used for percentile calculation
Legend table (bottom left) explains histogram colors and boundary lines. Both panels
toggle in Dashboard settings.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ SETTINGS
Engine
ATR Length - 14 bars (period for Average True Range calculation)
Lookback Period - 200 bars (history window for percentile rank)
Smoothing - 3 bars (applied to raw percentile; 1 = no smoothing)
State Thresholds
Low / Normal - 25 (percentile boundary between Low and Normal states)
Normal / Elevated - 60 (percentile boundary between Normal and Elevated states)
Elevated / Extreme - 80 (percentile boundary between Elevated and Extreme states)
Visualization
Low Vol Color - default blue
Extreme Vol Color - default red
Elevated Vol Color - default orange
Show State Ribbon - OFF (colored markers at pane bottom)
Background Highlight - ON (subtle tint matching active state)
Alerts
JSON Alerts - OFF (enable for bot integration)
Dashboard
Dashboard Position - Top Right
Show Dashboard - ON
Show Legend - ON
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ ALERTS
Extreme Volatility - state transitioned to Extreme on bar close
Elevated Volatility - state transitioned to Elevated on bar close
Normal Volatility - state transitioned to Normal on bar close
Low Volatility - state transitioned to Low on bar close
Volatility State Change - any state transition detected on bar close
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best regards,
EXCAVO
Disclaimer
Trading involves significant risk. This indicator is a technical analysis tool
and does not constitute financial advice, investment recommendations, or a
guarantee of future results. Past indicator behavior does not guarantee future
performance. Always use proper risk management and your own judgment.
Indicator

Intra-Bar Activity Index (IAI) [Adaptive Volume & Volatility]… is an adaptive percentrank-based analysis of Volume and Volatility (true-range). It dynamically toggles between request.lower_tf-reconstruction and cumulative lower_tf chart data (simulating continual ltf_request).
Core Features:
1. The Formula for True Activity
The IAI doesn't just measure price action; it calculates the energetic density behind every bar.
• Volume + Volatility = Activity: You have full control over how these metrics are weighted via individual thresholds. You can set a pure volume signal, a pure volatility signal, or any mix to your liking. Institutional engagement only becomes visible once your calibrated thresholds are breached.
• Individual Calibration: Through the ltf_request and percentrank, you define your own statistical benchmark and how "exclusive" a signal should be.
2. Adaptive Live-Mode (The Signal Bridge)
The system seamlessly switches to Live-Transfer mode as soon as you zoom into lower timeframes.
• Early Warning System: The Live-Tracker detects signals while the higher timeframe (HTF) bar is still forming.
• Hidden Signals: It uncovers activity spikes that would be "smoothed out" if you only looked at the final close of the HTF bar (e.g., H2).
3. Dashboard for Data Integrity (Data Honesty)
We visualize technical limits instead of hiding them.
• 🛡️ Verified: Live data matches the „historical baseline“.
• ⚠️ Warning: The Live-Tracker deviates statistically (e.g., due to Pine Script's 4900-bar limit).
• No Stat. Control: Transparent notification in Replay Mode when no historical reference data is available for your setup.
4. Intelligent Alert System
• In Live-Mode, you receive alerts as soon as a lower-timeframe interval (e.g., M10) completes with high energy, providing a lead-time advantage over the final HTF bar close
• Context-Sensitive: The message informs you directly about the current mode (HTF-Request vs. Live-Transfer) and the data status.
🚀 Quick Calibration Tips
1. Sensitivity: Increase the Lookback Period for more stable, long-term statistics; decrease it for a more reactive, fast-paced Index.
2. Threshold Setup: Start with 85% for both Volatility and Volume.
3. The Visual Check: Open the settings menu and activate the Price Chart Dots. Calibrate your Thresholds by observing the position of the dots until they match your market interpretation.
4. Dashboard Check: Always keep an eye on the Confidence Score. If it drops or turns red, consider adjusting your Timeframe or Lookback to maintain full Data Integrity.
🎨 Visual Guide: How to Read the Index
• Navy Bars (Normal Engagement): The market is healthy and active, but hasn’t reached "exceptional" levels yet. This represents standard participation.
• Gray Bars (Low Interest): Market is in a "Dry Volume" phase. Volume is below your Low Volume Threshold. Institutional interest is currently negligible.
• Silver/Orange Area (Volatility): This background area represents the Volatility Percentile. Even if volume is low, you can instantly see if the price activity (True Range) is expanding.
• Orange Bars (IAI Active): The "High Energy" phase. These appear only when both Volatility and Volume cross your individual thresholds simultaneously. (The bar height continues to represent the Volume Percentrank).
• Price Chart Dots (IAI Anchor): Optional orange circles that appear directly on your candles (High/Low). They provide a quick visual link between the oscillator's momentum and the specific price action.
⚠️ Important Technical Notifications
1. The "Signal Bridge" Logic (Rolling vs. Fixed Window)
• HTF-Request Mode (Fixed Window): On a H2 chart, the index measures activity starting from the candle open (e.g., 12:00 PM). At 12:40 PM, the calculation only includes the first 40 minutes of data. It grows as the bar progresses.
• Live-Transfer Mode (Rolling Window): On a M10 chart, the IAI simulates the H2 energy by always analyzing the last 120 minutes. At 12:40 PM, it processes the window from 10:40 AM to 12:40 PM.
• Early Detection: This provides a significant lead-time advantage. You detect institutional spikes as they happen, regardless of the official HTF clock. Both modes converge at the close of the H2 candle (e.g., at 02:00 PM).
2. Data Integrity & Timeframe Anomalies
The 5000-bar limit is not the only factor for "Data Honesty".
• Session Gaps: Using D1 as the Main-TF can be tricky in Forex markets, where Sunday sessions often only last a few hours. Such irregularities can cause statistical shifts depending on your Lookback Period.
• Action: Always monitor the Confidence Score (🛡️). If it drops, consider adjusting your Timeframe or Lookback to maintain a solid statistical baseline.
3. Replay Mode & Historical Gaps
• The IAI transparently displays "No Stat. Control" during Bar Replay if historical lower-timeframe data is unavailable for that specific segment. We prioritize data honesty over showing "estimated" or faked data.
4. How to set Alerts (Smart Signals)
To activate the IAI early warning system, follow these steps in the PulseWire Alert Menu:
1. Condition (1st Box): Select "pct_IAI".
2. Trigger Logic (2nd Box): Change the setting to "Any function call"
3. Frequency / Timeframe:
• The alert frequency is automatically managed by the script (once_per_bar_close) to ensure data honesty and prevent repainting.
• The type of signal depends on your chart: Use the Main-TF (e.g., H2) for final HTF-signals, or a Lower-Timeframe (e.g., M10) to receive the Live-Tracker early warnings.
Intelligence: You don’t need to type a message. The alert is fully dynamic—it automatically reports the Mode (Live vs. HTF), the Safeguard-Status, and the Data Integrity (Verified vs. Low Integrity) directly to your device.
📊 Understanding the Data Window (Statistical Transparency)
The IAI performs complex statistical comparisons under the hood. To keep the chart clean, these raw metrics are not plotted visually but are displayed exclusively in the PulseWire Data Window (right sidebar). They provide full transparency:
• Runtime-Safe LTF: Displays the analysis interval currently in use. If this value is red, the script automatically adjusted the interval to prevent a runtime error (e.g., if your chart timeframe is larger than your selected LTF).
• Max Safe Lookback for this TF: The mathematical limit for your current setup. It calculates at which point your Lookback Period exceeds Pine Script's technical 5,000-bar limit.
• Active Bar Limit: The actual usable data foundation. If this value turns red, your selected lookback is statistically "clipped" because not enough historical data points can be retrieved.
• Converted Sum of LTF Request Bars: This converts the historical baseline (HTF-Request) into current chart units. It serves as the anchor point for the comparison with the Live-Tracker.
• Relative Live-Data Size: The numerical basis of your Confidence Score. It shows the ratio between the real-time data stream and the historical expectation. A value near 100% indicates absolute statistical integrity.
• Overall Requested Bars: The total number of individual data points analyzed within your selected Lookback Period.
Indicator

Indicator

Normalized Fisher Transformed VolumeGreetings Traders,
I am thrilled to introduce a game-changing tool that I've passionately developed to enhance your trading precision – the Normalized Fisher Transformed Volume indicator. Let's dive into the specifics and explore how this tool can empower you in the markets.
Unlocking Trading Precision:
Normalization and Transformation:
Normalize raw volume data to ensure a consistent scale for analysis.
The Fisher Transformation converts normalized volume data into a Gaussian distribution, providing enhanced insights into trend dynamics.
Flexible Modes for Tailored Strategies:
Choose from three distinct modes:
Volume T3 (MA) + Heatmap: Identify trends with T3 Moving Average and visualize volume strength with Heatmap.
Volume Percent Rank: Evaluate the position of current volume relative to historical data.
Volume T3 (MA) Percent Rank: Combine T3 Moving Average with percentile ranking for a comprehensive analysis.
Heatmap Visualization for Quick Insights:
Heatmap Zones and Lines visually represent volume strength relative to historical data.
Customize threshold multipliers and color options for precise Heatmap interpretation.
T3 Moving Average Integration:
Smoothed representation of volume trends with the T3 Moving Average enhances trend identification.
Percent Rank Analysis for Context:
Gauge the position of normalized volume within historical context using Percent Rank analysis.
User-Friendly Customization:
Easily adjust parameters such as length, T3 Moving Average length, Heatmap standard deviation length, and threshold multipliers.
Intuitive interface with colored bars and customizable background options for personalized analysis.
How to Use Effectively:
Mode Selection:
Identify your preferred trading strategy and select the mode that aligns with your approach.
Parameter Adjustment:
Fine-tune the indicator by adjusting parameters to match your preferred trading style.
Interpret Heatmap and T3 Analysis:
Leverage Heatmap and T3 Moving Average analysis to spot potential trend reversals, overbought/oversold conditions, and market sentiment shifts.
Conclusion:
The Normalized Fisher Transformed Volume indicator is not just a tool; it's your key to unlocking precision in trading. Crafted by Simwai, this indicator offers unique insights tailored to your specific trading needs. Dive in, explore its features, experiment with parameters, and let it guide you to more informed and precise trading decisions.
Trade wisely and prosper,
simwai Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator
