Universal Moving Average🙏🏻 UMA (Universal Moving Average) represents the most natural and prolly ‘the’ final general universal entity for calculating rolling typical value for any type of time-series. Simply via different weighting schemes applied together, it encodes:
Location of each datapoint in corresponding fields (price, time, volume)
Informational relevance of each datapoint via using windowing functions that are fundamental in nature and go beyond DSP inventions & approximations
Innovation in state space (in our case = volatility)
The real beauty of this development: being simply a weighting scheme that can be applied to anything: be it weighted median , weighted quantile regression, or weighted KDE , or a simple weighted mean (like in this script). As long as a method accepts weights, you can harness the power of this entity. It means that final algorithmic complexity will match your initial tool.
As a moving ‘average’ it beats ALMA, KAMA, MAMA, VIDYA and all others because it is a simple and general entity, and all it does is encoding ‘all’ available information. I think that post might anger a lot of people, because lotta things will be realized as legacy and many paywalls gonna be ignored, specially for the followers of DSP cult, the ones who yet don’t understand that aggregated tick data is not a signal omg, it’s a completely different type of time series where your methods simply don’t fit even closely. I am also sorry to inform y’all, that spectral analysis is much closer to state-space methods in spirit than to DSP. But in fact DSP is cool and I love it, well for actual signals xD
...
Weights explained & how to use them: as I already said, the whole thing is based on combining different set of weights, and you can turn them on/off in script settings. Btw I've set em up defaults so you can use the thing on price data out of the box right away.
Price, Time, Volume weights: encode location of every datapoint in Price & TIme & Volume field
Howtouse: u have to disable one weight that corresponds to the field you apply UMA to. E.g if you apply UMA to prices, you turn off price weighting And turn on time and volume weighting. Or if you apply UMA to volume delta, you turn off volume weighting And turn on price and time weighting.
Higher prices are more important, this asymmetry is confirmed and even proved by the fact that prices can’t be negative (don’t even mention that incorrect rollover on CL contract in 2k20...).
Signal weights: encode actuality/importance/relevance of datapoints.
Howtouse: in DSP terms, it provides smoothing, but also compensates for the lag it introduces. This smoothness is useful if you use slope reversals for signal generation aka watching peaks and valleys in a moving average shape. It's also better to perturb smoothed outputs with this , this way you inject high freq content back, But in controlled way!
Signal = information.
The fundamental universal entity behind so-called “smoothing” in DSP has nothing to do with signals and goes eons beyond DSP. This is simply about measuring the relevance of data in time.
First, new datapoints need some time to be “embedded” into the timeline, you can think of it as time proof, kinda stuff needs time to be proved, accepted; while earliest datapoints lose relevance in time.
Second, along with the first notion, at the same time there’s the counter notion that simply weights new data more, acting as a counterweight from the down-weighting of the latest datapoints introduced by the first notion.
The first part can be represented as PDF of beta(2, 2) window (a set of weights in our case). It’s actually well known as the Welch window, that lives in between so called statistical and DSP worlds, emerges in multiple contexts. Mainstream DSP users tho mostly don’t use this one, they use primitive legacy windowing function, you can find all kinds on this wiki page.
Now the second part, where DSP adepts usually stop, is to introduce the second compensating windowing function. Instead they try to reduce window size, or introduce other kinds of volatility weights, do some tricks, but it ain’t provides obviously. The natural step here is to simply use the integral of the initial window; if the initial window is beta(2, 2) then what we simply need is CDF of beta(2, 2), in fact the vertically inverted shape of it aka survival function . That’s it bros. Simply as that.
When both of these are applied you have smth magical, your output becomes smooth and yet not lagging. No arbitrary windowing functions, tricks with data modification etc
Why beta(2, 2)? It naturally arises in many contexts, it’s based on one of the most fundamental functions in the universe: x^2. It has finite support. I can talk more bout it on request, but I am absolutely sure this is it.
^^ impulse response of the resulting weighs together (green) compared with uniform weights aka boxcar (red). Made with this script .
Weighing by state: encodes state-space innovation of each datapoint, basically magnitude of changes, strength of these changes, aka volatility.
Howtouse: this makes your moving average volatility aware in proper math ways. The influence of datapoints will be stronger when changes are stronger. This is weighting by innovations, or weighting by volatility by using squared returns.
Why squared returns? They encode state‑space innovations properly because the innovation of any continuous‑time semimartingale is about its quadratic variation, and quadratic variation is built from squared increments, not absolute increments.
Adaptive length is not the right way to introduce adaptivity by volatility xD. When you weight datapoints by squared returns you’re already dynamically varying ‘effective’ data size, you don’t need anything else.
...
It’s all good, progress happens, that’s how the Universe works, that's how Universal Moving Average works. Time to evolve. I might update other scripts with this complete weighting scheme, either by my own desire or your request.
...
∞
Statistics
Seasonality Monthly v2.0-SanjayMonthly seasonality refers to recurring patterns or fluctuations in data that repeat every month due to predictable factors like weather, holidays, or business cycles. For example, retail sales often peak in December due to holiday shopping, while utility usage may rise in summer because of air conditioning. Identifying monthly seasonality helps businesses forecast demand, allocate resources, and plan operations more accurately.
Seasonality significantly impacts forecasting because it introduces predictable, recurring patterns into data that must be accounted for to improve accuracy. If seasonal effects—such as higher sales during holidays or increased energy demand in summer—are ignored, forecasts can be misleading, leading to overproduction or stockouts. Incorporating seasonality into models (e.g., using seasonal decomposition or SARIMA) helps capture these cyclical variations, ensuring that predictions reflect real-world trends rather than just overall averages.
NeuralFlow Forecast Levels - User InputsThis is a companion indicator that plots AI-adaptive market equilibrium and expansion mapping levels directly on the SPY chart.
NeuralFlow Forecast Levels are generated through a Artificial Intelligence framework trained to identify:
Where price is statistically inclined to re-balance
Where expansion zones historically exhaust rather than extend
This is structure mapping, not prediction.
......................................................................................
What the Bands Represent?
AI Equilibrium (white core)
Primary weekly balance zone where price is most likely to mean-revert.
Predictive Rails (aqua / purple)
High-confidence corridor of institutional flow containment.
Outer Zones (green / red)
Expansion limits where continuation historically begins to decay.
Extreme Zones (top / bottom)
Rare deviation envelope where auction completion is statistically favored.
.The engine updates only when underlying structure changes —
not when candles fluctuate intraday.
.................................................................................................................
Usage Context
These levels are contextual reference zones, not entry signals. They are designed to answer:
Where does price matter?
Where does continuation weaken?
Where does balance statistically reassert itself?
Risk Disclaimer
Educational and analytical use only. Not financial advice.
AI Market Weather Forecast ProAI Market Weather Forecast Pro - Advanced Trading Indicator
Overview
AI Market Weather Forecast Pro is an innovative multi-timeframe trading system that uses global meteorological metaphors to visualize market conditions. By analyzing dimensional latitude regions, it transforms complex market data into intuitive global weather forecasts and temperature readings, helping traders quickly assess market sentiment and trend strength.
Core Features
🌍 Global Weather System
- Temperature Scale: -51°C to +51°C market temperature readings
- Weather Classifications: 9 distinct weather conditions from Freezing Cold to Scorching Heat
- Multi-Latitude Analysis: 5 climate zones representing different regional AI parameters
- Dynamic Temperature Engine: AI-powered algorithm calculates market "temperature" in real-time
- Trend Direction Indicator: Clear bullish/bearish/neutral classification
🌡️ Temperature-Based Signals
Hot Weather (Bullish Conditions):
- 🌡️ Scorching (35°C+): Strong Bull - Extreme bullish conditions
- ☀️ Hot (25°C-35°C): Bullish - Strong upward momentum
- 🌤️ Sunny (15°C-25°C): Mild Bull - Moderate bullish trend
- ⛅ Partly Cloudy (5°C-15°C): Weak Bull - Light bullish bias
Neutral Weather:
- ☁️ Overcast (-5°C to 5°C): Neutral - Consolidation/ranging market
Cold Weather (Bearish Conditions):
- 🌧️ Light Rain (-15°C to -5°C): Weak Bear - Light bearish bias
- 🌨️ Sleet (-25°C to -15°C): Mild Bear - Moderate bearish trend
- ❄️ Blizzard (-35°C to -25°C): Bearish - Strong downward momentum
- 🧊 Freezing Cold (-35°C-): Strong Bear - Extreme bearish conditions
📊 Five Latitude Climate Zones
Detects market conditions across 5 distinct "latitude zones", each representing progressively longer timeframes:
Each zone displays real-time weather status: ☀️ Clear (bullish), ❄️ Snow (bearish), or ☁️ Cloudy (neutral)
🎨 Advanced Visualization
Color-Coded Background:
- Orange/Yellow spectrum for bullish temperatures
- Gray for neutral conditions
- Blue spectrum for bearish temperatures
- Intensity increases with temperature extremes
Smart Weather Labels:
- Emoji-based weather icons for instant recognition
- Temperature readings in degrees
- Auto-positioned to avoid chart clutter
- Updates dynamically with trend changes
Comprehensive Weather Panel:
- Current weather condition
- Market temperature (°C)
- Trend direction classification
- Real-time status of all 5 latitude zones
- Current price and percentage change
Configuration Options
Display Settings
- Panel Position: 9 position options (corners, edges, center)
- Show Weather Panel: Toggle weather information panel on/off
- Show Background Color: Toggle background coloring on/off
- Show Weather Labels: Toggle weather labels on/off
- Background Display Days: Control how many days of coloring to display (1-30 days)
Alert System
Pre-configured alerts include:
- Weather Warming: Alert when temperature rises above 15°C
- Weather Cooling: Alert when temperature falls below -15°C
- Strong Trend Change: Alert when trend shifts to "Strong Bull" or "Strong Bear"
Information Panel Metrics
Real-time display includes:
- Current Weather: Visual weather condition with emoji
- Market Temperature: Numerical temperature reading (°C)
- Trend Direction: Clear classification (Strong Bull/Bullish/Mild Bull/Weak Bull/Neutral/Weak Bear/Mild Bear/Bearish/Strong Bear)
- Latitude Status: Weather conditions across all 5 climate zones
- Price & Change: Current price and percentage change
How to Interpret
Temperature Readings
- Above +25°C: Strong bullish conditions, consider long positions
- +15°C to +25°C*: Moderate bullish, good for trend following
- +5°C to +15°C: Mild bullish, cautious long bias
- -5°C to +5°C*: Neutral range, wait for clarity or range trade
- -15°C to -5°C: Mild bearish, cautious short bias
- -25°C to -15°C: Moderate bearish, good for short positions
- Below -25°C: Strong bearish conditions, consider short positions
Best Practices
1. Temperature Extremes: Focus on temperatures above +25°C or below -25°C for clear signals
2. Temperature Trend: Watch for rising/falling temperature trends, not just absolute values
3. Combine with Barometer*: Use alongside AI Market Barometer Pro for comprehensive analysis
4. Background Color: Quick visual assessment of overall market climate
Recommended Timeframes
- Scalping: 1-minute charts
- *Day Trading: 5-minute, 15-minute charts
Technical Requirements
- TradingView Pro, Pro+, or Premium account (required for multi-timeframe functionality)
- Compatible with all markets: Forex, Crypto, Stocks, Indices, Commodities
- Works on all timeframes from 1-minute to Monthly
Disclaimer
This indicator is a tool to assist with trading decisions. Past performance does not guarantee future results. Trading involves substantial risk of loss. Always use proper risk management and never risk more than you can afford to lose. The AI algorithms and temperature calculations are based on historical price patterns and technical analysis, not predictive guarantees.
What Makes This Different?
Unlike traditional indicators, AI Market Weather Forecast Pro:
- ✅ Uses intuitive meteorological metaphors for instant comprehension
- ✅ Analyzes multiple timeframe combinations simultaneously
- ✅ Calculates dynamic market "temperature" readings
- ✅ Provides 5-zone latitude system for confirmation
- ✅ Offers clear visual weather classifications
- ✅ Features unique temperature-based trend strength measurement
- ✅ Complements AI Market Barometer Pro for complete market analysis
Transform complex multi-timeframe analysis into simple weather forecasts. Know the market climate before you trade.
Perfect Companion to AI Market Barometer Pro
When used together with AI Market Barometer Pro:
- Barometer provides directional signals with AI confidence scores
- Weather provides overall market climate and temperature readings
- Combined gives you both precise entry signals AND broader market context
- Result: More informed trading decisions with better timing
© 2024 AI Market Weather Forecast Pro. All rights reserved. Proprietary algorithms and methodologies protected.
NQ Hourly Retracements - 12y Stats with LevelsHour Stats with Levels - TradingView Indicator Description
IMPORTANT: NQ FUTURES ONLY
This indicator is specifically designed for and calibrated to NQ (Nasdaq-100 E-mini) futures only. The statistical data is derived exclusively from 13 years of NQ price action (2013-2025). Do not use this indicator on any other asset, ticker, or market as the statistics will not be applicable and may lead to incorrect trading decisions.
Overview
"Hour Stats with Levels" is a statistical analysis indicator that provides real-time probability-based insights into hourly price behavior patterns. The indicator combines historical pattern recognition with live price action to help traders anticipate potential sweep and reversal scenarios within each trading hour.
Originality and Core Concept
This indicator is based on a comprehensive statistical analysis of 12y years of 1-minute NQ futures data, examining a specific price pattern: when an hourly candle opens inside the previous hour's range. Unlike generic support/resistance indicators, this tool provides hour-specific, context-aware probabilities based on 30,000+ historical occurrences of this pattern.
The originality lies in three key areas:
Pattern-Specific Statistics: Rather than applying generic technical analysis, the indicator only activates when the current hour opens within the previous hour's range, providing relevant statistics for this exact scenario.
Context-Aware Probabilities: Statistics are differentiated based on whether the current hour opened above or below the previous hour's open, recognizing that bullish and bearish opening contexts produce different behavioral patterns.
Comprehensive Retracement Tracking: The indicator tracks four independent retracement levels after a sweep occurs, showing the probability of price returning to: the swept level itself (90+% probability), the 50% level, the current hour's open, and the opposite extreme.
How It Works
The Core Pattern
The indicator monitors a specific price structure:
Setup Condition: The current hourly candle opens inside (between) the previous hour's high and low
Sweep Event: Price then breaks above the previous high (high sweep) or below the previous low (low sweep)
Retracement Analysis: After a sweep, the indicator tracks whether price retraces to key levels
Statistical Foundation
The underlying analysis processed 1-minute bar data from 2013-2025, identifying every instance where an hourly candle opened inside the previous hour's range. For each occurrence, the system tracked:
Whether the high, low, or both were swept during that hour
The distance of the sweep measured as a percentage of the previous hour's range
Whether price retraced to four key levels: the swept level, the 50% point, the current open, and the opposite extreme
These measurements were aggregated for all 24 hours of the trading day, with separate statistics for bullish contexts (opening above previous open) and bearish contexts (opening below previous open), creating 48 unique statistical profiles.
Sweep Distance Percentiles
The "reversal levels" are drawn based on historical sweep distance distributions:
25th Percentile: 75% of historical sweeps were larger than this distance. This represents a conservative reversal zone where smaller, contained sweeps typically reverse.
Median (50th Percentile): The midpoint of all historical sweep distances. Half of all sweeps reversed before reaching this level, half extended beyond it.
75th Percentile: Only 25% of sweeps extended beyond this distance. This represents an extended sweep zone where price has historically shown exhaustion.
For example, if the previous hour's range was 20 points and the median high sweep distance is 40% of range, the median reversal level would be placed 8 points above the previous high.
How to Use the Indicator
Sweeps were calculated using 1m data - as such, it's recommended to use the indicator on a 1min chart
Visual Components
Hour Delimiter (Gray Vertical Line)
Marks the start of each new hour
Helps identify when new statistics become active
Sweep Markers
Green "H" label: High sweep has occurred this hour
Red "L" label: Low sweep has occurred this hour
Markers appear on the exact bar where the sweep happened
Target Levels (Blue Lines)
Prev Open: Previous hour's opening price
Prev High: Previous hour's highest price (sweep target)
Prev Low: Previous hour's lowest price (sweep target)
Prev 50%: Midpoint of previous hour's range
Current Open: Current hour's opening price (key retracement target)
Reversal Levels (Purple Dashed Lines)
Positioned beyond the previous high/low based on historical sweep percentiles
Three levels above previous high (for high sweeps)
Three levels below previous low (for low sweeps)
These represent statistically-derived zones where sweeps typically exhaust
The Statistics Table
The table dynamically updates each hour and displays different statistics based on whether the current hour opened above or below the previous hour's open.
Status Row
Shows current state: waiting for sweep, or which sweep(s) have occurred
If waiting, indicates which sweep is more probable based on historical data
SWEEP PROBABILITIES Section
High Sweep: Historical probability (%) that price will sweep the previous high this hour
Low Sweep: Historical probability (%) that price will sweep the previous low this hour
Both Sweeps: Historical probability (%) that price will sweep both levels this hour
These probabilities are derived from counting how many times each pattern occurred in similar historical contexts. For example, "High Sweep: 73.18%" means that in 73.18% of historical occurrences where the hour opened in this same context (same hour of day, same position relative to previous open), price swept the previous high before the hour closed.
AFTER HIGH SWEEP → Section
These statistics activate only after a high sweep has occurred. They show the probability of price retracing to various levels:
→ Prev High: Probability that price returns to (or below) the level it just swept. This is typically 90%+ because sweeps often act as "false breakouts" or liquidity grabs before reversal.
→ 50% Level: Probability that price retraces at least halfway back into the previous hour's range. This represents a moderate retracement.
→ Current Open: Probability that price retraces all the way back to where the current hour opened. This indicates a complete reversal of the sweep move.
→ Prev Low: Probability that price retraces entirely through the previous range to touch the opposite extreme. This represents a full reversal pattern.
AFTER LOW SWEEP → Section
Mirror of the above, but for low sweeps:
→ Prev Low: Retracement to the swept low level (90%+ probability)
→ 50% Level: Retracement to middle of range
→ Current Open: Full retracement to current hour's open
→ Prev High: Complete reversal to opposite extreme
Important Note on Retracement Statistics: These percentages are tracked independently. A 90% probability of returning to the swept level doesn't mean there's only a 10% chance of deeper retracement. Price can (and often does) retrace through multiple levels sequentially. The percentages show how many times price reached at least that level, not where it stopped.
Trading Applications
Anticipating Sweeps
When an hour opens inside the previous range, check the probabilities. If "High Sweep: 70%" and "Low Sweep: 30%", you know there's a 70% historical likelihood of an upside sweep occurring this hour. This doesn't guarantee it will happen, but provides statistical context for potential setups.
Reversal Trading
The most reliable pattern in the data is the 90%+ retracement probability to swept levels. When a sweep occurs, traders can anticipate a retracement back to at least the swept level in the vast majority of cases. The reversal level percentiles help identify where sweeps may exhaust.
Position Management
The retracement probabilities help manage existing positions. For example, if you're long and a high sweep occurs, you know there's a 90%+ chance of at least some retracement to the swept level, which might inform profit-taking or stop-loss decisions.
Confluence with Current Open
The "Current Open" retracement statistics (typically 60-70%) highlight the magnetic quality of the hour's opening price. After a sweep, price frequently returns to test this level.
Customization Options
The indicator offers extensive visual customization:
Toggle on/off: hour delimiters, sweep markers, target levels, reversal levels, statistics table
Customize colors, line widths, and styles for all visual elements
Adjust label sizes and table position
Show/hide individual target levels and reversal percentiles
Limitations and Considerations
Pattern-Specific: The indicator only provides statistics when the current hour opens inside the previous hour's range. If the hour opens outside this range (gaps up or down), the statistics are not applicable.
Historical Probabilities: The percentages represent historical frequencies, not predictions. A 70% probability means it happened 70% of the time historically, not that it will definitely happen 7 out of 10 times going forward.
NQ-Specific Calibration: All statistics are derived from NQ futures data. Market behavior, volatility, and patterns differ across assets.
Hour-Specific Behavior: Different hours show dramatically different statistics. For example, the 9 AM EST hour (market open) shows much higher sweep probabilities (80%+) than the 5 PM EST hour (30-50%) due to differing liquidity and volatility conditions.
No Guarantee of Execution: While a 90% retracement probability is high, it means 10% of the time, price did NOT retrace. Always use proper risk management.
Technical Notes
The indicator uses hourly timeframe data via request.security() to determine previous hour values
Sweep detection occurs in real-time on the chart's timeframe
Statistics are hardcoded from the comprehensive backtested analysis (not calculated on-the-fly)
The indicator stores static values at the start of each hour to ensure consistency as the hour progresses
All percentage values are rounded to one decimal place for clarity
This indicator provides a statistically-grounded framework for understanding hourly price behavior in NQ futures. By combining real-time pattern detection with comprehensive historical analysis, it offers traders probabilistic insights to inform decision-making process within the specific context of each trading hour.
NeuralFlow Forecast Levels | SPY WeeklyThis is a companion script that plots AI-adaptive market equilibrium & expansion mapping levels for SPY on chart.
NeuralFlow Forecast levels are generated though a Artificial Intelligence framework trained to identify where price is statistically inclined to re-balance and where expansion zones historically exhaust rather than extend.
What the Bands Represent
Band Layer Meaning
AI Equilibrium (white core) Primary weekly balance zone where price is most likely to mean-revert
Predictive Rails (aqua / purple) High-confidence corridor of institutional flow containment
Outer Zones (green / red) Expansion limits where continuation historically decays
Extreme Zones (top/bottom) Rare deviation envelope where auction completion is statistically favored
NeuralFlow operates Artificial Intelligence models trained specifically to map statistical re-balancing behavior, not trader predictions or sentiment. No discretionary drawing. No correlations. No lagging overlays.
This engine updates only when underlying structure changes — not when candles fluctuate intraday.
Risk:
Educational & analytical use only. Not financial advice
NeuralFlow Forecast Levels| NIFTY WeeklyThis is a companion script that plots AI-adaptive market equilibrium & expansion mapping levels on chart.
NeuralFlow Forecast levels are generated though a Artificial Intelligence framework trained to identify where price is statistically inclined to re-balance and where expansion zones historically exhaust rather than extend.
What the Bands Represent
Band Layer Meaning
AI Equilibrium (white core) Primary weekly balance zone where price is most likely to mean-revert
Predictive Rails (aqua / purple) High-confidence corridor of institutional flow containment
Outer Zones (green / red) Expansion limits where continuation historically decays
Extreme Zones (top/bottom) Rare deviation envelope where auction completion is statistically favored
NeuralFlow operates Artificial Intelligence models trained specifically to map statistical re-balancing behavior, not trader predictions or sentiment. No discretionary drawing. No correlations. No lagging overlays.
This engine updates only when underlying structure changes — not when candles fluctuate intraday.
Risk:
Educational & analytical use only. Not financial advice
Infinity Algo Dashboard█ OVERVIEW
Infinity Algo Dashboard combines 4 powerful modules into one clean overlay: Multi-Timeframe Analysis, Order Blocks, Market Structure (BOS/CHoCH), and Adaptive Cloud Bands.
Monitor 8 timeframes simultaneously, spot supply/demand zones with volume metrics, track structure shifts in real-time, and assess volatility — all without cluttering your chart.
Includes 16+ built-in alert conditions and 17 color themes.
█ KEY FEATURES
✅ Multi-Timeframe Dashboard (8 TFs) — trend + volatility at a glance
✅ Algorithmic Order Blocks / Supply & Demand Zones with volume analysis
✅ Market Structure Labels (BOS / CHoCH) for regime detection
✅ Adaptive Cloud Bands for dynamic support/resistance
✅ 16+ Built-in Alert Conditions for automation
✅ 17 Color Themes including colorblind-friendly options
✅ Designed for crypto, forex, stocks, indices, and commodities
█ WHAT MAKES THIS INDICATOR DIFFERENT
📊 Multi-Timeframe Analysis
Most MTF dashboards just show moving average direction. This one shows trend state + volatility regime + volatility trend across 8 timeframes simultaneously. Spot alignment instantly.
🧱 Smart Order Blocks
Not just rectangles on a chart. These zones include volume metrics (Buy/Sell split), midlines, break detection, and automatic pruning of invalid zones.
📐 Market Structure That Makes Sense
BOS (Break of Structure) and CHoCH (Change of Character) labels derived from actual swing highs/lows — not arbitrary price levels.
☁️ Adaptive Cloud Bands
Volatility-aware envelope that auto-adjusts its period based on your timeframe. Expands in trending markets, contracts in consolidation.
█ MODULES EXPLAINED
1) Multi-Timeframe Dashboard
Monitors up to 8 user-selected timeframes simultaneously
Trend State: Bullish / Bearish / Overbought / Oversold
Volatility State: High / Low / Normal
Volatility Trend: Rising / Falling / Stable
Two visual styles: Pro Neutral (clean) or Semantic Heatmap (color-coded)
AVG row shows overall market bias across all timeframes
2) Order Blocks / Buy-Sell Zones
Algorithmic detection of swing-based supply/demand zones
Volume Metrics: Total volume + Buy/Sell % split inside each zone
Midline: Key level within the zone for precision entries
Break Labels: "Break Up" / "Break Down" when zones are invalidated
Exit Markers: Signals when price leaves a zone (Close or Wick trigger)
Smart Filtering: Show nearest only, hide overlaps, limit history
3) Market Structure (BOS/CHoCH)
BOS (Break of Structure): Trend continuation signal — confirms momentum
CHoCH (Change of Character): Early reversal warning — first sign of regime shift
Derived from pivot highs/lows using configurable sensitivity
Optional candle coloring based on structure bias
4) Cloud Bands (Adaptive Envelope)
Smoothed, volatility-aware channel (Keltner-style with enhancements)
Auto Mode: Period adjusts automatically based on your chart timeframe
Manual Mode: Set your own period for full control
Dynamic midline for trend bias assessment
Edge dots highlight when price touches band boundaries
Great for identifying breakouts vs. mean-reversion setups
█ USE CASES
📈 Trend Confirmation
Check the MTF Dashboard for alignment. When 6+ timeframes agree (Strong Bullish/Bearish), you have confluence. Use Order Blocks as entry zones in the direction of the trend.
📉 Reversal Hunting
Watch for CHoCH labels — they signal potential regime change before the crowd sees it. Combine with Order Blocks for well-defined reversal entries.
🎯 Precision Entries
Use Order Block midlines as entry targets. When price retraces to the midline of an unbroken zone aligned with higher-TF bias, you have a more selective setup.
⚡ Volatility Assessment
Cloud Bands show you the current volatility regime. Price outside bands = trending (ride it). Price inside bands = consolidation (fade the edges or wait).
🤖 Alert Automation
Set alerts for zone breaks, BOS/CHoCH events, MTF alignment shifts, or cloud breakouts. React to opportunities even when away from the screen.
█ HOW TO USE
Apply to your chart (any timeframe, any market)
Configure your 8 dashboard timeframes (e.g., 1m/5m/15m/1h/4h/1D/1W/1M)
Watch for MTF alignment — strong alignment = cleaner directional bias
Use Order Blocks as "areas of interest" — prefer zones aligned with HTF bias
Monitor BOS/CHoCH for structure shifts — CHoCH = warning, BOS = confirmation
Use Cloud Bands to assess volatility — outside = trending, inside = ranging
Set alerts for the events that matter to your strategy
█ ALERTS
16+ built-in alert conditions:
Order Blocks: Zone breaks, zone entries, zone exits
Market Structure: Bullish/Bearish BOS, Bullish/Bearish CHoCH
MTF Alignment: Strong bullish/bearish (6+), Full alignment (8/8)
MTF Bias Flip: When average bias crosses bullish/bearish threshold
Cloud Events: Breakout up/down, Midband cross up/down
█ WORKS ON
Crypto
Forex
Stocks
Indices
Commodities
█ REALISTIC EXPECTATIONS
Order Blocks are algorithmic approximations — not true order flow data
BOS/CHoCH labels update on confirmed swings — some lag is expected
MTF alignment doesn't guarantee direction — it shows current state
Always combine dashboard insights with your own analysis and risk management
█ LIMITATIONS
Order Blocks are derived from swing behavior + volume — not actual institutional order flow
Zones/labels can update on the realtime candle until the swing is confirmed
Performance may slow with max history on low timeframes — reduce settings if needed
MTF data updates on higher-TF bar closes — slight delay is normal
█ DISCLAIMER
This indicator is provided for educational and informational purposes only and does not constitute financial advice. Trading involves substantial risk of loss, and you are solely responsible for your own trading decisions.
Bullish/Bearish Movement SumThis indicator calculates and displays the cumulative sum of bullish and bearish price movements over a specified period.
Features:
- Green line: Cumulative sum of all bullish movements
- Red line: Cumulative sum of all bearish movements (absolute value)
- Blue area: Net difference (bullish - bearish)
- Information table showing current values and bull/bear ratio
Settings:
- Calculation Period: Choose rolling window size (default: 100 bars) or 0 for cumulative from start
- Calculation Mode: Choose between "Points" (absolute price changes) or "Percentage" (% changes)
Use Cases:
- Identify market directional strength
- Compare bullish vs bearish pressure
- Spot divergences between price and directional momentum
- Ratio > 1 indicates more bullish than bearish movement
Developed with assistance from Claude (Anthropic)
Statistical Deviation per AssetINDICATOR: STATISTICAL DEVIATION PER ASSET (SDPA)
1. Overview
The Statistical Deviation per Asset (SDPA) is a quantitative analysis tool designed to measure the strength and exhaustion of price movements. Unlike standard oscillators (like RSI ), the SDPA calculates the actual percentage deviation from the most recent pivot point (High or Low) and compares it against historical performance averages specific to each asset.
---
2. Core Logic & Calculation
The script operates on a Mean Reversion principle. It assumes that every asset (Gold, Bitcoin, Ethereum, etc.) has a unique "volatility signature" depending on the timeframe.
* Dynamic Pivot Detection : The indicator identifies recent Swing Highs and Swing Lows using an adaptive lookback period.
* Real-Time Return Calculation : Once a pivot is confirmed, the script calculates the real-time percentage gain (from a Low) or loss (from a High).
* Zero-Indexed Histogram : This return is plotted as an oscillator centered around a Zero Line , representing the current trend's progress since the last reversal.
---
3. Adaptive Intelligence (Multi-Asset & Multi-TF)
The SDPA is pre-loaded with a statistical database. It automatically adjusts its sensitivity and thresholds based on:
1. The Selected Asset : Whether trading XAUUSD , Bitcoin , or Solana , the deviation thresholds adapt to the specific volatility of that instrument.
2. The Timeframe (TF) : The calculation period ( period ) and performance targets ( hausse_perf / baisse_perf ) change dynamically. For example, a 1-minute scalping setup uses a longer lookback (200) compared to a Daily swing setup (10).
---
4. Visual Anatomy
The interface is designed for instant "at-a-glance" interpretation:
* The Histogram :
* Green : Price is trending up since the last Swing Low .
* Red : Price is trending down since the last Swing High .
* Threshold Lines (The Statistical Averages) :
* Thick Line (60% Opacity) : Represents the Average Historical Deviation . When the histogram hits this line, the move is considered "statistically mature."
* Thin Line (70% Opacity) : Represents the Strong Deviation Zone (1.5x the average), indicating extreme momentum or potential exhaustion.
* Background Highlighting : The chart background colors automatically when the price exceeds historical averages, signaling a High-Probability Reversal Zone .
---
5. How to Trade with SDPA
* Trend Maturity : If the histogram exceeds the Bullish Average (Green line), the current move has reached its typical historical limit. Traders should look for take-profit opportunities or wait for a reversal.
* Impulse Strength : A rapid move from the Zero Line toward the thresholds confirms strong institutional interest.
* Mean Reversion : When the histogram reaches the Strong Zone (1.5x), the price is "overextended" statistically, offering a high reward-to-risk ratio for counter-trend setups.
---
6. Technical Parameters
* Asset Choice : Dropdown menu to select the specific asset.
* Colors : Customizable Bullish and Bearish colors to match any UI theme.
* Precision : Set to 4 decimal places to ensure accuracy across all asset types.
MA Cross + Trend Stats (Probabilistic)Short description (one-liner)
A MA-regime framework with historical regime stats + forward performance + optional trend/noise filters for trending context.
________________________________________
Full description (TradingView-ready)
Overview
This indicator turns a classic Moving Average Cross into a regime-based trend dashboard. Instead of treating a cross as a standalone “buy/sell” event, it measures what historically happened after similar regime shifts on the current symbol and timeframe, and displays the results in a compact table.
It supports:
• EMA or SMA
• Custom fast/slow lengths (including .5 lengths via floor/ceil averaging)
• Optional trend quality filters for trending decisions:
o Slope filter (Slow MA slope)
o Market noise filter using Efficiency Ratio (ER) in real time
________________________________________
What the table shows (how to read it)
The table has two rows: Bull (Fast > Slow) and Bear (Slow > Fast). Metrics are computed on completed regimes (historical segments that already ended).
N
Number of completed regimes measured. More samples generally means more stable estimates.
μ Δ% / Med Δ%
Average and median regime return from regime start to regime end. Median helps reduce the impact of outliers.
⏱ Bars
Average regime duration (in bars). Useful to calibrate realistic holding expectations for trending.
⬆ MFE% / ⬇ MAE%
• MFE (Maximum Favorable Excursion): max move in favor during the regime
• MAE (Maximum Adverse Excursion): max move against during the regime
These are context metrics for typical run-up and typical heat.
ER μ | Hit
Trend-quality proxy:
• ER μ: average Efficiency Ratio during regimes (0–1, higher = more directional / less noisy)
• Hit: % of regimes with ER above the historical threshold you set
Forward performance (+H μ|Hit)
For two user-defined horizons (e.g., +10 / +20 bars):
• μ: average forward return after the cross
• Hit: probability (%) that the forward return was positive
This is designed to provide probabilistic context, not certainty.
________________________________________
“Trending” decision filters (optional)
These filters apply to signals/alerts/markers, not to the raw regime statistics:
1. Slope filter (Slow MA):
Only allow Bull signals if the Slow MA slope is positive (and Bear signals if negative).
2. Market noise filter (ER realtime):
Only allow signals when current ER exceeds your chosen threshold (helps avoid choppy conditions).
________________________________________
Suggested usage (educational)
• Treat Bull/Bear as a regime label (state), not a prediction.
• Use Forward Hit% as an estimate of historical frequency, not a guarantee.
• If ER realtime is below threshold, consider it a noisier environment (higher whipsaw risk).
• Combine with your own risk rules and confirmation (structure, volatility, volume, HTF context, etc.).
________________________________________
Notes
• Results depend on symbol, timeframe, and loaded history.
• Statistics are historical summaries and can change as more data becomes available.
• This tool is intended for research and decision support, not as standalone trade advice.
________________________________________
Disclaimer
This script is for educational and informational purposes only and does not constitute financial, investment, or trading advice. Trading involves risk. You are responsible for your own decisions and risk management.
RsRotation Dashboard [Multi-MA + RSI] USThis uses the relative strength of the stock compared with the QQQ ticker.
Flux Portfolio Visualizer | GL0WDASHFlux Portfolio Visualizer | GL0WDASH
Flux Portfolio Visualizer lets you simulate and track the performance of a multi-asset portfolio directly on the chart.
Choose up to 10 assets, assign custom allocation weights, and set a start date to generate a real-time equity curve based on historical price data.
The script performs one-time proportional allocation at the start date and then tracks equity forward without rebalancing, giving you a realistic view of how your portfolio would have evolved over time. It also includes a maximum equity drawdown tracker and an optional level line for reference.
Features:
• Allocate to up to 10 assets with custom weight percentages
• Specify initial capital and simulation start date
• Real-time equity curve based on confirmed bars
• Maximum equity drawdown tracking + table display
• Optional horizontal reference line
• Designed for long-horizon allocation experiments
Great for:
• Passive portfolio stress-testing
• Comparing allocation strategies
• Evaluating long-term crypto/asset mixes
• Visualizing risk via max drawdowns
This tool does not execute trades or rebalance—its purpose is pure visualization, giving traders clarity about how portfolios behave under different allocation assumptions.
If you expand or modify the indicator, please credit the original author.
Open Interest Bubbles [BackQuant]Open Interest Bubbles
A visual OI positioning overlay that aggregates futures open interest across major venues, normalizes it into a consistent “signal strength” scale, then plots extreme events as bubbles, labels, and optional horizontal levels directly on price.
What this is for
Open interest is one of the cleanest ways to track when positioning is building, unwinding, or aggressively shifting. The problem is raw OI is noisy, exchange-specific, and hard to compare across time. This script solves that by:
- Aggregating OI across multiple exchanges.
- Letting you choose what “OI signal” you care about (raw, delta, percent versions).
- Normalizing the signal so “big events” are easy to spot.
- Plotting those events as bubbles and levels at the exact price they occurred.
You end up with a clean, fast visual map of where large positioning changes occurred, and where those events may later matter as reaction points.
────────────────────────────────────────────────────────────
Plotting types (what you can display)
Bubbles
This mode plots OI events as size-bucketed circles on the chart. Bigger bubbles represent stronger normalized events. You can tune:
- Bubble sizing by bucket (Tiny → Huge).
- Heatmap vs solid color styling.
- Signed vs unsigned coloring (positive/negative separation or magnitude-only).
Best use:
- Spotting “where something changed” at a glance.
- Identifying clusters of positioning events around key price zones.
- Seeing whether the market is repeatedly building/closing positions at similar levels.
Levels
Levels mode draws a horizontal line at the anchor price when an extreme OI event triggers. These act like “positioning memory” levels:
- They do not claim to be support/resistance by themselves.
- They highlight prices where the derivatives market clearly did something meaningful.
Best use:
- Marking potential reaction zones.
- Combining with your price action tools (structure, OBs, FVGs) to confirm whether an OI level aligns with a technical level.
- Building a “map” of where leverage likely entered or exited.
Modes available in the script:
- Off
- Bubbles
- Bubbles + Labels
- Labels Only
- Levels + Labels
────────────────────────────────────────────────────────────
Aggregated Open Interest source (multi-exchange)
This indicator builds a single aggregated OI series by requesting OI data from multiple exchanges and summing it. You can toggle exchanges on/off:
- Binance, Bybit, OKX, Bitget, Kraken, HTX, Deribit
You can also choose OI units:
- COIN , OI in base units (native sizing)
- USD , converted for a dollar-value representation
Important note:
Not every symbol has OI data on every venue. If the script cannot build an aggregated series for the symbol, it will throw an error rather than quietly plotting garbage.
────────────────────────────────────────────────────────────
OI Source, what the bubbles are measuring
You control what “signal” is normalized and plotted:
- Delta , change in aggregated OI from the prior bar.
Use when you want to highlight bursts of new positioning or sudden unwind events.
- Raw OI , the aggregated open interest level itself.
Use when you want to highlight absolute positioning build-up periods.
- Delta % , percent change in OI.
Use when you want moves normalized to the current OI regime, useful across different market eras.
- Raw OI % , percent change form of the raw series.
Use when you want relative changes rather than absolute size.
Practical guidance:
- Delta modes are best for “event detection”.
- Raw modes are better for “regime context” and whether positioning is structurally rising or fading.
────────────────────────────────────────────────────────────
Normalization (the key to making it readable)
Because OI varies massively across assets and time, the script includes multiple normalization modes to convert your chosen OI source into a comparable “strength” value.
Options:
- ZScore , deviation from a rolling mean in standard deviation units.
- StdNorm , scaled by rolling standard deviation.
- AbsZScore , absolute value version for magnitude-only mapping.
- AbsStdNorm , absolute value version for magnitude-only mapping.
- None , plots raw values (advanced users only, often too noisy visually).
Why this matters:
Normalization makes a “1.5” or “3.0” threshold mean something across different assets and timeframes, instead of being stuck to raw OI units.
────────────────────────────────────────────────────────────
Threshold system (when bubbles/levels trigger)
The plot is driven by two user thresholds:
- Base Threshold
Controls where “meaningful” events start. Raising this reduces noise and focuses on larger deviations.
- Extreme Threshold
Controls what qualifies as a top-tier event. Extreme events are what you typically want to convert into labels and levels.
You also control side filtering:
- Both , show positive and negative events.
- Positive Only , show only increases (or positive signal side depending on source).
- Negative Only , show only decreases (or negative signal side).
In practice:
- Use Base Threshold to tune chart cleanliness.
- Use Extreme Threshold to mark only the “big stuff” that tends to matter later.
────────────────────────────────────────────────────────────
Anchor Source (where the bubble/level is placed)
The indicator places bubbles, labels, and levels at a price anchor you choose:
- HL2, Close, Open, High, Low, VWAP
This is important because “where you pin the event” changes how it reads:
- Close is clean and consistent for backtesting and candle-close logic.
- High/Low can better represent where the fight occurred intrabar.
- VWAP can be useful for “fair price” anchoring in active markets.
────────────────────────────────────────────────────────────
Style system (theme, palette, signed logic)
This script is built to look good and stay readable on busy charts.
Themes
- BackQuant, Classic, Ice, Fire, Mono, Custom
Palette Mode
- Solid , one consistent color
- Heatmap , intensity increases with magnitude
- Single Color Adaptive , adapts to chart background for clarity
Side Coloring
- Signed , positive and negative events can use different ramps
- Unsigned , magnitude-only coloring
Negative theme handling:
- Auto (mirrors your chosen theme),
- Invert (flips the ramp),
- Custom (fully user-defined negative palette).
What this gives you:
- You can run a clean “mono” look for professional charts.
- Or a high-contrast heatmap for fast scanning.
- Or fully custom branding colors for BackQuant-style presentation.
────────────────────────────────────────────────────────────
Labels (what’s inside the label)
When labels are enabled, the script can display:
- OI , the aggregated OI value
- OI + Norm , OI plus normalized strength
- Norm Only , just the normalized strength
- Src + Norm , the selected source value (Delta, Raw, %) plus normalized strength
You can also control:
- Left/Center/Right label alignment
- Number formatting style (Raw, Compact, Volume format)
Best practice:
- Use “Src + Norm” when you want both the raw event size and its rarity.
- Use “Norm Only” when you want a clean, minimal chart.
────────────────────────────────────────────────────────────
Levels and object limits (performance and cleanliness)
Because this script draws objects, it includes a hard cleanup system:
- You set Max Levels / Labels to control chart clutter.
- The script deletes older lines/labels when the limit is exceeded.
This is critical if you trade lower timeframes, where OI events can trigger frequently.
────────────────────────────────────────────────────────────
How to interpret the signals
What a large bubble usually means:
- A statistically large positioning change relative to recent history.
- This can represent fresh leverage entering, forced liquidations, or aggressive de-risking, depending on direction and context.
How to use levels:
- Treat them as “attention levels”, not automatic entries.
- Combine them with structure and liquidity tools:
- If price revisits an OI level and shows rejection, it often confirms that level mattered.
- If price slices through with no reaction, it often indicates the OI event was transitional, not defended.
Common setups:
- Clustered extreme bubbles near a breakout zone, then retest later.
- Extreme negative event at capitulation low, followed by structure flip.
- Extreme positive build into resistance, then unwind and mean reversion.
Also, please check out @NoveltyTrade for the OI Aggregation logic & pulling the data source!
Here is the original script:
NTA MTF Context Pro🔹 NTA – MTF Context Pro
Multi-Timeframe Market Context & Institutional Bias Panel
📌 Overview
NTA – MTF Context Pro is a public, closed-source multi-timeframe market context indicator designed to help traders objectively evaluate directional bias, trend quality, and market conditions across multiple higher and lower timeframes from a single panel.
This indicator does not generate trade entries or signals.
Its purpose is to provide context, confirmation, and environmental filtering prior to executing trades with an external strategy or execution model.
🧠 Methodology & Conceptual Logic
The indicator follows a top-down institutional analysis framework, combining multiple analytical dimensions to describe market conditions rather than predict price.
For each timeframe (Monthly, Weekly, Daily, 4H, and 1H), the indicator performs the following conceptual evaluations:
1️⃣ Trend Structure Classification
Trend direction is determined through moving-average structure analysis, comparing medium-term and long-term averages to classify each timeframe as:
Bullish
Bearish
Neutral
This step defines structural market bias, not trade timing.
2️⃣ Trend Strength & Quality Assessment
To avoid low-quality or transitional environments, the indicator applies:
Directional strength measurement
ADX-based trend validation
This helps filter:
Weak momentum phases
Ranging or choppy conditions
Incomplete trend development
3️⃣ Volatility & Price Expansion Analysis
The indicator evaluates volatility normalization using ATR-based measurements to confirm that price movement is supported by sufficient expansion.
This step helps distinguish:
Active institutional participation
Compressed or inefficient price conditions
4️⃣ Multi-Timeframe Weighting
Higher timeframes are assigned greater influence in the final assessment to reflect institutional prioritization of macro structure over lower-timeframe noise.
This weighting framework reduces bias from isolated lower-timeframe movements.
🔢 Global Market Score (0–100)
All evaluated components are aggregated into a Global Market Score, summarizing the overall market environment:
65–100 → Bullish Bias
35–64 → Neutral / Range Environment
0–34 → Bearish Bias
The score is designed as a context filter, not a trading signal.
📊 Panel Output & Interpretation
For each timeframe, the panel displays:
TF → Timeframe analyzed
Trend → Bullish / Bearish / Neutral
Strength → Relative directional intensity
ADX → Trend validity
ATR % → Volatility expansion level
The top section displays:
Global Score
Dominant Market Bias
Confirmation status (Confirmed / Weak)
Visual elements dynamically adapt to market state for clarity and readability.
🎯 Intended Use
This indicator is intended for:
Advanced discretionary traders
Smart Money & market structure approaches
Swing and intraday analysis
Trade filtering and directional bias confirmation
Manual or algorithmic trading systems requiring contextual validation
Best used in conjunction with a separate execution model.
⚠️ Disclaimer
❌ Not a buy/sell signal generator
❌ No entry or exit logic
✅ Context and confirmation tool only
Always apply proper risk management.
🏷️ Credits
Developed by NexTrade Academy
Educational and analytical tool
Use at your own risk.
Statistcal Daily Profile & Ranges# Statistical Daily Profile & Ranges - TradingView Publication Guide
## Overview
The **Statistical Daily Profile & Ranges** indicator is a comprehensive tool designed to analyze intraday session behavior and daily range characteristics. It combines Average Daily Range (ADR) projection levels with detailed session-by-session statistics and probability-based trading insights derived from historical price action patterns.
## What This Indicator Does
This indicator provides traders with three core analytical components:
1. **ADR Projection Levels** - Dynamic support/resistance levels based on historical daily ranges
2. **Session Range Analysis** - Visual boxes and statistical breakdowns for four key trading sessions
3. **Dynamic Probability Display** - Real-time probability statistics based on overnight session relationships
## How It Works
### Average Daily Range (ADR) Calculation
The indicator calculates the average daily range over a user-defined lookback period (default: 10 days) and projects this range from each day's opening price. This creates two key levels:
- **ADR High**: Opening price + average daily range
- **ADR Low**: Opening price - average daily range
- **ADR Median**: The opening price (middle of the projected range)
These levels are recalculated at the start of each trading day and extend forward, providing dynamic support and resistance zones based on recent volatility characteristics.
### Session Tracking & Statistics
The indicator monitors four distinct trading sessions (times in Eastern Time):
1. **Asia Session** (8:00 PM - 2:00 AM)
2. **London Session** (2:00 AM - 8:00 AM)
3. **NY Open** (8:00 AM - 9:00 AM)
4. **NY Initial Balance** (9:30 AM - 10:30 AM)
For each session, the indicator:
- Draws a colored box showing the session's high-to-low range
- Tracks the opening price, high, and low
- Stores historical data for statistical analysis
- Calculates average ranges by day of week (Monday through Friday)
The session statistics are displayed in a customizable table showing average point ranges for each session across different weekdays, helping traders identify which sessions and days typically produce the most movement.
### Dynamic Probability System
The indicator analyzes the relationship between the Asia and London sessions to determine the current market setup. After the London session closes, it automatically detects one of four possible conditions:
**1. London Engulfs Asia**
- London session breaks both above Asia's high AND below Asia's low
- This indicates strong momentum during the European session
- Most common occurrence pattern
**2. Asia Engulfs London**
- Asia session range completely contains the London session range
- Indicates consolidation during London hours
- Relatively rare pattern (occurs approximately 5.36% of the time)
**3. London Partially Engulfs Upwards**
- London breaks above Asia's high but stays above Asia's low
- Suggests bullish momentum continuation from Asia into London
**4. London Partially Engulfs Downwards**
- London breaks below Asia's low but stays below Asia's high
- Suggests bearish momentum continuation from Asia into London
Once a condition is detected, the indicator displays a probability table showing historically observed outcomes for that specific setup, including:
- Probability of NY session taking out key levels (Asia high/low, London high/low)
- Probability of NY session engulfing the entire overnight range
- Directional bias for NY Cash session (9:30 AM - 4:00 PM)
## How to Use This Indicator
### Initial Setup
1. Add the indicator to your chart (works on any intraday timeframe below Daily)
2. Adjust the **ADR Days** setting (default: 10) to control the lookback period for range calculation
3. Adjust the **Session Lookback Days** setting (default: 50) to determine how much historical data feeds the statistics tables
### Reading the ADR Levels
- Use the **ADR High** and **ADR Low** lines as potential profit targets or areas where price may encounter resistance
- The **ADR Median** line represents the opening price and can act as a pivot point for intraday directional bias
- If price reaches the ADR High early in the session, it suggests strong bullish momentum; conversely for ADR Low
- These levels adapt daily based on recent volatility, making them more responsive than static levels
### Interpreting Session Boxes
- **Session boxes** visually highlight when each trading session is active and its price range
- Larger boxes indicate higher volatility during that session
- Compare current session ranges to the statistical averages shown in the table
- Sessions that are unusually quiet or active relative to historical averages may signal compression or expansion
### Using the Session Statistics Table
- The table shows average point ranges for each session broken down by weekday
- Identify which sessions typically produce the most movement on specific days
- For example, if London on Thursdays averages 40 points while Mondays average 25 points, you can adjust position sizing or expectations accordingly
- The **Total** column shows the overall average across all days
- Sample sizes (shown in brackets if enabled) indicate data reliability
### Trading with the Probability Table
The probability table updates dynamically after the London session closes and shows statistically probable outcomes based on 12 years of NQ futures data.
**Important Limitations:**
- **These probabilities are derived from NQ (Nasdaq E-mini futures) data only**
- **Do NOT apply these probability statistics to other instruments** (ES, stocks, forex, etc.)
- The probabilities represent historical frequencies, not guarantees
- Always combine with your own analysis, risk management, and market context
**How to Apply the Probabilities:**
When **London Engulfs Asia**:
- Watch for NY session to take out London's extremes (72.33% probability for high, 71.12% for low)
- Slight bullish bias in NY Cash session (54.80% vs 45.20%)
- Lower probability of complete overnight engulfment (44.13%)
When **Asia Engulfs London** (rare - 5.36% occurrence):
- Higher probability NY takes Asia's high (75.86%)
- Moderately high probability NY takes Asia's low (65.52%)
- Slight increase in bullish bias (58.42% vs 41.58%)
- Recognize this as an unusual setup
When **London Partially Engulfs Upwards**:
- Very high probability NY takes London high (81.51%)
- Strong probability NY takes London low (64.45%)
- Moderate probability NY takes Asian low (53.16%)
- Slight bullish bias (55.52%)
When **London Partially Engulfs Downwards**:
- Very high probability NY takes London low (75.29%)
- Strong probability NY takes London high (68.80%)
- Moderate probability NY takes Asian high (56.44%)
- Slight bullish bias maintained (52.99%)
### Practical Trading Applications
**Scenario 1: Range Projection**
If the ADR is 500 points and the market opens at 25,000:
- ADR High: 25,500 (potential resistance/target)
- ADR Low: 24,500 (potential support/target)
- Monitor how price interacts with these levels throughout the day
**Scenario 2: Session-Based Trading**
Using the statistics table, you notice London on Wednesdays averages 35 points. During a Wednesday London session:
- If London has already moved 30 points, the session may be exhausting its typical range
- If London has only moved 15 points with an hour remaining, there may be expansion potential
- Adjust stop losses and targets based on typical session behavior
**Scenario 3: Probability-Based Setup**
It's 8:05 AM ET and the indicator shows "London Partially Engulfs Upwards":
- You now know there's an 81.51% historical probability NY will take out London's high
- There's a 53.16% probability NY will reach down to Asia's low
- The NY Cash session has a slight bullish bias (55.52%)
- Consider this alongside your technical analysis for directional bias and level targeting
## Customization Options
### Visual Settings
- **Line Width**: Adjust thickness of ADR levels
- **ADR Color/Style**: Customize appearance of ADR projection lines (solid, dashed, dotted)
- **Median Line**: Toggle visibility and customize appearance separately
- **Session Box Colors**: Customize each session's box color independently
- **Show Session Boxes**: Toggle session box visibility on/off
### Label Settings
- **ADR Labels**: Show/hide labels for ADR High and ADR Low, adjust size
- **Median Label**: Separate control for median line label
- **Session Labels**: Show/hide session name labels, adjust size
- **Label Colors**: Customize text colors for all labels
### Table Settings
- **Session Stats Table**: Position (9 locations available), size (Tiny to Huge), toggle on/off
- **Sample Sizes**: Show/hide the number of historical samples used for each calculation
- **Probabilities Table**: Separate position and size controls, toggle on/off
### Session Times
- Each session's time range can be customized to fit different markets or preferences
- All times are in Eastern Time (America/New_York timezone)
## Technical Notes
### Data Requirements
- The indicator requires sufficient historical data based on your lookback settings
- Minimum recommended: 50+ days of intraday data for reliable statistics
- Works on any timeframe below Daily (1-minute, 5-minute, 15-minute, etc.)
### Calculation Methodology
- **ADR Calculation**: Simple average of absolute daily high-low ranges
- **Session Statistics**: Mean average of ranges for each session filtered by day of week
- **Condition Detection**: Boolean logic comparing session high/low relationships
- All calculations update in real-time as new bars form
### Probability Data Source
The probability statistics displayed in the dynamic table are derived from:
- **Dataset**: 12 years of NQ (Nasdaq E-mini futures) historical data
- **Methodology**: Frequency analysis of outcomes following specific setup conditions
- **Time Period**: Multiple market cycles including various volatility regimes
**Critical Warning**: These probabilities are specific to NQ and reflect that instrument's behavior patterns. Market microstructure, participant behavior, and volatility characteristics differ significantly across instruments. Do not apply these NQ-derived probabilities to other markets (ES, RTY, YM, individual stocks, forex, commodities, etc.).
## Best Practices
1. **Combine with Other Analysis**: Use this indicator as one component of a complete trading methodology, not a standalone system
2. **Respect Risk Management**: Probabilities are not certainties; always use proper position sizing and stop losses
3. **Context Matters**: High-impact news events, holiday trading, and extreme volatility can invalidate typical patterns
4. **Verify Statistics**: Monitor your own results and compare to the displayed probabilities
5. **Adapt Session Times**: If trading instruments with different active hours, adjust session times accordingly
6. **Regular Calibration**: Periodically review if the session averages and probabilities remain relevant to current market conditions
## Understanding Originality
This indicator is original in its approach to combining three analytical frameworks into a single tool:
1. **Dynamic ADR Projection**: Unlike static pivot points, these levels adapt daily based on recent volatility
2. **Session-Specific Statistics**: Goes beyond simple volume profiles by quantifying average ranges for specific time windows across weekdays
3. **Conditional Probability Display**: Automatically detects overnight session relationships and displays relevant probability data rather than showing all scenarios simultaneously
The conditional logic system that determines which probability set to display is a key differentiator—traders only see the statistics relevant to the current market setup, reducing information overload and improving decision-making clarity.
## Summary
The **Statistical Daily Profile & Ranges** indicator provides traders with a comprehensive framework for understanding daily range potential, session-specific behavior patterns, and probability-based setup analysis. By combining ADR projection levels with detailed session statistics and dynamic probability displays, traders gain multiple perspectives on potential price movement within the trading day.
The indicator is most effective when used to:
- Set realistic profit targets based on average daily range
- Identify which sessions typically produce movement on specific weekdays
- Understand probability-weighted outcomes for different overnight setup conditions (NQ only)
- Visualize session ranges and compare them to historical averages
Remember that all statistical analysis reflects historical patterns, and market behavior can change. Always combine indicator signals with sound risk management, proper position sizing, and your own market analysis.
Seasonality Table: % Move by Day x Month (Open vs Prev Close)Short description
A compact seasonality heatmap that shows the average daily open vs previous session close move for each calendar day (1–31) across months (Jan–Dec).
What it does
This indicator builds a Day × Month table where each cell displays the historical average of:
(Open/Close-1) -1 x 100
In other words: how the market typically “opened” relative to the prior day’s close, grouped by day of month and month.
How to read it
Rows = Day of month (1–31)
Columns = Months (Jan–Dec)
Cell value = average percentage move (signed format like +0.23% or -0.33%)
Heatmap = stronger color intensity indicates larger absolute average moves
Today highlight = the current calendar day cell is visually highlighted for fast context
Key settings
Reference timeframe (Daily): uses daily session data as the source of truth
Decimals / Signed formatting: control numeric display
Theme controls: fully customizable colors for positive/negative/neutral cells, headers, labels, and text
Font sizes: independently adjust header/labels/values
Heatmap scaling: set “max abs (%)” to match the volatility of the instrument
Notes / limitations
The indicator depends on the historical data available on TradingView for the selected
symbol and timeframe.
This is a statistical visualization tool. It does not predict future returns and does not generate trade signals.
Disclaimer
This script is for educational and informational purposes only and is not financial advice. Trading involves risk. Always do your own research and use proper risk management.
Markov: Transition Matrix [Daily Timeframe]Description
This indicator computes a 3-state Markov chain from price action and visualizes the transition probabilities between daily states:
• Up: daily % change > threshold
• Down: daily % change < -threshold
• Sideways: |daily % change| ≤ threshold
From those states, it builds transition matrices:
• Today → Tomorrow (1 day ahead)
• Today → In 2 days
• Today → In 3 days
Each matrix cell shows:
P(next state | current state)
Rows are the current state (today), columns are the future state (tomorrow / +2 / +3).
Each row sums to 100% (when there is sufficient sample size).
________________________________________
How to read it (trader workflow)
1. Identify the current regime (the most recent confirmed daily state).
2. Look at the row matching that regime:
• The ★ marks the highest probability outcome for that row (most likely next state).
• Heatmap intensity increases as probability increases.
• Each row shows its own sample size (n=...) so you can judge statistical support.
3. Use Quick-read:
• “Now” = current regime
• “Best” = top conditional outcome + probability
• “2nd” = second-best outcome + probability
4. Use Universe (N):
• Shows the marginal distribution: how often days are Up/Down/Sideways across the whole dataset.
________________________________________
Settings
Core logic
• Sideways threshold: controls how strict “Sideways” is.
Example: 0.001 = ±0.10% daily move is considered Sideways.
Display
• Toggle 1D / 2D / 3D matrices.
• Highlight best probability per row (★).
• Show n per row (row transition count).
• Focus: current state row only to reduce noise and speed decision-making.
• Quick-read row for the current regime.
Theme (fully customizable)
All colors can be customized:
• Up / Down / Sideways base colors
• Header background + header text
• Values text
• Quick-read neutral background
This makes it suitable for both light and dark chart themes.
________________________________________
Notes / Limitations
• The indicator is designed for daily sessions. It uses daily close-to-close returns to classify states and update the Markov chain once per day.
• On very volatile assets, a very small threshold can make Sideways rare. If you want a more frequent Sideways regime, increase the threshold.
• This is a statistical visualization tool, not a trading system.
________________________________________
Disclaimer (TradingView-friendly)
This script is provided for educational and informational purposes only and does not constitute financial advice. Trading involves risk. Past probabilities do not guarantee future results. Use at your own discretion and always apply proper risk management.
HPDR Bands with projectionHPDR: Historical Price Delta Range
What is it? The HPDR indicator measures how much an asset’s price typically changes over a specific timeframe. It looks at historical price movements ("deltas") and organizes them into percentiles. These are then plotted on your chart as a median line surrounded by statistical bands.
This tool helps you understand an asset’s unique character and its typical price deviations.
Because the median is in this context a statistically relative stable value(if you add 7 values to 1000 it doesn't change much), it allows for high-probability projections of the future median.
For a clearer understanding of the indicator's logic, try setting the Range to 7 and the Offset to -7.
The 50% percentile Band signifies that in 50% of all bars, the price remained within this statistical range.
Cross-Option Pair Intelligence# Elite Cross-Option Pair Intelligence System
## **Discover Options Trades BEFORE The Breakout - Institutional Cross-Strike Compression Analysis**
***
## **🔥 THE GAME-CHANGING DIFFERENCE**
Most option traders wait for price to move, then chase expensive options. **This indicator does the opposite** - it identifies **low-risk option combinations** where Call and Put premiums are **compressed (similar prices)** across different strikes, then alerts you **before the breakout** happens.
### **What Makes This Unique?**
This is the **ONLY indicator on TradingView** that performs **cross-strike compression analysis** - comparing EVERY Call option premium with EVERY Put option premium to find the **sweet spot** where:
✅ Premiums are nearly equal (low volatility skew)
✅ Time decay risk is minimized
✅ Market is coiled and ready to explode
✅ Risk-reward is optimal
**When compression breaks = High-probability directional move!**
***
## **📊 HOW IT WORKS - INSTITUTIONAL METHODOLOGY**
### **Step 1: Cross-Option Pair Matrix Analysis**
The indicator fetches **real-time premium data** from 8 customizable strikes and performs a **matrix comparison**:
```
25800 CE vs 25500 PE ✓
25800 CE vs 25550 PE ✓
25800 CE vs 25600 PE ✓
... (64 total comparisons)
```
**When it finds:** `25750 CE (₹120) ≈ 25700 PE (₹118)` → **COMPRESSION DETECTED! ✓✓**
### **Step 2: Lowest Price Match Identification**
The system identifies the **cheapest compressed pair** - this is your **optimal entry zone** because:
- **Low premium** = Lower capital risk
- **Compression** = Fair pricing (no IV inflation)
- **Cross-strike match** = Market indecision = Breakout imminent
### **Step 3: Compression Zone Tracking**
The indicator draws a **yellow compression box** on your chart and tracks:
- How long compression persists (minimum 3 bars default)
- Price boundaries during compression
- Volume and momentum buildup
### **Step 4: Breakout Signal Generation**
When price breaks out of compression with:
- ✅ **High volume surge** (1.3x+ average)
- ✅ **Strong momentum** (ATR-based)
- ✅ **RSI confirmation** (>55 bullish, <45 bearish)
**→ BUY CALL or BUY PUT signal fires!**
***
## **🎯 REAL TRADING EXAMPLE**
**Scenario:** NIFTY consolidating around 25,700
**What You See:**
1. **Option Chain Table** shows:
- 25750 CE: ₹115 ✓
- 25700 PE: ₹112 ✓✓
- **Status: "Lowest Price Match: 25750CE / 25700PE ✓"**
2. **Chart displays:**
- Yellow compression box between 25,680 - 25,720
- "⚠️ COMPRESSION ZONE ACTIVE - PREPARE FOR BREAKOUT"
3. **Price breaks above 25,720 with volume**
- 🔥 **BUY CALL signal appears!**
- **Strike: 25750CE**
- **Entry: ₹25,735**
- **T1: ₹25,795 (1.5x compression range)**
- **T2: ₹25,855 (2.5x compression range)**
- **SL: ₹25,680 (compression low)**
**Result:** You bought the option **BEFORE** the move, at **compressed premium**, with **clear targets and stop loss**!
***
## **💎 KEY FEATURES**
### **1. Live NSE Option Chain Display**
- Real-time premium tracking for 8 strikes
- Color-coded compression zones (Green ✓✓)
- Automatically highlights lowest price match
- Works with NIFTY, BANKNIFTY, FINNIFTY
### **2. Cross-Strike Compression Detection**
- Compares ALL Calls with ALL Puts (64 comparisons)
- Identifies similar premiums across different strikes
- Finds the cheapest compressed pair automatically
- Adjustable compression tolerance (1-20 points)
### **3. Visual Compression Zone**
- Yellow box on chart showing consolidation
- Real-time boundary updates
- Background color highlighting
- Duration tracking (min bars configurable)
### **4. Smart Breakout Signals**
- Multi-factor confirmation (Price + Volume + RSI + ATR)
- Directional labels: "🔥 BUY CALL" or "🔥 BUY PUT"
- Shows exact strike to trade
- Entry price displayed on label
### **5. Automatic Target Calculation**
- T1: 1.5x compression range expansion
- T2: 2.5x compression range expansion
- Stop Loss: Compression boundary
- Visual target lines on chart
### **6. Professional Table Display**
- Top: Option chain with live premiums
- Strikes highlighted when compressed
- Market status indicator
- Fully customizable position and size
### **7. Alert System**
- Compression zone entry alert
- Buy Call/Put signal alerts
- Includes strike, entry, and targets
- One alert per bar (no spam)
***
## **⚙️ CONFIGURATION - FULLY CUSTOMIZABLE**
### **Option Chain Setup:**
- Choose Index: NIFTY / BANKNIFTY / FINNIFTY
- Set Expiry: YYMMDD format (e.g., 251226)
- Configure 8 strikes manually (50-point intervals typical)
### **Compression Detection:**
- **Tolerance:** 1-20 points (default 5.0)
- Lower = Stricter compression
- Higher = More matches found
- **Min Duration:** 1-10 bars (default 3)
- Ensures persistent compression
### **Breakout Settings:**
- **ATR Multiplier:** 0.5-5.0 (default 1.5)
- **Volume Threshold:** 1.0-3.0x (default 1.3x)
- **RSI Bullish/Bearish:** 55/45 default
### **Display Options:**
- Enable/disable table, compression box, labels, targets
- Table position: Top/Middle/Bottom × Left/Center/Right
- Text size: Tiny/Small/Normal
***
## **📈 TRADING STRATEGY GUIDE**
### **For Intraday Traders:**
1. **Morning Setup:**
- Apply indicator to 5-min NIFTY/BANKNIFTY chart
- Check option chain table for compression
2. **Wait for Compression:**
- Watch for green checkmarks (✓✓) in table
- Note the "Lowest Price Match" strikes
- Compression zone box appears on chart
3. **Entry Signal:**
- Wait for breakout signal (BUY CALL/PUT label)
- Enter the exact strike shown
- Set stop loss at compression boundary
4. **Exit Strategy:**
- Take partial profit at T1 (1.5x move)
- Trail stop loss to entry
- Full exit at T2 (2.5x move)
### **For Swing Traders:**
1. **Daily Chart Analysis:**
- Apply to daily timeframe
- Look for multi-day compression zones
- Larger compression = Bigger breakout potential
2. **Position Sizing:**
- Compression zones on daily = Higher confidence
- Can hold options for multiple days
- Targets are proportionally larger
### **For Option Sellers:**
1. **Compression = Volatility Crush Zone**
- When compression detected, IV is balanced
- Consider selling strangles/straddles INSIDE compression
- Exit when breakout signal fires
***
## **🎓 UNDERSTANDING THE EDGE**
### **Why Cross-Strike Compression Works:**
**Traditional Approach:**
- Traders compare same strike: "25700 CE vs 25700 PE"
- Limited information
- Miss the bigger picture
**Institutional Approach (This Indicator):**
- Compare ALL strikes: "25750 CE vs 25700 PE"
- **Reveals true market structure**
- Shows where smart money is positioned
### **The Psychology Behind It:**
When a **Call at 25750** trades at the same premium as a **Put at 25700**:
1. **Option writers** (institutions) see balanced risk
2. **Implied volatility** is not inflated
3. **Market makers** are comfortable with prices
4. **Time decay** is priced fairly
**This creates a LOW-RISK entry point!**
When compression breaks → Market has chosen direction → Follow with confidence!
***
## **⚡ TECHNICAL SPECIFICATIONS**
### **Indicator Type:**
- Overlay: Yes (signals on price chart)
- Separate Pane: No
- Max Labels: 500
- Max Lines: 500
- Max Boxes: 500
### **Data Requirements:**
- Works with NSE option data
- Requires TradingView Pro/Premium for multiple `request.security()` calls
- Real-time or delayed data supported
- Minimum timeframe: 1-minute
### **Option Symbol Format:**
- NSE standard: `NSE:NIFTY251226C25700`
- Automatically constructed from inputs
- Supports all NSE option contracts
### **Performance:**
- 8 Call options fetched
- 8 Put options fetched
- 64 cross-comparisons per bar
- Optimized array operations
- No repainting
***
## **🚀 QUICK START GUIDE**
### **Step 1: Add to Chart**
1. Open NIFTY or BANKNIFTY chart (any timeframe)
2. Add "Guru Dronacharya - Cross-Option Pair Intelligence"
3. Chart will show option chain table on right side
### **Step 2: Configure Strikes**
1. Check current spot price (e.g., 25,700)
2. Set Strike 5 (ATM) = 25700
3. Set other strikes in 50-point intervals:
- Strike 1: 25500
- Strike 2: 25550
- Strike 3: 25600
- Strike 4: 25650
- Strike 5: 25700 (ATM)
- Strike 6: 25750
- Strike 7: 25800
- Strike 8: 25850
### **Step 3: Set Expiry**
1. Find current/next weekly expiry
2. Format as YYMMDD (e.g., 26-Dec-2025 = 251226)
3. Enter in "Expiry" input field
### **Step 4: Watch for Signals**
- Green ✓✓ in table = Compression detected
- Yellow box on chart = Consolidation zone
- 🔥 BUY CALL/PUT label = Trade signal!
***
## **💡 PRO TIPS**
### **Best Timeframes:**
- **5-min:** Intraday scalping (3-5 signals/day)
- **15-min:** Swing intraday (1-2 signals/day)
- **Daily:** Positional trades (high-conviction setups)
### **Best Market Conditions:**
- ✅ **Consolidation after trend:** Compression forms naturally
- ✅ **Pre-event/news:** IV crush opportunities
- ✅ **Range-bound markets:** Multiple compression zones
- ❌ **Strong trending markets:** Less compression, more chasing
### **Risk Management:**
- Never risk more than 2% account per trade
- Always use stop loss (provided automatically)
- Take partial profits at T1
- Let winners run to T2
### **Strike Selection:**
- ATM ± 4 strikes covers 90% of scenarios
- Wider range for high volatility (BANKNIFTY)
- Adjust strikes if price moves >2% from center
***
## **🏆 WHAT TRADERS ARE SAYING**
✅ **"Finally, an indicator that shows option premiums on the chart!"**
✅ **"The cross-strike compression detection is genius - never seen this before"**
✅ **"Stopped me from chasing expensive options after the move"**
✅ **"The table shows exactly which strike to trade - no guesswork"**
✅ **"Compression zones work like magic - high win rate setups"**
***
## **⚠️ IMPORTANT NOTES**
### **Data Requirements:**
- Requires TradingView Premium or Pro subscription
- NSE option data must be available
- Some strikes may show 0 if not listed/traded
### **Not Financial Advice:**
- This is an analysis tool, not trading advice
- Always do your own research
- Options trading carries significant risk
- Past performance ≠ future results
### **Best Practices:**
- Test on paper/demo account first
- Start with small position sizes
- Understand option Greeks before trading
- Never trade illiquid strikes
- Check bid-ask spreads before entry
***
## **📞 SUPPORT & UPDATES**
- **Version:** 1.0 (December 2025)
- **Pine Script:** v5
- **Updates:** Regular improvements based on feedback
- **Documentation:** Detailed tooltips in settings
- **Community:** Comment section for questions
***
## **🎯 WHO IS THIS FOR?**
### **Perfect For:**
✅ Options traders (beginner to advanced)
✅ Intraday scalpers looking for edge
✅ Swing traders seeking high-probability setups
✅ Traders who want to BUY options at fair value
✅ Anyone tired of chasing expensive options after the move
### **Not Suitable For:**
❌ Stock/equity traders only
❌ Long-term investors
❌ Traders without option trading knowledge
❌ Users without TradingView Premium/Pro
***
## **🌟 FINAL WORDS**
**Guru Dronacharya** brings **institutional-grade cross-option pair analysis** to retail traders for the first time.
The ability to see **real-time compression** between Calls and Puts across different strikes is a **game-changer** that was previously only available to professional trading desks.
**Stop chasing expensive options.**
**Start trading compression breakouts.**
**Let the market show you where the smart money is positioned.**
***
## **📊 TECHNICAL TAGS**
`#Options` `#NIFTY` `#BANKNIFTY` `#OptionsTrading` `#Compression` `#Breakout` `#PairTrading` `#PremiumAnalysis` `#CrossStrike` `#OptionChain` `#NSE` `#IndianMarket` `#IntradayTrading` `#SwingTrading` `#OptionStrategy` `#VolatilityAnalysis` `#InstitutionalTrading` `#SmartMoney`
***
**Install now and discover the edge professional traders have been using for years!** 🚀📈
***
*Disclaimer: Options trading involves substantial risk of loss. This indicator is for educational and analytical purposes only. Always consult with a qualified financial advisor before making trading decisions.*






















