ATR 0.5x & 1x Distance (Horizontal)What this version does (no ambiguity)
Plots true horizontal dashed lines
One at ±0.5 × ATR
One at ±1.0 × ATR
Lines extend to the right (proper levels, not floating spaghetti)
ATR is calculated from the active chart timeframe
30m chart → 30m ATR
1H chart → 1H ATR
Clean, stable, no repainting tricks
Important detail (this matters for your strategy)
The lines are anchored to a reference price, which is currently configurable:
Default: close
You can change it to:
VAH
VAL
POC
Any plotted level
This is exactly what you want for:
“How far beyond value has price gone in ATR terms?”
How you’ll likely use this in practice
For your mean-reversion framework:
Anchor Reference Price = VAH or VAL
Treat:
0.5× ATR → probabilistic rejection zone
1.0× ATR → acceptance / thesis failure
No more eyeballing. No more dragging stops because “the candle looked angry.”
Indikatoren und Strategien
Ultimate Trading Suite BTC with Mystic Pulse V2Ultimate Trading Suite BTC with Mystic Pulse V2 test with trade.
Varun's 4 min StrategySends buy and sell signals on a 4 min chart analyzing MACD. BUY WHEN MACD IS TURNING UPWARD AND SELL WHEN MACD IS TRUNING SOUTH
RSI Dashboard Multi-TF This script displays RSI values from multiple timeframes in a compact dashboard directly on the chart.
It is designed for traders who want to quickly identify whether the market is overbought, oversold, or neutral across different timeframes, without constantly switching chart intervals.
The dashboard shows the RSI simultaneously for the following timeframes:
- 1 minute
- 3 minutes
- 5 minutes
- 15 minutes
- 1 hour
- 4 hours
- Daily
Typical use cases:
- Scalping & intraday trading
- Multi-timeframe analysis at a glance
- Entry confirmation (e.g. pullbacks, breakouts)
- Avoiding trades against overbought or oversold market conditions
- Complementing EMA, VWAP, or price action strategies
⚙️ Notes
This dashboard is an analysis tool, not an automated trading system.
No repainting (uses request.security).
Suitable for indices, forex, crypto, and commodities.
This RSI dashboard provides a fast, clear, and visually clean market overview across multiple timeframes, making it an ideal tool for active traders who want to make efficient and well-structured trading decisions.
Delta Volume Bubble [Quant Z-Score] by tncylyvDelta/Volume Bubble by tncylyv
This indicator is a quantitative order flow tool designed to visualize statistically significant volume and delta anomalies directly on the price chart. By moving away from raw, noisy volume numbers and utilizing Z-Score (Standard Score) statistics, this tool adapts to changing market volatility to highlight areas of heavy institutional interest or exhaustion.
It combines statistical analysis with Price Action concepts (Effort vs. Result) to detect "Absorption"—market conditions where high volume occurs with very little price movement.
1. Core Concepts & Methodology
A. Adaptive Z-Score (The "Quant" Logic)
Raw volume data is often difficult to interpret because volume fluctuates wildly between sessions (e.g., the Asian session typically has lower volume than the New York Open).
Instead of using a fixed volume threshold (e.g., "Alert me if volume > 1000"), this script calculates the Z-Score.
It measures how many Standard Deviations (
σ
) the current volume is from the historical average.
Significance: A Z-Score of +2.0 or higher puts the current candle in the top 5% of statistical occurrences, filtering out noise and highlighting true anomalies.
B. Absorption Detection (Effort vs. Result)
This feature identifies "Trapped Traders."
The Logic: If the Z-Score indicates extremely high volume (High Effort), but the price candle has a very small body (Low Result), it implies that aggressive market orders are being absorbed by passive limit orders.
Visual: These specific anomalies can be highlighted with a unique halo effect, signaling a potential reversal or stop-hunt area.
C. Intra-Bar True VWAP (Smart Placement)
Standard indicators usually plot symbols at the High, Low, or Close of a candle.
This script utilizes request.security_lower_tf to analyze the Lower Timeframe (LTF) structure of the specific bar.
It calculates the exact Volume Weighted Average Price (VWAP) of that single candle.
Benefit: The bubble is drawn exactly where the heaviest volume occurred inside the candle, providing a more accurate level for future Support/Resistance tests.
2. Key Features
Dual Data Modes: Switch seamlessly between Volume Delta (Buying vs. Selling pressure) or standard Total Volume.
Dynamic Sizing: Bubble sizes (Small, Medium, Large) scale automatically based on the intensity of the Z-Score.
Absorption Logic: Automatically flags candles where volume is high but price progression is stalled.
Adaptive Visuals: Colors and opacity can fade dynamically based on the strength of the signal, or remain solid based on user preference.
Alert System: Fully configurable alerts for Z-Score breakouts and Absorption detection.
3. How to Use
This tool is best used to identify Reversals and Breakout Validation.
Trend Exhaustion (Climax):
If price is trending up and a large "Bullish" bubble appears at the highs with a long upper wick or small body (Absorption), it may indicate buying exhaustion and passive selling.
Breakout Confirmation:
If price breaks a key support/resistance level accompanied by a Large Bubble (High Z-Score), it confirms institutional backing for the move.
Support/Resistance Defense:
The "True VWAP" location of the bubble often acts as a re-test level. If price retraces to the center of a previous large bubble, observe for a reaction.
4. Settings Guide
Data Settings
Calculation Source: Choose between Volume Delta (Up/Down tick analysis) or Regular Volume.
Lower TF Granularity: The timeframe used to calculate the specific "True VWAP" location inside the bar (e.g., 1S or 1M).
Statistical Lookback: The number of bars used to calculate the baseline Average and Standard Deviation (Default: 60).
Quant Logic
Calculation Mode:
Adaptive (Z-Score): Triggers based on relative statistical anomalies (Recommended).
Fixed: Triggers based on raw volume numbers.
Z-Score Threshold: The sensitivity level. 2.0 is standard; higher values (e.g., 3.0) will show fewer, more extreme signals.
Absorption Logic
Detect Absorption: Enables the calculation for small-bodied high-volume candles.
Absorption Ratio: Defines how "small" the body must be relative to the average to qualify as absorption (0.1 to 1.0).
Visuals
Theme: Switch between Dark (Mint/Coral) and Light (Royal/Sunset) themes.
Scale Size: If enabled, bubbles grow larger as the Z-Score increases.
Glow Effect: Adds a neon glow for better visibility on dark backgrounds.
________________________________________
Risk Disclaimer:
This indicator is for informational and educational purposes only. Volume and Delta analysis are subjective interpretation methods. Past performance, or statistical anomalies shown by this script, do not guarantee future results. Always manage your risk appropriately.
Varun's 1 min & 4 min Chart Combo StrategyThis strategy is designed to send laser crisp buy and sell signals on a 1 minute chart after also analyzing the 4 minute chart and removing the noise in the 1 minute chart.
Ultimate Trading Suite BTCLONG or SHORT very sample. Green to go Long, Bull market, Red go Short, Bear market.
Easy DashboardREAD DISCLAIMER BELOW BEFORE USE
The ultimate TradingView dashboard for tracking up to 24 tickers in real-time. Stay on top of your P&L, Volatility (ATR), and Earnings countdown without ever leaving your chart.
Total Privacy: No hardcoded data. Input your holdings privately via the settings menu.
Risk Control: Built-in "traffic light" system for ATR % and Volume % to spot volatility and institutional activity.
Earnings Alerts: Automated countdowns that turn red when an Earnings Report is less than 7 days away.
Complete Wealth View: Live tracking of Daily P&L, Cash, and Total Net Worth.
Clean UI: Fully customizable positions, text sizes, and a "Minimal Mode" for a distraction-free workspace.
DISCLAIMER
IMPORTANT: READ BEFORE USE
This indicator is provided for educational and informational purposes only.
Not Financial Advice: The information, metrics, and calculations displayed by this script do not constitute financial, investment, or trading advice.
Not an Inducement: Nothing within this script should be construed as a recommendation or an inducement to buy, sell, or hold any financial instrument.
Accuracy & Risks: While every effort is made to ensure technical accuracy, trading involves significant risk of loss. Past performance is not indicative of future results.
User Responsibility: All data entered (Tickers, Quantities, Cash) is processed locally. The user is solely responsible for verifying the accuracy of the data and for any financial decisions made based on the output of this script.
Fictitious Data: All pre-entered values in this demo version are fictitious and intended for demonstration purposes only.
IronRod SMI Histogram (Lower) [NPR21]🔹 IronRod SMI Histogram (TOS-Style)
Overview
IronRod SMI Histogram is a refined, ThinkorSwim-faithful implementation of the Stochastic Momentum Index (SMI) designed for clarity, momentum strength, and chop detection.
This version focuses on:
Clean, vibrant visuals
Clear momentum direction
Easy identification of trend vs. chop
Smooth behavior across all timeframes and instruments
If you used SMI on ThinkorSwim, this will feel instantly familiar — but optimized for TradingView.
📊 What This Indicator Shows
1️⃣ SMI Line (Momentum Direction)
Bright Green Line → Momentum strengthening upward
Red Line → Momentum weakening / bearish
The slope of the line reflects momentum strength, not just direction.
Steeper = stronger momentum
Flatter = momentum slowing
2️⃣ Histogram (Momentum Strength & Acceleration)
Green Histogram → Bullish momentum
Red Histogram → Bearish momentum
Neutral Gray Histogram → Weak / indecisive momentum
Histogram height and thickness visually represent momentum acceleration or deceleration, making shifts easy to spot without staring at numbers.
3️⃣ Chop Zone (Market Regime Filter)
ellow Chop Band → Market is range-bound / choppy
Outside the band → Momentum is strong enough to favor trend trades
This helps you avoid over-trading during low-probability chop and focus only when momentum matters.
🧠 How Traders Use It
✅ Trend Confirmation
Trade with the histogram color
Favor longs when:
SMI is rising
Histogram is green
Price aligns with your trend tools (EMA, VWAP, structure, etc.)
Favor shorts when:
SMI is falling
Histogram is red
✅ Momentum Shifts (Early Clues)
Watch for:
Histogram shrinking → momentum slowing
Color fading to gray → loss of conviction
Often precedes:
Pullbacks
Trend pauses
Potential reversals
🚫 Chop Avoidance
When price and SMI stay inside the yellow chop zone, probability drops.
Best used as a filter:
“If SMI is chopping, size down or wait.”
🕒 Works On Any Market & Timeframe
Futures
Crypto
Forex
Scales cleanly from 1-minute scalping to higher-timeframe swing trading.
🎯 Best Used With
EMAs / VWAP
Market structure (HH/HL, LH/LL)
Supply & demand zones
Volume or delta tools
This indicator is not meant to be a standalone signal generator — it’s a high-quality momentum confirmation tool.
IronRod SMI Histogram (Lower) [NPR21]🔹 IronRod SMI Histogram (TOS-Style)
Overview
IronRod SMI Histogram is a refined, ThinkorSwim-faithful implementation of the Stochastic Momentum Index (SMI) designed for clarity, momentum strength, and chop detection.
This version focuses on:
Clean, vibrant visuals
Clear momentum direction
Easy identification of trend vs. chop
Smooth behavior across all timeframes and instruments
If you used SMI on ThinkorSwim, this will feel instantly familiar — but optimized for TradingView.
📊 What This Indicator Shows
1️⃣ SMI Line (Momentum Direction)
Bright Green Line → Momentum strengthening upward
Red Line → Momentum weakening / bearish
The slope of the line reflects momentum strength, not just direction.
Steeper = stronger momentum
Flatter = momentum slowing
2️⃣ Histogram (Momentum Strength & Acceleration)
Green Histogram → Bullish momentum
Red Histogram → Bearish momentum
Neutral Gray Histogram → Weak / indecisive momentum
Histogram height and thickness visually represent momentum acceleration or deceleration, making shifts easy to spot without staring at numbers.
3️⃣ Chop Zone (Market Regime Filter)
ellow Chop Band → Market is range-bound / choppy
Outside the band → Momentum is strong enough to favor trend trades
This helps you avoid over-trading during low-probability chop and focus only when momentum matters.
🧠 How Traders Use It
✅ Trend Confirmation
Trade with the histogram color
Favor longs when:
SMI is rising
Histogram is green
Price aligns with your trend tools (EMA, VWAP, structure, etc.)
Favor shorts when:
SMI is falling
Histogram is red
✅ Momentum Shifts (Early Clues)
Watch for:
Histogram shrinking → momentum slowing
Color fading to gray → loss of conviction
Often precedes:
Pullbacks
Trend pauses
Potential reversals
🚫 Chop Avoidance
When price and SMI stay inside the yellow chop zone, probability drops.
Best used as a filter:
“If SMI is chopping, size down or wait.”
🕒 Works On Any Market & Timeframe
Futures
Stocks
Crypto
Forex
Scales cleanly from 1-minute scalping to higher-timeframe swing trading.
🎯 Best Used With
EMAs / VWAP
Market structure (HH/HL, LH/LL)
Supply & demand zones
Volume or delta tools
This indicator is not meant to be a standalone signal generator — it’s a high-quality momentum confirmation tool.
Malama's Universal anchored M.A.Malama's Universal Anchored M.A. (UMA+) is a highly versatile, all-in-one moving average framework that supports over 28 different calculation methods — from classic (SMA, EMA) to advanced adaptive and Ehlers-based filters (KAMA, FRAMA, MAMA/FAMA, Super Smoother, Kalman, etc.). It features an innovative Anchored Mode that resets calculations from a user-defined point (specific date/time, bars back, or the start of data), making it perfect for analyzing price action relative to key market events like earnings, FOMC news, or cycle starts.
The MA dynamically colors based on price position, includes an optional fill for trend visualization, and features a clean on-chart dashboard with crossover alerts.
Key Features
28+ Moving Average Types: Includes SMA, EMA, WMA, TMA, VWMA, HMA, ALMA, VIDYA, DEMA, TEMA, KAMA, ZLEMA, T3, Hull-like, FRAMA, McGinley Dynamic, LSMA, SMMA, Super Smoother, Laguerre Filter, Cyber Cycle, MAMA/FAMA, Reflex, Trend Reflex, Dominant Cycle, Non-Lag MA, and Kalman Filter.
Anchored Calculations: Reset the MA calculation from a specific reference point:
By Date/Time: Analyze trends starting from a specific news event.
Bars Back: Anchor to a specific recent high or low.
First Bar: Anchor to the beginning of the available data.
Visual Anchor Marker: A dashed vertical line with an anchor (⚓) icon clearly marks the reset point.
Dynamic Coloring: The line and fill change color based on whether price is Above (Bullish) or Below (Bearish) the MA.
On-Chart Dashboard: A compact, movable table displaying:
Current MA Type & Length
Real-time Value & Price Position
% Deviation from the MA
Trend Direction (UP/DOWN/FLAT)
Anchor details (if enabled)
Strategy Ideas: Stacking for Crossovers
Create your own custom crossover strategy by adding this indicator to your chart twice! Because UMA+ supports so many calculation methods, you can "stack" two instances to build unique trend-following systems:
Add UMA+ Twice: Apply the script to your chart two times.
Configure the "Fast" MA: On the first instance, select a responsive type (e.g., Hull MA or T3) with a lower length (e.g., 9 or 14).
Configure the "Slow" MA: On the second instance, select a smoother type (e.g., KAMA or Super Smoother) with a higher length (e.g., 50 or 100).
Trade the Cross: Look for the "Fast" MA line crossing the "Slow" MA line to identify potential trend reversals or entry points. This allows you to combine the responsiveness of modern filters with the stability of classic trend lines.
Why This Indicator Stands Out
Unlike standard multi-MA scripts that only switch types, UMA+ combines extreme flexibility with Anchored Analysis. This allows traders to measure trend strength and responsiveness from significant reference points rather than an arbitrary rolling window. It is exceptionally useful for:
Post-Event Analysis: See how price respects an average anchored specifically to an earnings release or Fed announcement.
Cycle Trading: Measure trends from specific cycle lows.
Lag Reduction: Utilize advanced filters like Kalman, T3, or Ehlers series to reduce lag in trending markets while maintaining smoothness.
How to Use
Choose Your MA: Select from the extensive list. Experiment with adaptive types (KAMA, VIDYA) for choppy markets or low-lag types (Hull, ZLEMA) for scalping.
Enable Anchor (Optional): Toggle "Enable Anchor" to fix the start point of the calculation. Use the "Date/Time" method to align with specific market catalysts.
Interpret the Dashboard:
Bullish Momentum: Look for "Price ABOVE," a positive Deviation %, and "Trend UP."
Reversion: Extreme deviation values may indicate price is overextended and due to snap back to the MA.
Disclaimer
This indicator is for educational and informational purposes only. It is not financial advice. Past performance does not guarantee future results. Always use proper risk management and combine with your own analysis. Trading involves substantial risk of loss.
RSI Divergence + MTF Table FinalThis is a professional, high-impact English description for your RSI Divergence + MTF Table Final script, designed to attract users on TradingView by highlighting its institutional-grade features.
Institutional RSI Divergence & MTF Confluence Heatmap
Overview
The Institutional RSI Divergence & MTF Confluence Heatmap is a professional-grade analytical tool designed for high-precision traders. It combines Automated RSI Divergence Detection with a Multi-Timeframe (MTF) Heatmap Table, allowing you to monitor market momentum across 8 different timeframes (from 1-minute to 1-day) without ever switching charts.
Key Features
🔍 Automated Divergence Detection: Instantly identifies Regular Bullish and Bearish divergences on the RSI oscillator, marking them with clear "Bull" and "Bear" labels.
📊 MTF Heatmap Grid: A real-time monitoring table that tracks RSI values across: 1m, 5m, 15m, 30m, 1h, 4h, 12h, and 1D.
🎨 Dynamic "Institutional" Color Logic: The table uses a sophisticated color-coded system to highlight extreme exhaustion and momentum:
Ultra Overbought (RSI > 90): Bright Red (Extreme Reversal Zone).
Overbought (RSI > 80): Orange (High Momentum/Caution).
Oversold (RSI < 26): Lime Green (Potential Accumulation).
Neutral: Gray (Consolidation).
🛠️ Flexible Layout Engine: Toggle between Vertical or Horizontal layouts to fit your chart workspace perfectly.
🚀 Pine Script v6 Optimized: Built with the latest TradingView engine for ultra-fast performance and minimal lag.
Trading Strategy: The Power of Confluence
Cross-Timeframe Confirmation: The strongest reversals occur when multiple timeframes (e.g., 15m, 1h, and 4h) all turn Orange/Red or Lime simultaneously. This represents a massive momentum exhaustion.
Divergence Validation: Use the table to see if a detected "Bull" divergence on your current timeframe is backed by "Oversold" conditions on higher timeframes.
Institutional Sniping: Combined with Demand/Supply zones, this script helps you "snipe" entries at the exact moment market momentum peaks or bottoms out.
Settings & Customization
Toggle Compact Mode: Display a minimal version of the table for a cleaner interface.
Custom Thresholds: Modify RSI levels to suit your specific trading style (Scalping vs. Swing Trading).
Table Position: Move the heatmap to any corner of your screen (Top Right, Bottom Left, etc.).
MACD-v Bullish/Bearish DivergenceMACD-v Bullish/Bearish Divergence
Overview This indicator is a specialized divergence detector based on the MACD-v (Volatility Normalized Momentum) concept. Unlike standard MACD which uses absolute price differences, MACD-v normalizes values against volatility (ATR), allowing for fixed, universal Overbought/Oversold thresholds across all assets and timeframes.
Recommendation: This script is highly effective when paired with the original MACD-v by Alex Spiroglou. While this indicator focuses on identifying and visualizing divergence entries, using the original oscillator alongside it provides the best visual context for the overall momentum structure.
How It Works
This tool uses a dual-signal mechanism (Raw Line + Signal Smooth) to identify specific divergence setups:
Setup (Yellow/Blue Dots): Identifies when price momentum has extended significantly into extreme zones (Overbought/Oversold).
Trigger (Red/Green Dots): Fires when price fails to make a new momentum extreme despite price action (classic divergence/failure swing).
Active State (Background Color): Once a trigger fires, the background highlights (Red for Bearish, Green for Bullish) to indicate an active divergence play.
Reset (Exit): The signal state clears when momentum returns to the neutral "safe zone."
Important Note: Momentum Washout
The colored background persists as long as the divergence trade remains valid. Traders should note the concept of "Momentum Washout":
Signal End: The background color turns off when the MACD returns to the neutral range, indicating the primary high-velocity impulse is over.
Performance Continuation: Significant positive or negative price performance can often continue even after the background signal ends. This period allows the remaining momentum to "wash out" or drift before the next major impulse.
Strategy Tip: The indicator is designed to capture the high-volatility portion of the reversal. Do not assume the end of the signal is the absolute top or bottom of the trend; it simply marks the normalization of momentum.
Strategy Recommendation: Multi-Timeframe Analysis
Divergence signals are most powerful when confirmed across timeframes. It is highly recommended to look for alignment before taking a trade:
Trend Confirmation: If you see a signal on a lower timeframe (e.g., 5m or 15m), check a higher timeframe (e.g., 1H or 4H). A bullish divergence on the 5m is significantly more reliable if the 1H momentum is already bullish or oversold.
Signal Stacking: Valid signals often appear sequentially—first on the 1m, then the 5m, and finally the 15m. Waiting for this "cascade" can filter out false reversals.
Visual Guide
🔵 Blue Dot: Bullish Divergence Setup (Watch for entry).
🟢 Green Dot: Bullish Divergence Trigger (Long Entry).
🟡 Yellow Dot: Bearish Divergence Setup (Watch for entry).
🔴 Red Dot: Bearish Divergence Trigger (Short Entry).
Background Color: Indicates an active trade (Red = Bearish / Green = Bullish).
Settings
Auto-Detect: Automatically switches between Scalping settings (tighter thresholds) for low timeframes and Swing settings for high timeframes.
Strict Invalidation: If enabled, cancels a setup if momentum pushes too far in the opposite direction before triggering.
Active Signal Multiplier: Dynamically smooths the signal line only when a trade is active to prevent premature exits during choppy corrections.
Disclaimer: This tool is for educational purposes and trend analysis only. Always manage your risk appropriately.
Elite Net Cash by Mashrab🚀 Elite Net Cash Dashboard code by Mashrab
Stop switching tabs. Get the full fundamental picture instantly.
This dual-panel dashboard puts institutional-grade data right on your chart. It splits the "heavy math" from the "market context," giving you a clean, professional view of a company's true value and trading personality.
🔥 Why You’ll Love It
Two Smart Tables:
Financials: See the health check immediately—Net Cash, Cash Backed %, Free Cash Flow, and Revenue Growth.
Profile: Know who you are trading—Market Cap (with auto-class like "Mega" or "Small"), Volatility (ADR), and Sector.
Auto-ETF Mapping: It automatically tags the sector with its matching ETF (e.g., Technology (XLK)). Perfect for quickly checking relative strength!
Volatility Alerts: The ADR (Average Daily Range) turns Yellow if the stock moves more than 5% a day. Know the risk before you size your position.
Minimalist Mode: Want a clean chart? Uncheck the "Borders" box in settings for a sleek, text-only floating display.
🎯 How to Trade It
Check the Green: Look at the Financials table. Green numbers mean the company is cash-rich and growing.
Check the Moves: Look at the Profile table. High ADR means expect wild swings; Mega Cap means steady stability.
Check the Sector: Use the ETF tag to see if the whole industry is moving or just this stock.
⚙️ Make It Yours
Split the View: Put Financials top-right and Profile bottom-right (or anywhere else).
Style It: Toggle borders on/off and pick your colors.
Advanced Multi-Level S/R ZonesAdvanced Multi-Level S/R Zones: The Comprehensive Guide
1. Introduction: The Evolution of Support & Resistance:
Support and Resistance (S/R) is the backbone of technical analysis. However, traditional methods of drawing these levels are often plagued by subjectivity. Two traders looking at the same chart will often draw two different lines. Furthermore, standard indicators often treat every price point equally, ignoring the critical context of Volume and Time.
The Advanced Multi-Level S/R Zones script represents a paradigm shift. It moves away from subjective line drawing and toward Quantitative Zoning. By utilizing statistical measures of variability (Standard Deviation, MAD, IQR) combined with Volume-Weighting and Time-Decay algorithms, this tool identifies where price is mathematically most likely to react. It treats S/R not as thin lines, but as dynamic zones of probability.
2. Core Logic and Mathematical Foundation:
To understand how to use this tool optimally, one must understand the "engine" under the hood. The script operates on four distinct pillars of logic:
A. Session-Based Data Collection:
The script does not look at every single tick. Instead, it aggregates data into "Sessions" (daily bars by default logic). It extracts the High, Low, and Total Volume for every session within the user-defined lookback period. This filters out intraday noise and focuses on the macro structure of the market.
B. Adaptive Statistical Variability:
Most Bollinger Band-style indicators use Standard Deviation (StdDev) to measure width. However, StdDev is heavily influenced by outliers (extreme wicks). This script offers a sophisticated Adaptive Method-Skewness Detection: The script calculates the skewness of the price distribution. Adaptive Selection: If the data is highly skewed (lots of outliers, typical in Crypto), it switches to MAD (Median Absolute Deviation). MAD is robust and ignores outliers. If the data is moderately skewed, it uses IQR (Interquartile Range). If the data is normal (Gaussian), it uses StdDev.
Benefit: This ensures the zone widths are accurate regardless of whether you are trading a stable Forex pair or a volatile Altcoin.
C. The Weighting Engine (Volume + Time)
Not all price history is equal. This script assigns a "Weight Score" to every session based on two factors:
Volume Weighting: Sessions with massive volume (institutional activity) are given higher importance. A high formed on low volume is less significant than a high formed on peak volume.
Time Decay: Recent price action is more relevant than price action from 50 bars ago. The script applies a decay factor (default 0.85). This means a session from yesterday has 100% impact, while a session from 10 days ago has significantly less influence on the zone calculation.
D. Clustering Algorithm
Once the data is weighted, the script runs a clustering algorithm. It looks for price levels where multiple session Highs (for Resistance) or Lows (for Support) congregate.
It requires a minimum number of points to form a zone (User Input: minPoints).
It merges nearby levels based on the Cluster Separation Factor.
This results in "Primary," "Secondary," and "Tertiary" zones based on the strength and quantity of data points in that cluster.
3. Detailed Features and Inputs Breakdown:
Group 1: Main Settings
Lookback Sessions (Default: 10): Defines how far back the script looks for pivots. A higher number (e.g., 50) creates long-term structural zones. A lower number (e.g., 5) creates short-term scalping zones.
Variability Method (Adaptive): As described above, leave this on "Adaptive" for the best results across different assets.
Zone Width Multiplier (Default: 0.75): Controls the vertical thickness of the zones. Increase this to 1.0 or 1.5 for highly volatile assets to ensure you catch the wicks.
Minimum Points per Zone: The strictness filter. If set to 3, a price level must be hit 3 times within the lookback to generate a zone. Higher numbers = fewer, but stronger zones.
Group 2: Weighting
Volume-Weighted Zones: Crucial for identifying "Smart Money" levels. Keep this TRUE.
Time Decay: Ensures the zones update dynamically. If price moves away from a level for a long time, the zone will fade in significance.
ATR-Normalized Zone Width: This is a dynamic volatility filter. If TRUE, the zone width expands and contracts based on the Average True Range. This is vital for maintaining accuracy during market breakouts or crashes.
Group 3: Zone Strength & Scoring
The script calculates a "Score" (0-100%) for every zone based on:
-Point Count: More hits = higher score.
-Touches: How many times price wicked into the zone recently.
-Intact Status: Has the zone been broken?
-Weight: Volume/Time weight of the constituent points.
-Track Zone Touches: Looks back n bars to see how often price respected this level.
-Touch Threshold: The sensitivity for counting a "touch."
Group 4: Visuals & Display
Extend Bars: How far to the right the boxes are drawn.
Show Labels: Displays the Score, Tier (Primary/Secondary), and Status (Retesting).
Detect Pivot Zones (Overlap): This is a killer feature. It detects where a Support Zone overlaps with a Resistance Zone.
Significance: These are "Flip Zones" (Old Resistance becomes New Support). They are colored differently (Orange by default) and represent high-probability entry areas.
Group 5: Signals & Alerts
Entry Signals: Plots Buy/Sell labels when price rejects a zone.
Detect Break & Retest: specifically looks for the "Break -> Pullback -> Bounce" pattern, labeled as "RETEST BUY/SELL".
Proximity Alert: Triggers when price gets within x% of a zone.
4. Understanding the Visuals (Interpreting the Chart)
When you load the script, you will see several visual elements. Here is how to read them:
The Boxes (Zones)
Red Shades: Resistance Zones.
Dark Red (Solid Border): Primary Resistance. The strongest wall.
Lighter Red (Dashed Border): Secondary/Tertiary. Weaker, but still relevant.
Green Shades: Support Zones.
Dark Green (Solid Border): Primary Support. The strongest floor.
Orange Boxes: Pivot Zones. These are areas where price has historically reacted as both support and resistance. These are the "Line in the Sand" for trend direction.
The Labels & Emojis
The script assigns emojis to zone strength:
🔥 (Fire): Score > 80%. A massive level. Expect a strong reaction.
⭐ (Star): Score > 60%. A solid structural level.
✓ (Check): Score > 40%. A standard level.
"⟳ RETESTING": Appears when a zone was broken, and price is currently pulling back to test it from the other side.
The Dashboard (Top Right)
A statistics table provides a "Head-Up Display" for the asset:
High/Low σ (Sigma): The variability of the highs and lows. If High σ is much larger than Low σ, it implies the tops are erratic (wicks) while bottoms are clean (flat).
Method: Shows which statistical method the Adaptive engine selected (e.g., "MAD (auto)").
ATR: Current volatility value used for normalization.
5. Strategies for Optimum Output
To get the most out of this script, you should not just blindly follow the lines. Use these specific strategies:
Strategy A: The "Zone Fade" (Range Trading)
This works best in sideways markets.
Identify a Primary Support (Green) and Primary Resistance (Red).
Wait for price to enter the zone.
Look for the "SUPPORT BOUNCE" or "RESISTANCE REJECTION" signal label.
Entry: Enter against the zone (Buy at support, Sell at resistance).
Stop Loss: Place just outside the zone width. Because the zones are calculated using volatility stats, a break of the zone usually means the trade is invalid.
Strategy B: The "Pivot Flip" (Trend Following)
This is the highest probability setup in trending markets.
Look for an Orange Pivot Zone.
Wait for price to break through a Resistance Zone cleanly.
Wait for the price to return to that zone (which may now turn Orange or act as Support).
Look for the "RETEST BUY" label.
Logic: Old resistance becoming new support is a classic sign of trend continuation. The script automates the detection of this exact geometric phenomenon.
Strategy C: The Volatility Squeeze
Look at the Dashboard. Compare High σ and Low σ.
If the values are dropping rapidly or becoming very small, the zones will contract (become narrow).
Narrow zones indicate a "Squeeze" or compression in price.
Prepare for a violent breakout. Do not fade (trade against) narrow zones; look to trade the breakout.
6. Optimization & Customization Guide
Different markets require different settings. Here is how to tune the script:
For Crypto & Volatile Stocks (Tesla, Nvidia)
Method: Set to Adaptive (Mandatory, as these assets have "Fat Tails").
Multiplier: Increase to 1.0 - 1.25. Crypto wicks are deep; you need wider zones to avoid getting stopped out prematurely.
Lookback: 20-30 sessions. Crypto has a long memory; short lookbacks generate too much noise.
For Forex (EURUSD, GBPJPY)
Method: You can force StdDev or IQR. Forex is more mean-reverting and Gaussian.
Multiplier: Decrease to 0.5 - 0.75. Forex levels are often very precise to the pip.
Volume Weighting: You may turn this OFF for Forex if your broker's volume data is unreliable (since Forex has no centralized volume), though tick volume often works fine.
For Scalping (1m - 15m Timeframes)
Lookback: Decrease to 5-10. You only care about the immediate session history.
Decay Factor: Decrease to 0.5. You want the script to forget about yesterday's price action very quickly.
Touch Lookback: Decrease to 20 bars.
For Swing Trading (4H - Daily Timeframes)
Lookback: Increase to 50.
Decay Factor: Increase to 0.95. Structural levels from weeks ago are still highly relevant.
Min Points: Increase to 3 or 4. Only show levels that have been tested multiple times.
7. Advantages Over Standard Tools:
Feature Standard S/R Indicator, Advanced Multi-Level S/R Calculation, Uses simple Pivots or Fractals, Uses Statistical Distributions (MAD/IQR). Zone Width Arbitrary or Fixed Adaptive based on Volatility & ATR.
Context Ignores Volume Volume Weighted (Smart Money tracking).
Time Relevance Old levels = New levels Time Decay (Recency bias applied).
Overlaps Usually ignores overlaps Detects Pivot Zones (Res/Sup Flip).
Scoring None 0-100% Strength Score per zone.
8. Conclusion:
The Advanced Multi-Level S/R Zones script is not just a drawing tool; it is a statistical analysis engine. By accounting for the skewness of data, the volume behind the moves, and the decay of time, it provides a strictly objective roadmap of the market structure.
For the optimum output, combine the Pivot Zone identification with the Retest Signals. This aligns you with the underlying flow of order blocks and prevents trading against the statistical probabilities of the market.
3IC//@version=5
indicator("3IC", overlay=true)
// 3 Inside Candle logic
inside_2 = high < high and low > low
inside_3 = high < high and low > low
three_inside = inside_2 and inside_3
plotshape(three_inside, title="3 Inside Candles", style=shape.triangleup, location=location.belowbar, color=color.yellow, size=size.small)
NQ Conservative MTF FINAL (1m + 15m) [Risk-Controlled]Strategy Description
This is a conservative multi-timeframe futures strategy designed for the NASDAQ-100 (NQ). Trades are taken on the 1-minute chart only in the direction of the confirmed 15-minute trend, defined by moving averages and momentum strength. Entries occur after short-term pullbacks, using EMA alignment and RSI confirmation to avoid chasing price. Risk is managed with an ATR-based stop loss and take-profit, limiting per-trade risk while allowing larger trend winners to run. The strategy emphasizes capital preservation, controlled drawdowns, and consistency over high trade frequency.
Sector Rotation ULTIMATE: 7 Narrativas IndependientesSector Rotation ULTIMATE: Crypto Narrative Rotation (7 Independent Sectors)
Advanced indicator displaying the relative strength of major crypto sectors through 7 independently normalized lines (0-100):
• Layer1 (ETH, SOL, BNB, TON, etc.) - Pink
• Enterprise (XRP, HBAR, XLM, QNT, VET) - Yellow
• DeFi (UNI, AAVE, MKR, LDO, CRV, etc.) - Cyan
• Memecoins (SHIB, DOGE, PEPE, WIF, FLOKI, BONK) - Green
• AI (TAO, FET, ICP, GRT, etc.) - Orange
• L2 / Scalability (ARB, OP, MATIC, STRK) - Purple
• RWA + Infra (ONDO, LINK) - Brown
Each sector sums the dominance of its top coins (40 total) and is normalized independently so the lines cross constantly, revealing real capital rotations.
- Colored fills to visually highlight the leading sector
- Works perfectly on any timeframe (clean daily data, no intraday noise)
- Ideal for spotting altseason, sector rotations, and entry timing
Use on CRYPTOCAP:TOTAL. The definitive narrative oscillator for 2026!
#Crypto #Altcoins #SectorRotation #DeFi #Memecoins #AI #RWA
debugginmsLibrary: debugginms
A utility library for Pine Script focused on time formatting, candle logic, and liquidity analysis.
Time & Session
oneBar(): Returns bar duration in milliseconds.
TF(t, timeOnly): Formats timestamp t into a readable string.
inSession(range): Checks if the current bar is within a specific time session.
enforceTimeLimit(limits): Validates time against a newline-separated list of restricted times.
getDuration(s, e): Calculates the difference between two timestamps.
formatTimeframe(): Returns the current chart timeframe as a formatted string.
Candle & Price Logic
isUp(i) / isDown(i): Returns true if the candle at index i is bullish or bearish.
barClose(price, up, strict): Checks if a candle closed above/below a level (includes "strict" equality toggle).
avg(a, b): Returns the average of two float values.
Liquidity & Sweeps
processSweep(L, price, up, leftB): Counts liquidity sweeps within an array based on price and direction.
nearestSwing(startTime, bullish, max_tp, min_p): Locates the closest swing point within defined price bounds.
UDT liquidity: Custom type storing price, time, original price/time, and sweep counts.
Formatting & Conversions
S(val): Overloaded function to convert float, int, or bool to a string.
S2(val): Alternative string formatting for float data.
lineStyleTextToVal(val): Converts string input to Pine line.style constants.
devToArray / getDev: Utilities for handling and calculating deviation levels.
UVOL Thrust TrackerUVOL Thrust Tracker identifies institutional breadth thrusts using NYSE up-volume as a percentage of total volume (USI:UVOL / USI:TVOL), plotted directly on price.
The indicator highlights:
TRUE 90% UVOL thrusts (rare, high-conviction breadth events)
Surrogate thrust clusters (multi-day 80–89% participation)
Cluster failures (momentum that fails to expand)
Structural thrust failures (2022-style false starts)
A regime filter based on the chart symbol’s moving averages separates bull vs bear environments, dynamically adjusting thresholds and failure logic.
This tool is designed for regime confirmation and risk management, not short-term entries. TRUE thrusts typically confirm trend continuation, while failures warn when breadth support breaks down.
Note: This indicator is intended for regime and risk assessment, not precise entries or exits.






















