Quantum Reservoir Computing⚛ Quantum Reservoir Computing - Multi-Scale Market Analysis
OVERVIEW
This indicator combines three structural analysis kernels (Energy, Resonance, Topology) with a 6-spin reservoir computing network to provide multi-dimensional market state monitoring. It is designed to detect structural shifts, coherence alignment, and potential entry timing through visual analytics and optional signal markers.
WHAT MAKES IT ORIGINAL
Unlike single-indicator approaches, QRC fuses complementary analysis methods and uses a reservoir computing layer (coupled oscillator network) to capture temporal market structure. The system uses entropy-compensated signal logic to maintain directional alignment across kernels with inverted mathematical properties.
HOW IT WORKS (Technical Details)
1. ENERGY KERNEL
Measures compression state through two components:
• Entropy: Volatility-normalized return distribution, inverted (low volatility = high compression energy)
• ATR Compression: Short-period ATR divided by longer-period baseline ATR
• Final Energy: Weighted average of both components, ranging 0 to 1
2. RESONANCE KERNEL
Calculates cross-timeframe coherence using:
• 6 exponential moving averages (periods: 9, 14, 20, 30, 48, 84)
• Slope calculation for each EMA
• Amplitude weighting based on user-selected mode (Close/ATR/StDev)
• Coherence Index (CI): Measures directional agreement across all timeframes
• Mode Persistence: Stability of CI over 20 bars
3. TOPOLOGY KERNEL
Analyzes path geometry through:
• Turn density: Rate of price directional changes
• Curvature: Second-order price differences normalized by ATR
• Combined into a 0-1 topology change metric
4. RESERVOIR COMPUTING (6-Spin Network)
Six coupled state variables (spins) arranged in a ring topology:
• Drive signal combines directional consensus, price z-score, volume, and ATR regime
• Each spin updates via hyperbolic tangent activation with neighbor coupling
• Psi (Ψ): Coherence measure (average pairwise spin correlation)
• Spin Direction: Signed average of all spins
• Pulse detection: Positive changes in Ψ, z-scored to detect energy releases
5. FUSION & SCORING
• Magnitude: Weighted combination of all kernels (0 to 1 scale)
• Direction: Blend of EMA slope consensus, basis slope, and spin direction (-1 to 1)
• ScoreSigned: Direction multiplied by Magnitude (drives visuals)
• GateScore: Amplified score used only for signal threshold checks
• Heat: Entanglement measure combining Ψ, CI, and Magnitude
SIGNAL LOGIC (Important: Entropy-Compensated Inversion)
Because the entropy kernel naturally inverts (low volatility = bullish compression), signal logic compensates to maintain directional alignment:
• LONG signals fire when GateScore crosses below the short threshold (bearish GateScore + bullish structure)
• SHORT signals fire when GateScore crosses above the long threshold (bullish GateScore + bearish structure)
This inversion has been visually validated through metric plotting and maintains correct alignment with Resonance and Topology kernels.
Signal gates require:
• Two-of-three pass: CI ≥ minimum, Mode Persistence ≥ minimum, Ψ ≥ minimum
• Heat ≥ minimum threshold
• OR recent pulse window active (ΔΨ edge within N bars)
• Minimum bar spacing between signals (prevents clustering)
VISUAL COMPONENTS
1. Contained Ribbon (Recommended Mode)
• Center line: Basis EMA
• Edge: Positioned by ScoreSigned value
• Fill color: Green (bullish) or Red (bearish)
• Width: ATR-adaptive with configurable floor/ceiling
2. Quantum Aurora (Multi-Layer Energy Bands)
• 5-8 harmonic layers with phase-driven oscillations
• Colors shift with Heat level (cool blue at low Heat, warm orange/magenta at high Heat)
• Creates visual texture that reflects market state dynamics
3. Interference Mesh
• Subtle oscillating overlay modulated by CI and ScoreSigned
• Provides depth perception without visual clutter
4. Resonance Cloud
• Width proportional to Coherence Index
• Wide cloud = strong cross-timeframe alignment
• Narrow cloud = weak structural coherence
5. Energy Particles
• Floating micro-dots with density mapped to Magnitude
• Color-coded by Heat level (gold/cyan/gray)
• Provides continuous conviction feedback
6. Regime Atmosphere
• Background tint indicating market mode:
- Green: Coherent trend (CI>0.65, Ψ>0.55)
- Red: Choppy regime (CI<0.45, Ψ<0.40)
- Purple: Transition state
DASHBOARDS
1. Main Dashboard (Moveable, Resizable)
• Regime indicator with color-coded status
• Horizontal meter gauges for Ψ, CI, Heat, Magnitude
• Signal strength bars for Score and Gate
• Status indicators (dots) for ΔΨ, Heat, CI health
• Directional arrows and bars-since-signal counter
• Size options: Tiny, Small, Normal, Large
• Position: All four corners available
2. Heat HUD (Entanglement Matrix)
• Multi-row gradient display of last N bars (configurable 10-120)
• Metrics: Heat, Psi, CI, Magnitude, Pulse Z-score, Gate proximity
• Color-coded blocks show metric intensity over time
• Live footer with current values
• Resizable and moveable
HOW TO USE
Step 1: Monitor Regime and Structure
• Check Dashboard regime indicator (Trend/Chop/Transition)
• Observe Aurora flow (smooth = stable, erratic = unstable)
• Wide Resonance Cloud indicates strong multi-timeframe alignment
Step 2: Watch Entanglement Heat
• Heat HUD shows persistent structure as amber/red runs
• Green status dots indicate healthy metrics
• Rising Heat + rising Ψ suggests mode-locking
Step 3: Confirm Gate Conditions
• Dashboard displays effective thresholds (dynamically relaxed after dry periods)
• Two-of-three gate (CI/ModePersistence/Ψ) must pass OR recent pulse active
• Strength bars show conviction level
Step 4: Interpret Signals
• Enable "Show Diagnostic Plots" to verify metric behavior on your symbols
• Signals appear as tiny triangles (green below bars = long, red above = short)
• Best confluence: Heat rising + fresh pulse cluster + strong CI
Step 5: Risk Management
• Place stops beyond opposite ribbon edge plus 0.5 ATR buffer
• Trail stops following basis ± ATR fraction while Heat/Psi remain elevated
• Exit early if CI or Ψ collapse (status dots turn yellow/red)
CUSTOMIZATION
Extensive settings available:
• Core: EMA length, ATR length, pulse thresholds, heat minimum
• Signals: Mode (Aggressive/Normal/Conservative), thresholds, spacing, gain
• Visuals: Ribbon mode, Aurora layers, particle density, all show/hide toggles
• Dashboards: Size, position for both main dashboard and heat HUD
• Diagnostics: Optional metric plots for validation
IMPORTANT DISCLAIMERS
• This indicator does not predict future price movements
• Signals use entropy-compensated inversion (explained above); verify on your symbols
• Always backtest on your specific markets and timeframes before live trading
• Past performance does not guarantee future results
• Heavy visuals may impact performance on lower-end devices (use Performance toggles)
• Designed for liquid markets (major indices, forex, crypto); may underperform on illiquid symbols
• Complex system with learning curve; read full guide embedded in code
DIAGNOSTIC MODE
Enable "Show Diagnostic Plots" in settings to verify metric behavior:
• Heat, Psi, CI, Magnitude plotted in lower pane
• ScoreSigned and GateScore normalized to 0-1 scale
• Reference lines at 0.25, 0.5, 0.75 for threshold context
• Observe metric alignment with price action on YOUR symbols
METHODOLOGY NOTE
The "Quantum" terminology refers to the reservoir computing methodology (coupled oscillator network), not actual quantum mechanics. The 6-spin network uses hyperbolic tangent activation functions to model temporal market structure. This is a deterministic mathematical model, not a quantum computing system.
BEST SUITED FOR
• Liquid markets: Major indices (ES, NQ), forex majors (EUR/USD, GBP/USD), large-cap crypto (BTC, ETH)
• Timeframes: 5-minute through daily (works on all, but designed for intraday to swing)
• Trading styles: Structure-based entries, multi-timeframe confluence, visual state monitoring
• Experience level: Intermediate to advanced (complex system with learning curve)
PERFORMANCE CONSIDERATIONS
• Heavy calculations (6 spins, 6 EMAs, Aurora layers, particles) may lag on lower-end devices
• Use "Dashboard Size: Tiny" and reduce "Aurora Layers" to 2-3 for better performance
• Consider disabling "Energy Particles" on mobile devices
• Script is optimized with array capping and label recycling, but complexity remains high
SUPPORT & UPDATES
• Questions about usage or settings? Send me a message - I respond within 24 hours
• Feature requests are welcome for consideration in future updates
• Bug reports appreciated and addressed promptly
• Script will be maintained and updated as needed
FINAL REMINDERS
• This is an analytical tool, not a trading system
• Always backtest on YOUR symbols and timeframes before live use
• Use proper risk management - stops, position sizing, etc.
• Past performance does not guarantee future results
• Start with demo/paper trading to learn the system
— Dskyz, Trade with insight. Trade with anticipation.
Indicators and strategies
Inside SwingsOverview
The Inside Swings indicator identifies and visualizes "inside swing" patterns in price action. These patterns occur when price creates a series of pivots that form overlapping ranges, indicating potential consolidation or reversal zones.
What are Inside Swings?
Inside swings are specific pivot patterns where:
- HLHL Pattern: High-Low-High-Low sequence where the first high is higher than the second high, and the first low is lower than the second low
- LHLH Pattern: Low-High-Low-High sequence where the first low is lower than the second low, and the first high is higher than the second high
Here an Example
These patterns create overlapping price ranges that often act as:
- Support/Resistance zones
- Consolidation areas
- Potential reversal points
- Breakout levels
Levels From the Created Range
Input Parameters
Core Settings
- Pivot Lookback Length (default: 5): Number of bars on each side to confirm a pivot high/low
- Max Boxes (default: 100): Maximum number of patterns to display on chart
Extension Settings
- Extend Lines: Enable/disable line extensions - this extends the Extremes of the Swings to where a new Swing Started or Extended Right for the Latest Inside Swings
- Show High 1 Line: Display first high/low extension line
- Show High 2 Line: Display second high/low extension line
- Show Low 1 Line: Display first low/high extension line
- Show Low 2 Line: Display second low/high extension line
Visual Customization
Box Colors
- HLHL Box Color: Color for HLHL pattern boxes (default: green)
- HLHL Border Color: Border color for HLHL boxes
- LHLH Box Color: Color for LHLH pattern boxes (default: red)
- LHLH Border Color: Border color for LHLH boxes
Line Colors
- HLHL Line Color: Extension line color for HLHL patterns
- LHLH Line Color: Extension line color for LHLH patterns
- Line Width: Thickness of extension lines (1-5)
Pattern Detection Logic
HLHL Pattern (Bullish Inside Swing)
Condition: High1 > High2 AND Low1 < Low2
Sequence: High → Low → High → Low
Visual: Two overlapping boxes with first range encompassing second
Detection Criteria:
1. Last 4 pivots form High-Low-High-Low sequence
2. Fourth pivot (first high) > Second pivot (second high)
3. Third pivot (first low) < Last pivot (second low)
LHLH Pattern (Bearish Inside Swing)
Condition: Low1 < Low2 AND High1 > High2
Sequence: Low → High → Low → High
Visual: Two overlapping boxes with first range encompassing second
Detection Criteria:
1. Last 4 pivots form Low-High-Low-High sequence
2. Fourth pivot (first low) < Second pivot (second low)
3. Third pivot (first high) > Last pivot (second high)
Visual Elements
Boxes
- Box 1: Spans from first pivot to last pivot (larger range)
- Box 2: Spans from third pivot to last pivot (smaller range)
- Overlap: The intersection of both boxes represents the inside swing zone
Extension Lines
- High 1 Line: Horizontal line at first high/low level
- High 2 Line: Horizontal line at second high/low level
- Low 1 Line: Horizontal line at first low/high level
- Low 2 Line: Horizontal line at second low/high level
Line Extension Behavior
- Historical Patterns: Lines extend until the next pattern starts
- Latest Pattern: Lines extend to the right edge of chart
- Dynamic Updates: All lines are redrawn on each bar for accuracy
Trading Applications
Support/Resistance Levels
Inside swing levels often act as:
- Dynamic support/resistance
- Breakout confirmation levels
- Reversal entry points
Pattern Interpretation
- HLHL Patterns: Potential bullish continuation or reversal
- LHLH Patterns: Potential bearish continuation or reversal
- Overlap Zone: Key area for price interaction
Entry Strategies
1. Breakout Strategy: Enter on break above/below inside swing levels
2. Reversal Strategy: Enter on bounce from inside swing levels
3. Range Trading: Trade between inside swing levels
Technical Implementation
Data Structures
type InsideSwing
int startBar // First pivot bar
int endBar // Last pivot bar
string patternType // "HLHL" or "LHLH"
float high1 // First high/low
float low1 // First low/high
float high2 // Second high/low
float low2 // Second low/high
box box1 // First box
box box2 // Second box
line high1Line // High 1 extension line
line high2Line // High 2 extension line
line low1Line // Low 1 extension line
line low2Line // Low 2 extension line
bool isLatest // Latest pattern flag
Memory Management
- Pattern Storage: Array-based storage with automatic cleanup
- Pivot Tracking: Maintains last 4 pivots for pattern detection
- Resource Cleanup: Automatically removes oldest patterns when limit exceeded
Performance Optimization
- Duplicate Prevention: Checks for existing patterns before creation
- Efficient Redraw: Only redraws lines when necessary
- Memory Limits: Configurable maximum pattern count
Usage Tips
Best Practices
1. Combine with Volume: Use volume confirmation for breakouts
2. Multiple Timeframes: Check higher timeframes for context
3. Risk Management: Set stops beyond inside swing levels
4. Pattern Validation: Wait for confirmation before entering
Common Scenarios
- Consolidation Breakouts: Inside swings often precede significant moves
- Reversal Zones: Failed breakouts at inside swing levels
- Trend Continuation: Inside swings in trending markets
Limitations
- Lagging Indicator: Patterns form after completion
- False Signals: Not all inside swings lead to significant moves
- Market Dependent: Effectiveness varies by market conditions
Customization Options
Visual Adjustments
- Modify colors for different market conditions
- Adjust line widths for visibility
- Enable/disable specific elements
Detection Sensitivity
- Increase pivot length for smoother patterns
- Decrease for more sensitive detection
- Balance between noise and signal
Display Management
- Control maximum pattern count
- Adjust cleanup frequency
- Manage memory usage
Conclusion
The Inside Swings indicator provides a systematic approach to identifying consolidation and potential reversal zones in price action. By visualizing overlapping pivot ranges
The indicator's strength lies in its ability to:
- Identify key price levels automatically
- Provide visual context for market structure
- Offer flexible customization options
- Maintain performance through efficient memory management
VAGANZA Swings V1 LITE1. Introduction: The Philosophy Behind VAGANZA Swings
The VAGANZA Swings V1 LITE was developed to solve a common problem faced by swing traders: getting caught in low-probability trades during choppy, sideways markets. Many indicators can identify a trend, but few can effectively measure its quality and pinpoint optimal, low-risk entry points within that trend.
This script is not merely a "mashup" of existing indicators. It is a structured, multi-layered filtering system where each component is specifically chosen to address the weaknesses of the others. The core philosophy is to trade only when there is a clear market consensus, confirmed by trend, strength, momentum, and volume. This results in fewer signals, but each signal is designed to be of significantly higher quality.
2. The VAGANZA Confirmation Engine: A Deeper Look at the Logic
A signal is only generated when four distinct market conditions align. This sequential confirmation process is what makes the script unique and robust.
Layer 1: The Trend Regime Filter
What it does: The indicator first establishes the dominant market bias using a dual-speed baseline system. A faster-reacting baseline is compared against a slower, more stable baseline to determine if the market is in a long-term bullish or bearish "regime."
Why it's important: This foundational step ensures we are never fighting the primary market current. BUY signals are disabled during a bearish regime, and SELL signals are disabled during a bullish regime, instantly eliminating 50% of potentially bad trades.
Layer 2: The Trend Strength & Conviction Qualifier
What it does: This is the script's core intelligence. After confirming the trend's direction, this layer uses a directional volatility engine to measure the trend's strength or conviction. It analyzes the expansion between bullish and bearish price movements.
Why it's important: A simple moving average crossover can occur in a weak, drifting market, leading to false signals. This filter requires the trend to be demonstrably powerful (above a predefined strength threshold of 25) before allowing the system to even look for an entry. It's the primary filter for avoiding sideways market traps.
Layer 3: The Dynamic Pullback & Entry Trigger
What it does: Instead of chasing price at its peak, the script waits for a natural "breather" or pullback. It employs a momentum cycle oscillator to identify when the price has become temporarily oversold within a strong uptrend, or overbought within a strong downtrend. The signal is triggered at the precise moment momentum appears to be rejoining the primary trend.
Why it's important: This ensures a more favorable risk-to-reward ratio. By entering on a pullback, traders can avoid buying the top or selling the bottom of a short-term swing, which is a common mistake.
Layer 4: The Volume Participation Check
What it does: As a final confirmation, the script checks the volume on the signal candle. It requires the volume to be higher than its recent average.
Why it's important: A price move without significant volume can be a trap. This final check confirms that there is genuine market participation and conviction behind the signal, suggesting that larger market players are supporting the move.
3. The Synergy of the System (Why This Combination is Original)
The originality of VAGANZA Swings lies not in its individual components, but in their synergistic interaction:
The Trend Regime Filter sets the stage.
The Trend Strength Qualifier prevents signals when the stage is poorly lit (i.e., a weak trend).
The Pullback & Entry Trigger tells the actor exactly when to enter the stage for maximum impact.
The Volume Check ensures the audience is actually watching.
Without the strength filter, the trend filter would fail in ranging markets. Without the pullback trigger, entries would have poor risk-reward. This interdependent, sequential logic provides a unique and useful tool that goes beyond what a single indicator can offer.
4. How to Use This Script
Timeframe: Optimized for the 4-Hour (H4) chart, as this provides a balance between meaningful swings and actionable signals. It can also be used on the Daily (D1) chart for longer-term analysis.
BUY Signal (Green "BUY" Arrow): Appears only when a strong, confirmed uptrend experiences a temporary, oversold pullback and volume confirms renewed buying interest. This is a high-probability signal to consider a long position.
SELL Signal (Red "SELL" Arrow): Appears only when a strong, confirmed downtrend experiences a temporary, overbought rally and volume confirms renewed selling pressure. This is a high-probability signal to consider a short position.
Risk Management: This indicator provides entry signals only. It is crucial that you apply your own risk management rules. Always use a stop-loss and have a clear take-profit strategy for every trade.
Disclaimer: This tool is for decision-support and does not constitute financial advice. All trading involves risk. Past performance is not indicative of future results. Please backtest thoroughly before using this script with real capital.
Torus Trend Bands — Windowed HammingTorus Trend Bands — Windowed Hamming
This TradingView indicator creates dynamic support and resistance bands on your chart. It uses the mathematical model of a torus (a donut shape) to generate cyclical and responsive channel boundaries. The bands are further refined with an advanced smoothing method called a Hamming window to reduce noise and provide a clearer signal.
How It Works
The Torus Model: The indicator maps price action onto a geometric torus shape. This is defined by two key parameters:
Major Radius (a): The distance from the center of the torus to the center of the tube. This controls the overall size and primary cycle.
Minor Radius (b): The radius of the tube itself. This controls the secondary, faster "breathing" motion of the bands.
Dual-Phase Engine: The behavior of the bands is driven by two different cyclical inputs, or "phases":
Major Rotation (φ): A slow, time-based cycle (φ period) that governs the long-term oscillation of the bands.
Minor Rotation (q): A fast, momentum-based cycle derived from the Relative Strength Index (RSI). This makes the bands react quickly to price momentum, expanding and contracting as the market becomes overbought or oversold.
Standard Technical Core : The torus model is anchored to the price chart using standard indicators:
Midline : A central moving average that acts as the baseline for the channel. You can choose from EMA, SMA, HMA, or VWAP.
Width Source: A volatility measure that determines the fundamental width of the bands. You can choose between the Average True Range (ATR) or Standard Deviation.
Hamming Window Smoothing: This is a sophisticated weighted averaging technique (a Finite Impulse Response filter) used in digital signal processing. It provides exceptionally smooth results with less lag than traditional moving averages. You can apply this smoothing to the RSI, the midline, and the width source independently to filter out market noise.
How to Interpret and Use the Indicator
Dynamic Support & Resistance: The primary use is to identify potential reversal or continuation points. The upper band acts as dynamic resistance, and the lower band acts as dynamic support.
Trend Identification: The color of the bands helps you quickly see the current trend. Teal bands indicate an uptrend (the midline is rising), while red bands indicate a downtrend (the midline is falling).
Volatility Gauge: When the bands widen, it signals an increase in market volatility. When they contract, it suggests volatility is decreasing.
Alerts: The indicator includes built-in alerts that can notify you when the price touches or breaks through the upper or lower bands, helping you stay on top of key price action.
Key Settings
Torus Parameters : Adjust Major radius a and Minor radius b to change the shape and cyclical behavior of the bands.
Phase Controls:
φ period: Controls the length of the main, slow cycle in bars.
RSI length → q: Sets the lookback for the RSI that drives the momentum-based cycle.
Midline & Width: Choose the type and length for the central moving average and the volatility source (ATR/StDev) that best fits your trading style.
Width & Bias Shaping:
Min/Max width ×: Control how much the bands expand and contract.
Bias ×: Shifts the entire channel up or down based on RSI momentum, helping the bands better capture strong trends.
Hamming Controls: Enable or disable the advanced smoothing on different parts of the indicator and set the Hamming length (a longer length results in more smoothing).
This indicator provides a unique and highly customizable way to visualize market cycles, volatility, and trend, combining geometry with proven technical analysis tools.
Triple Stochastic RSITriple Stochastic RSI (TSRSI)
The Triple Stochastic RSI is a momentum visualization tool designed to help identify potential market tops and bottoms with greater clarity. This indicator stacks three layers of smoothed StochRSI — Fast , Slow , and Slowest — each derived from increasingly longer RSI and Stochastic periods.
By analyzing how these layers interact, especially when the Slow (purple) and Slowest (orange) lines converge or cross near overbought or oversold zones, traders can spot high-probability reversal points. These moments often precede price turning points, and the signals gain strength when confirmed by divergences between price and indicator movement.
Key features include:
Triple StochRSI smoothing to capture short- to long-term momentum shifts.
Dynamic overbought/oversold signals with visual cross markers.
Built-in trend sentiment and average streak statistics.
Alerts for crossovers, trend shifts, and extended over/underperformance streaks.
Use it as a standalone momentum framework or as a supporting layer for divergence detection and market exhaustion analysis.
The stats table in your script provides insight into how long each Stochastic line (%K) typically stays above or below the 50 midline, and how the current streak compares to that average.
1. "Current" Column
This shows how many consecutive bars the %K has been:
Above 50 (▲)
OR Below 50 (▼)
It updates in real time on the last bar.
2. "Avg ▲ / Avg ▼" Column
These are historical averages based on your lookbackPeriod (default 1000 bars). It shows:
The average length of time %K stays above 50 (bullish bias)
The average time it stays below 50 (bearish bias)
Example Breakdown:
Let’s say the "Slow" row shows:
Current: 7 ▼
Avg ▲ / Avg ▼: 6 / 5
This means:
%K on the Slow lane has been below 50 for 7 bars
Historically, it only stays below 50 for about 5 bars on average
So, this bearish streak is already longer than usual
How to Use This Information:
A longer-than-average streak could imply a maturing move, potentially near exhaustion.
If current ▲ or ▼ streak is nearing or exceeding its average, it may warn of an upcoming shift.
Good for contextualizing trends and avoiding late entries.
Real Time UVXY Spike Level TrackerKey Features
Real Time All-Time Low Tracking: Continuously updates the ATL using daily timeframe data.
Multiple Spike Levels: Displays +20%, +50%, +75%, and +100% levels above the ATL.
Real-Time Spike Percentage: Shows current distance from ATL in an easy-to-read table.
Understanding the Chart Lines
Red Line (ATL): The all-time low baseline. This is your reference point for measuring volatility spikes.
Yellow Line (+20%): First level of moderate volatility increase. Minor market stress or routine volatility expansion.
Blue Line (+50%): Significant volatility event. Indicates elevated market concern or technical dislocation.
Purple Line (+75%): Major volatility spike. Typically coincides with substantial market selloffs or uncertainty.
Fuchsia Line (+100%): Extreme volatility event. Rare occurrences associated with market crashes, black swan events, or severe panic.
The Data Table Displays: Current Spike %: Real-time percentage showing how far price is above the ATL (highlighted in green)
Level Column: Each spike threshold level
Price Column: Exact price at each level for quick reference
Understanding UVXY spike levels is valuable for several reasons:
Market Timing & Entry/Exit Points UVXY typically experiences extreme spikes during market panics or crashes. Knowing historical spike levels helps you:
Identify extreme fear levels - When UVXY hits unusually high levels, it often signals peak panic and potential market bottoms
Avoid chasing volatility - Understanding what constitutes an "extreme" spike prevents buying in after the move is already exhausted Mean Reversion Trading
UVXY has a strong tendency to decay over time due to its leveraged structure and the contango in VIX futures. Spike levels matter because:
High probability reversals - When UVXY reaches extreme levels (say 2-3x normal), there's historically been a high probability of reversion
Risk/reward assessment - You can better evaluate whether a short position or volatility-selling strategy makes sense Leveraged ETF enthusiasts and volatility traders often use specific spike percentages as triggers to open short positions. For example, some traders might short when UVXY spikes 5-50%+ in a week or reaches certain percentage thresholds, betting on the inevitable decay back down
Business Predictability | Robinhodl21Have you ever wondered why a company beats earnings estimates yet its stock barely moves—or even drops? It might be because the market already expected a beat. Companies that consistently outperform forecasts tend to attract higher expectations over time, so another “+20 % surprise” may no longer surprise anyone. In other cases, investors may weigh sales growth more heavily than earnings, especially in growth sectors where top-line momentum matters more than margin control.
This indicator was built to explore exactly that dynamic. It helps you quantify how predictable a business truly is, how consistently it beats (or misses) expectations, and how well management seems to understand and guide its own performance. It’s not a timing tool, but a quality lens for long-term stock pickers who want to identify stable, well-managed companies with disciplined forecasting and execution.
What the indicator is
its is designed to quantify how often and how well a company beats-or-misses expectations (earnings and sales) over multiple years, then map that into a “predictability” and “quantile” score that you can use to compare across stocks. Its core logic combines deviation from estimates, rolling history, and statistical ranking to highlight companies where the management and the business appear to be aligned, stable and reliable.
Key features:
(• Choice of financial data frequency: you can select FQ (quarterly) or FY (annual) mode so the indicator adapts to your preferred horizon.
(• Deviation calculation: earnings surprise and/or sales surprise can be combined via a weighted setup so you pick which metric drives the score.
(• History buffer: you choose how many “commit points” (i.e., past surprises) to include in the statistics and quantile calculations.
(• Quantile ranking: the tool computes how the company’s recent deviation stacks up versus its own history; in FY-mode we still use quarterly density for statistical robustness.
(• Predictability & volatility metrics: beyond the quantile, you get a predictability score (low recent deviation + low volatility) and a simple “moat” / management-quality overlay via the SLOAN ratio.
(• Status and CI table: the indicator comes with a visualization panel summarizing mean surprise, standard deviation, sample length, and your computed quantile and predictability grades.
(• Future box: optional forward-map showing the next earnings date, estimated deltas and flagged surprises.
What it is not
It is not a timing indicator (i.e., it won’t tell you when to buy or sell precisely). It does not predict short-term price movements. Instead, it is tuned for fundamental stock picking: look for companies that repeatedly deliver surprise results, for which you believe management and business model give an advantage. Use it to add an extra dimension of “earnings surprise stability & management forecasting quality” to your dashboard.
My usage case
I developed this indicator as part of a broader portfolio strategy: I screen for companies that are both highly predictable (i.e., rarely miss) and have the capacity to beat earnings by a meaningful margin, because I believe this reflects strong business execution and good internal alignment. Over time I plan to expand the dashboard with more indicators geared toward company quality and moat (quantitative metrics built from financial statement data). This version is still work in progress (there may be bugs), so consider the output as one more input—do not rely on it exclusively.
Important caveats
The code is relatively computation-intensive, especially with large lookback windows and quarterly frequency. On my Mac Pro it runs smoothly—but depending on your device and market data feed you may experience slower performance. Also: synchronising earnings release timing and sales release timing across companies is tricky—sometimes data lags or is updated later, so there may be discrepancies. Because of this the indicator’s output should be treated as a guide rather than a guarantee.
Empirical background
The academic literature supports the idea that consistent surprises and management execution can matter—but the relationship is complex. For example, research on post-earnings-announcement drift (PEAD) shows that markets often under-react to surprise earnings and that returns continue to drift in the direction of surprise for weeks or months.  At the same time, studies such as Skinner & Sloan (2000) show that when you control for growth expectations the relation of surprise to future returns becomes weaker.  In other words: just beating earnings by 20 % repeatedly does not guarantee outsized share-price gains, because market expectations adjust, estimates bake in the beat and other factors (discount rates, fundamentals) still dominate.
Final word
Use it as part of your fundamental stock-analysis toolkit to gauge how well a company consistently delivers relative to expectations, how volatile those surprises are, and whether you think management has a competitive edge in forecasting or executing. As mentioned, this is a work in progress and should not be your only tool—but used wisely, it can add a meaningful extra dimension to your decision-making. I’ll continue to improve it and add new quality-and-moat oriented indicators in future releases.
Previous Day Volume Profile NQ!This indicator takes the previous U.S. regular trading session and maps its most actively traded price zone onto the next day. It draws a shaded box representing the Value Area (≈68% of prior-day volume), bounded by VAH (Value Area High) and VAL (Value Area Low). A line through the middle marks the POC (Point of Control), the single price with the most traded volume. The box projects 15.5 hours into the new day so you can see where today’s action sits relative to yesterday’s “fair value.”
To help with intraday decisions, the indicator also extends VAH/VAL/POC as dotted lines. These extensions act like “guide rails” for context into the next trading session.
How to read it
Inside the box: Market is back in yesterday’s fair value. Expect mean-reversion behavior, with price often rotating between VAL and VAH.
Re-entry signals: When price comes from outside and establishes back inside, the script can flag a Long Re-entry (from below, bias toward VAH) or Short Re-entry (from above, bias toward VAL). Optional target lines show the opposite edge as a practical objective.
Rejection signals: When price tests a boundary (VAH/VAL) and fails to establish inside, it can reject and push away—often a clue for potential price discovery beyond the box.
POC focus: The POC often behaves like a magnet during balance and a pivot during imbalance; the dotted extension keeps it visible even after the box window.
Use case
Ideal for day traders and short-term swing traders who want a clear, repeatable framework.
Quickly judge whether today is balancing (staying within yesterday’s value) or seeking new value (rejecting and exploring).
Pair the signals with your execution rules (e.g., 5-minute closes, buffers, or confirmation candles).
Everything is configurable—colors, opacities, and whether to show extensions or target lines—so you can tailor the visuals to your style without clutter.
Previous Cycle Range + SMTs [bilal x shpat]Inspired by ICT (Inner Circle Trader) concepts
Description made by ChatGPT
Thank you shpat.a for making the SMT option
📝 Overview
The Previous Cycle Range + SMTs indicator is a multi-timeframe tool designed to visualize key market structure levels derived from the previous trading cycle’s range — a concept heavily utilized in ICT-style analysis.
In addition to the traditional range levels, this indicator adds Smart Money Tool (SMT) detection, allowing traders to identify bullish or bearish divergences across multiple correlated assets, giving an edge in spotting potential turning points and liquidity imbalances.
It helps traders identify equilibrium levels, liquidity zones, and potential premium/discount areas based on the prior day (or any chosen period) high and low — now with intermarket divergence insights.
⚙️ Features
Custom Cycle Length: Define your own cycle in minutes (e.g., 1440 = 1 day, 10080 = 1 week).
Previous High/Low: Automatically plots the previous cycle’s high and low levels.
Equilibrium (EQ): Optional 50% midpoint line to highlight the market’s equilibrium.
Quarter Levels: Adds 25% and 75% range lines for refined premium/discount analysis.
Extended Ranges: Optional extended levels (e.g., -100%, +200%) to identify continuation or retracement targets.
Fib Levels (1.272 & 1.618): Adds ICT-style Fibonacci extension levels for confluence zones.
Smart Money Tool (SMT) Detection:
Detects bullish or bearish divergences between your main asset and up to two comparison symbols.
Highlights potential SMT zones with optional text labels for quick visualization.
Optional SMT summary table displays divergence status for all three assets.
Custom Styling: Full control over colors, line width, label style, and extension distance.
💡 How It Helps
This indicator aligns with ICT principles by making the previous day’s range visible and actionable, now with SMT divergence insights:
The previous day’s high/low often act as liquidity pools.
The equilibrium (EQ) represents fair value — useful for spotting premium/discount zones.
Quarter levels and Fibonacci extensions add precision when mapping market structure and potential reaction points.
SMT detection helps traders identify early divergence signals that may indicate upcoming bullish or bearish moves across correlated markets.
🔍 Example Uses
Identify where price is trading relative to the previous session’s range.
Use EQ and quarter levels to gauge premium vs. discount conditions.
Spot intermarket divergences using SMTs to anticipate potential reversal or continuation points.
Combine with other ICT-based tools (e.g., PD arrays, dealing ranges, or kill zones) for refined trade setups.
Volume Profile Pro
Volume Profile Pro is an advanced market analysis tool that displays trading activity distribution across price levels. It identifies key market structure levels including Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL) based on actual volume data.
ORIGINALITY & VALUE:
This indicator provides unique volume distribution analysis with intelligent timeframe detection, real-time profile development, and professional visualization. Unlike basic volume indicators, it calculates precise volume distribution across price levels and identifies high-volume nodes that act as dynamic support/resistance zones.
KEY FEATURES:
Smart Timeframe Detection - Automatically uses chart timeframe with manual override option
Value Area Calculation - Customizable percentage (68% recommended for standard deviation)
Real-time Profile Updates - Live developing profile during active trading sessions
Session Awareness - Adjusts for regular vs extended trading hours
Professional Visualization - Clean, customizable display with multiple placement options
Advanced Alert System - POC breach detection with multiple extension options
CORE COMPONENTS:
Point of Control (POC) - Price level with highest traded volume (market consensus price)
Value Area (VA) - Price range containing specified percentage of total volume
Value Area High (VAH) - Upper boundary of value area (Orange)
Value Area Low (VAL) - Lower boundary of value area (Bright Blue)
Volume Distribution - Visual histogram showing volume concentration at price levels
TRADING APPLICATIONS:
Dynamic Support/Resistance - POC and Value Area act as evolving S/R levels
Breakout Confirmation - Volume-backed breakouts from Value Area
Mean Reversion - Trading opportunities at Value Area boundaries
Market Structure - Understanding volume distribution and market acceptance
Risk Management - Using Value Area for strategic stop placement
SETUP INSTRUCTIONS:
Timeframe: Uses current chart timeframe by default (customizable in settings)
Value Area: Set to 68% for standard market profile or adjust based on volatility
Profile Placement: Choose Left for historical analysis or Right for current session
Alerts: Enable POC breach alerts for real-time trading signals
Visualization: Customize colors and widths to match your trading style
This indicator provides institutional-grade market structure analysis in an accessible format, helping traders identify high-probability trading zones based on actual volume data rather than just price action.
My setup [Pro] (fadi)My Setup is a powerful TradingView indicator that visualizes your trading strategy, helping you find high-probability setups with precision and discipline. It combines Higher Timeframe (HTF) context with Lower Timeframe (LTF) entries on a single chart, streamlining your trading process.
What It Does
Tracks your chosen timeframe and its paired higher timeframe for custom trade setups, so you don’t have to stay glued to the screen.
Plots clear Entry, Stop Loss, and Take Profit levels when your conditions align.
Customizes to your strategy with HTF triggers (e.g., sweeps, liquidity grabs) and LTF entries (e.g., Order Blocks, FVGs, Breakers).
Ensures discipline by only showing setups that meet all your rules, eliminating emotional trading and FOMO.
Backtest your edge by visualizing past setups to refine entries, stops, and confluences.
How It Works
Set Your HTF Trigger: Choose a market event like a sweep of a high/low, pivot point, or liquidity grab on the paired higher timeframe (e.g., 1H for a 5m chart).
Define Your LTF Entry: Select your entry model from a range of institutional concepts, such as Order Block, Fair Value Gap (FVG), Inverted FVG (iFVG), Breaker Block, Unicorn Model, and more, on the chart’s timeframe.
Add Confluence Filters: Stack conditions like requiring an FVG + Breaker for higher-probability setups.
See It on Your Chart: When a setup forms, it’s instantly plotted with Entry, Stop Loss, and Take Profit levels based on your Risk-to-Reward ratio.
Key Features
Multi-Timeframe Sync: Pair your chart’s timeframe (e.g., 5m) with a higher timeframe (e.g., 1H) for seamless analysis.
Institutional Tools: Supports a comprehensive suite of ICT concepts, including Order Blocks, FVGs, iFVGs, Breakers, Unicorn Model, and additional entry models.
Custom Risk Management: Set your Stop Loss and Take Profit levels with fixed R:R or measured moves using large range of entry and stop levels.
Session Filtering: Limit setups to specific trading sessions (e.g., London, New York) with timezone support.
Visual Clarity: Displays HTF candles and key levels on your chart for context, with customizable colors and styles.
Alerts: Get notified the moment a valid setup appears, even on live candles.
Who It’s For
Traders who want to systematize their ICT-based strategy on a single chart.
Those seeking to trade with discipline and avoid impulsive decisions.
Anyone looking to backtest and optimize their setups with clear, visual feedback.
Busy traders who need a tool to track their chart while they focus on life.
Why Choose My Setup ?
Save Time: Let the indicator track your chart and its paired timeframe.
Trade Confidently: Only take A+ setups that match your exact rules.
Learn and Improve: Analyze historical setups to refine your strategy.
Disclaimer of Warranties and Limitation of Liability for [My Setup ]
Please read this disclaimer carefully before using the [My Setup ] indicator (hereafter referred to as "the Software").
1. No Financial Advice
The Software is provided for educational and informational purposes only. The data, calculations, and signals generated by the Software are not, and should not be interpreted as, financial advice, investment advice, trading advice, or a recommendation or solicitation to buy, sell, or hold any security or financial instrument.
2. Assumption of Risk You acknowledge that trading and investing are inherently risky activities that carry a high potential for significant financial loss. All actions you take in the market, including but not limited to trade execution and risk management, are your sole responsibility. You agree to use the Software at your own sole risk. The creator shall not be held responsible or liable for any financial losses or damages you may incur as a result of using the Software.
3. No Warranty; "AS IS" Provision
The Software is provided "AS IS" and "AS AVAILABLE", without any warranties of any kind, either express or implied. The creator disclaims all warranties, including, but not limited to, implied warranties of merchantability, fitness for a particular purpose, accuracy, timeliness, completeness, and non-infringement.
The creator does not warrant that the Software will be error-free, uninterrupted, secure, or free of bugs, viruses, or other harmful components. You acknowledge that software is never wholly free from defects, and you are responsible for implementing your own procedures for data accuracy and security.
4. Limitation of Liability
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL THE CREATOR, FADI ZEIDAN, BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This limitation of liability applies to any and all damages, including but not limited to:
Direct, indirect, incidental, special, consequential, or exemplary damages.
Loss of profits, revenue, data, or use.
Financial losses resulting from trading decisions made based on the Software.
Damages arising from software defects, interruptions, or inaccuracies.
5. Indemnification
You agree to indemnify, defend, and hold harmless the creator, Fadi Zeidan, from and against any and all claims, liabilities, damages, losses, or expenses, including reasonable attorneys' fees and costs, arising out of or in any way connected with your access to or use of the Software.
6. Acknowledgment and Agreement
By accessing, installing, or using the [My Setup ] indicator, you acknowledge that you have read, understood, and agree to be bound by the terms of this disclaimer. If you do not agree with these terms, you must not use the Software.
Smart Money Dynamics Blocks — Pearson MatrixSmart Money Dynamics Blocks — Pearson Matrix
A structural fusion of Prime Number Theory, Pearson Correlation, and Cumulative Delta Geometry.
1. Mathematical Foundation
This indicator is built on the intersection of Prime Number Theory and the Pearson correlation coefficient, creating a structural framework that quantifies how price and time evolve together.
Prime numbers — unique, indivisible, and irregular — are used here as nonlinear time intervals. Each prime length (2, 3, 5, 7, 11…97) represents a regression horizon where correlation is measured between price and time. The result is a multi-scale correlation lattice — a geometric matrix that captures hidden directional strength and temporal bias beyond traditional moving averages.
2. The Pearson Matrix Logic
For every prime interval p, the indicator calculates the linear correlation:
r_p = corr(price, bar_index, p)
Each r_p reflects how closely price and time move together across a prime-defined window. All r_p values are then averaged to create avgR, a single adaptive coefficient summarizing overall structural coherence.
- When avgR > 0.8 → strong positive correlation (labeled R+).
- When avgR < -0.8 → strong negative correlation (labeled R−).
This approach gives a mathematically grounded definition of trend — one that isn’t based on pattern recognition, but on measurable correlation strength.
3. Sequential Prime Slope and Median Pivot
Using the ordered sequence of 25 prime intervals, the model computes sequential slopes between adjacent primes. These slopes represent the rate of change of structure between two prime scales. A robust median aggregator smooths the slopes, producing a clean, stable directional vector.
The system anchors this slope to the 41-bar pivot — the median of the first 25 primes — serving as the geometric midpoint of the prime lattice. The resulting yellow line on the chart is not an ordinary regression line; it’s a dynamic prime-slope function, adapting continuously with correlation feedback.
4. Regression-Style Parallel Bands
Around this prime-slope line, the indicator constructs parallel bands using standard deviation envelopes — conceptually similar to a regression channel but recalculated through the prime–Pearson matrix.
These bands adjust dynamically to:
- Volatility, via standard deviation of residuals.
- Correlation strength, via avgR sign weighting.
Together, they visualize statistical deviation geometry, making it easier to observe symmetry, expansion, and contraction phases of price structure.
5. Volume and Cumulative Delta Peaks
Below the geometric layer, the indicator incorporates a custom lower-timeframe volume feed — by default using 15-second data (custom_tf_input_volume = “15S”). This allows precise delta computation between up-volume and down-volume even on higher timeframe charts.
From this feed, the indicator accumulates delta over a configurable period (default: 100 bars). When cumulative delta reaches a local maximum or minimum, peak and trough markers appear, showing the precise bar where buying or selling pressure statistically peaked.
This combination of geometry and order flow reveals the intersection of market structure and energy — where liquidity pressure expresses itself through mathematical form.
6. Chart Interpretation
The primary chart view represents the live execution of the indicator. It displays the relationship between structural correlation and volume behavior in real time.
Orange “R+” and blue “R−” labels indicate regions of strong positive or negative Pearson correlation across the prime matrix. The yellow median prime-slope line serves as the structural backbone of the indicator, while green and red parallel bands act as dynamic regression boundaries derived from the underlying correlation strength. Peaks and troughs in cumulative delta — displayed as numerical annotations — mark statistically significant shifts in buying and selling pressure.
The secondary visualization (Prime Regression Concept) expands on this by illustrating how regression behavior evolves across prime intervals. Each colored regression fan corresponds to a prime number window (2, 3, 5, 7, …, 97), demonstrating how multiple regression lines would appear if drawn independently. The indicator integrates these into one unified geometric model — eliminating the need to plot tens of regression lines manually. It’s a conceptual tool to help visualize the internal logic: the synthesis of many small-scale regressions into a single coherent structure.
7. Interpretive Insight
This model is not a prediction tool; it’s an instrument of mathematical observation. By translating price dynamics into a prime-structured correlation space, it reveals how coherence unfolds through time — not as a forecast, but as a measurable evolution of structure.
It unifies three analytical domains:
- Prime distribution — defines a nonlinear temporal architecture.
- Pearson correlation — quantifies statistical cohesion.
- Cumulative delta — expresses behavioral imbalance in order flow.
The synthesis creates a geometric analysis of liquidity and time — where structure meets energy, and where the invisible rhythm of market flow becomes measurable.
8. Contribution & Feedback
Share your observations in the comments:
- The time gap and alternation between R+ and R− clusters.
- How different timeframes change delta sensitivity or reveal compression/expansion.
- Prime intervals/clusters that tend to sit near turning points or liquidity shifts.
- How avgR behaves across assets or regimes (trending, ranging, high-vol).
- Notable interactions with the parallel bands (touches, breaks, mean-revert).
Your field notes help others read the model more effectively and compare contexts.
Summary
- Primes define the structure.
- Pearson quantifies coherence.
- Slope median stabilizes geometry.
- Regression bands visualize deviation.
- Cumulative delta locates imbalance.
Together, they construct a framework where mathematics meets market behavior.
ORBs, EMAs, SMAs, AVWAPThis is an update to a previously published script. In short the difference is the added capability to adjust the length of EMAs. Also added 3 customizable SMAs. Enjoy! Let me know what you think of the script please. This is only second one I have ever done. Through practice and people like @LuxAlgo and other Pinescripters this isn't possible. Tedious hrs with ChatGPT to correct nuances, who doesnt seem to learn from (insert pronoun) mistakes
This all-in-one indicator combines key institutional tools into a unified framework for intraday and swing trading. Designed for traders who use multi-session analysis and dynamic levels, it automatically maps out global session breakouts, moving averages, and volume-weighted anchors with high clarity.
Features include:
🕓 Tokyo, London, and New York ORBs (Opening Range Breakouts) — 30-minute configurable range boxes that persist until the next New York open.
📈 Anchored VWAP with Standard Deviation Bands — dynamically anchorable to session, week, or month for institutional-grade price tracking.
📊 Exponential Moving Averages (9, 20, 113, 200) — for short-, mid-, and long-term momentum structure.
📉 Simple Moving Averages (20, 50, 100) — fully customizable lengths, colors, and visibility toggles for trend confirmation.
🏁 Prior High/Low Levels (PDH/PDL, PWH/PWL, PMH/PML) — automatically plotted from previous day, week, and month, with labels placed at each session’s midpoint.
🎛️ Session-Aligned Time Logic — all time calculations use New York session anchors with DST awareness.
💡 Clean Visualization Options — every component can be toggled on/off, recolored, or customized for your workflow.
Best used for:
ORB break-and-retest setups
VWAP and EMA rejections
Confluence-based trading around key session levels
Multi-session momentum tracking
SP2L RavaAcademy (poursamadi)Rava Academy - SP2L Strategy Assistant
This indicator is an assistive tool designed by Rava Academy to implement the SP2L trading strategy, which is a price action concept focused on identifying market exhaustion and potential reversals.
Core Concept:
The underlying logic of this script is to detect a specific price action pattern known as the "Spike and Two-Legged Pullback". The indicator identifies an initial strong price movement (the Spike) followed by a corrective phase with two distinct legs. The signals are generated near the completion of the second leg, which often represents a high-probability entry point as the initial momentum is expected to resume. This mechanical approach helps traders identify these complex patterns systematically.
Key Features:
Automatic Pattern Detection: The indicator automatically scans the chart for SP2L patterns.
Clear Visual Signals: It provides straightforward arrows to indicate potential setups.
Time-Saving Analysis: This tool minimizes the need for manual pattern identification.
Multi-Market Compatibility: Optimized for Forex and Cryptocurrencies.
How to Use:
Green Arrow (▲): Indicates a potential buy setup.
Red Arrow (▼): Indicates a potential sell setup.
Disclaimer:
This tool is for educational and analytical purposes only. Trading involves significant risk. All trading decisions are the sole responsibility of the user. Past performance is not indicative of future results.
Key Levels (PA, MAs, VWAPs, Volume Profile, rVWAPs)This indicator marks all kinds of key levels so that users can keep an overview of their specified levels in a convenient non chart cluttering way. It can highlight levels of confluence or display each level seperately.
The indicator includes markers for the following levels:
Price Action: Opens, Previous High/Low, Monday Range
Moving Averages: H4, D1 and W1 with customisable lengths
VWAPs: Developing and Previous VWAPs with their respective VAL/VAH (1 Standard Deviation)
Rolling VWAPs
Volume Profile: Developing and Previous VAL/VAH/POC
What makes this indicator different is its vast customisation options and big library of levels…
… users can choose to merge all levels that are aligned in a specified % threshold and additionally they can choose to color them the same color to highlight confluence levels.
… users have the choice between Full Label Markers or Abbreviations of those Labels.
… users have the choice of a few presets making level switching fast and convenient (Price Action, Volume Profile, VWAP, Volume or Custom).
… users can specify if they prefer to highlight Simple Moving Averages or Exponential Moving Averages. They have calculations available on three different timeframes and can change the lengths of each.
… users can color all levels the same with one click instead of having to manually change all of them.
… when users choose Volume Profile Levels they can either let the script auto calculate the row size making asset switching simple or they can manually input row size.
With the custom preset users can show and hide whichever levels they want.
(To have them the same every time you freshly load the indicator save your settings as default in the lower left corner of the settings tab).
Purpose
This indicator is designed to serve as a level visualisation tool that has the ability to highlight levels of confluence. It may assist in keeping an overview of where all levels are currently located but does not produce signals or trade recommendations.
🐼 Panda EMA-OBV Dual SignalPanda EMA-OBV Dual Signal
Description:
The Panda EMA-OBV Dual Signal combines exponential moving averages (EMAs) with On-Balance Volume (OBV) to identify both trend direction and momentum strength.
This script is designed for professional traders who want clear visual confirmations for reversals and trend continuations.
Main Features:
• Multi-layer EMA system (14 / 20 / 50 / 100 periods) for trend alignment
• OBV divergence detection (Bullish / Bearish)
• RSI confirmation filter for extra accuracy
• Auto signal arrows for buy/sell opportunities
• Works on all timeframes (H1 / H4 / D / W / MN)
How to use:
1️⃣ Look for Buy signal when OBV shows Bullish divergence and price closes above EMA 20.
2️⃣ Look for Sell signal when OBV shows Bearish divergence and price closes below EMA 20.
3️⃣ Use EMA crossovers as confirmation for trend continuation.
Tip:
The script is optimized for XAUUSD and BTCUSD but can also be applied to other assets for swing or intraday analysis.
Created by Millionbears | For educational and analytical purposes only.
Robust Scaled HMA | OquantOverview
The Robust Scaled HMA is an indicator designed to provide a more resilient trend-following signal by combining the Hull Moving Average (HMA) with a robust scaling mechanism based on interquartile range (IQR). Unlike traditional scaled indicators that rely on standard deviation, which can be skewed by outliers in volatile markets, this approach uses quartiles to normalize the HMA values, offering better resistance to extreme price movements. It generates long and short signals based on user-defined thresholds and includes built-in performance metrics to evaluate the indicator's historical behavior, alongside buy-and-hold comparisons(Remember past performance doesn’t guarantee future results). This allows traders to assess potential effectiveness without needing external backtesting tools(Remember past performance doesn’t guarantee future results). The indicator is particularly useful for those seeking a balance between responsiveness and robustness in trend detection, and it visualizes allocation states (LONG, SHORT, or CASH) through color-coded plots and optional tables.
Key Factors/Components
Robust Scaling: Employs IQR for normalization instead of standard deviation, reducing sensitivity to outliers and providing a more stable measure of deviation from the median HMA.
Signal Generation: Threshold-based triggers for long (above upper threshold) and short (below lower threshold) positions, with options to enable/disable longs or shorts to suit directional biases.
Performance Metrics: Calculates key risk-adjusted metrics such as Maximum Drawdown (Max DD), Intra-Trade Max DD, Sharpe Ratio, Sortino Ratio, Omega Ratio, Percent Profitable, Profit Factor, Total Trades, and Net Profit for the indicator's signals.
Buy-and-Hold Comparison: Displays equivalent metrics for a simple buy-and-hold approach on the same asset and timeframe for benchmarking.
Visualization Tools: Color-coded plot of the scaled HMA, threshold lines, optional equity curve, bar coloring, and customizable tables for metrics and allocation status.
Alert Conditions: Built-in alerts for bullish (crossover to long) and bearish (crossunder to short) signals.
How It Works
The indicator starts by computing a standard HMA on the selected source. It then applies robust scaling over a lookback period by subtracting the median HMA and dividing by the IQR (difference between the 75th and 25th percentiles), resulting in a normalized value that highlights deviations in a outlier-resistant manner. Signals are derived simply: values exceeding the upper threshold suggest upward momentum (long), while those below the lower threshold indicate downward momentum (short). The script simulates a basic equity curve by applying these signals to daily returns, holding long/short only when enabled, otherwise defaulting to cash (0% return). Metrics are computed on this equity curve using standard formulas—e.g., Sharpe as average return over standard deviation of returns (annualized), Sortino focusing on downside deviation, and Omega as the ratio of positive to negative returns. All calculations begin from the user-specified start date to ensure relevance to the tested period(Remember past performance doesn’t guarantee future results). This logic emphasizes robustness for real-world application.
For Who It Is Best/Recommended Use Cases
This indicator is best suited for traders focused on trend-following strategies in markets prone to volatility or outliers. Recommended use cases include:
Trend Identification: As a filter for entering/exiting positions.
Strategy Evaluation: Quickly assessing signal quality through integrated metrics without complex backtesting setups(Remember past performance doesn’t guarantee future results).
Customization: Adjusting for bullish biases by disabling shorts, or vice versa, in one-sided markets.
Settings and Default Settings
Start Date: Timestamp for when calculations begin (default: 1 Jan 2018).
Source: Price series for HMA calculation (default: close).
HMA Length: Period for the Hull Moving Average (default: 25).
Robust Scaling Length: Lookback for robust scaling calculations (default: 40).
Upper Threshold: Level above which long signals trigger (default: 0.6).
Lower Threshold: Level below which short signals trigger (default: -0.2).
Allow Long Trades: Enables long positions; if disabled, defaults to cash (default: true).
Allow Shorts: Enables short positions; if disabled, defaults to cash (default: false).
Show Indicator Metrics Table: Displays table with strategy metrics (default: true).
Show Buy&Hold Table: Displays table with asset benchmarks (default: true).
Plot Equity Curve: Shows the simulated equity line (default: false).
Defaults are tuned for general use.
Conclusion
The Robust Scaled HMA offers a fresh take on trend detection by prioritizing robustness through IQR scaling, making it a valuable addition for traders aiming to navigate noisy markets with metrics-backed insights(Remember past performance doesn’t guarantee future results).
⚠️ Disclaimer: This indicator is intended for educational and informational purposes only. Trading/investing involves risk, and past performance does not guarantee future results. Always test and evaluate indicators/strategies before applying them in live markets. Use at your own risk.
ICT HTF Volume Candles (Based on HTF Candles by Fadi)# ICT HTF Volume Candles - Multi-Timeframe Volume Analysis
## Overview
This indicator provides multi-timeframe volume visualization designed to complement price action analysis. It displays volume data from up to 6 higher timeframes simultaneously in a separate panel, allowing traders to identify volume spikes, divergences, and institutional activity without switching between timeframes.
**Original Concept Credits:** This indicator builds upon the HTF Candles framework by Fadi, adapting it specifically for volume analysis with enhanced features including gap-filling for extended hours, multiple scaling methods, and advanced synchronization.
## What Makes This Script Original
### Key Innovations:
1. **Three Volume Scaling Methods:**
- **Per-HTF Auto Scale:** Each timeframe scales independently for detailed comparison
- **Global Auto Scale:** All timeframes use unified scale for relative volume comparison
- **Manual Scale:** User-defined maximum for consistent analysis across sessions
2. **Bullish/Bearish Volume Differentiation:**
- Volume bars colored based on price movement (close vs open)
- Separate styling for bullish (green) and bearish (red) volume periods
- Helps identify whether volume supports price direction
3. **Advanced Time Synchronization:**
- Custom daily candle open times (Midnight, 8:30 AM, 9:30 AM ET)
- Timezone-aware calculations for New York trading hours
- Real-time countdown timers for each timeframe
- **Gap-filling technology** for continuous display during extended hours and weekends
4. **Flexible Display Options:**
- Configurable spacing and positioning
- Label placement (top, bottom, or both)
- Day-of-week or time interval labels on candles
- Works reliably in backtesting and live trading
## How It Works
### Volume Calculation
The indicator uses `request.security()` with optimized parameters to fetch volume data from higher timeframes:
- **Volume Open/High/Low/Close (OHLC):** Tracks volume changes within each HTF candle
- **Color Logic:** Compares HTF close vs open prices to determine bullish/bearish classification
- **Alignment:** All volume bars share a common baseline for easy visual comparison
- **Gap Handling:** Uses `gaps=barmerge.gaps_off` to maintain continuity during non-trading hours
### Technical Implementation
```
1. Monitors HTF timeframe changes using request.security() with lookahead
2. Creates new VolumeCandle object when HTF bar opens
3. Updates current candle's volume H/L/C on each chart bar
4. Applies selected scaling method to normalize display height
5. Repositions all candles and labels on each bar update
6. Fills gaps automatically during extended hours for consistent display
```
### Scaling Methods Explained
**Method 1 - Auto Scale per HTF:**
Each timeframe displays volume relative to its own maximum. Best for identifying patterns within each individual timeframe.
**Method 2 - Global Auto Scale:**
All timeframes share the same scale based on the highest volume across all HTFs. Best for comparing relative volume strength between timeframes.
**Method 3 - Manual Scale:**
User sets maximum volume value. Best for maintaining consistent scale across different trading sessions or instruments.
## How to Use This Indicator
### Setup
1. Add indicator to your chart (it appears in a separate panel below price)
2. Configure up to 6 higher timeframes (default: 5m, 15m, 1H, 4H, 1D, 1W)
3. Set number of candles to display for each timeframe
4. Choose volume scaling method based on your analysis needs
5. Enable "Fix gaps in non-trading hours" for extended hours trading (enabled by default)
### Interpretation
**Volume Spikes:**
- Sudden increase in volume height indicates institutional activity or strong conviction
- Compare volume between timeframes to identify where the real money is moving
- Look for volume spikes that appear across multiple timeframes simultaneously
**Bullish vs Bearish Volume:**
- **Green volume bars:** Price closed higher (buying pressure)
- **Red volume bars:** Price closed lower (selling pressure)
- High green volume during uptrend = confirmation of strength
- High red volume during downtrend = confirmation of weakness
- High volume opposite to trend = potential reversal warning
**Multi-Timeframe Context:**
- **5m/15m:** Scalping and day trading activity
- **1H/4H:** Swing trading and intraday institutional flows
- **Daily/Weekly:** Major position building and long-term trends
**Divergences:**
- Price making new highs but volume declining = weakening trend
- Volume increasing while price consolidates = potential breakout brewing
- Price breaks level but volume doesn't confirm = likely false breakout
### Practical Examples
**Example 1 - Institutional Confirmation:**
Price breaks above resistance. Check volume across timeframes:
- 5m shows spike = retail interest
- 15m + 1H + 4H all show spikes = institutional confirmation
- **Trade confidence: HIGH**
**Example 2 - False Breakout Detection:**
Price breaks resistance with:
- High volume on 5m only
- Normal/low volume on 1H and 4H
- **Interpretation:** Likely retail trap, institutions not participating
- **Action:** Wait for pullback or avoid
**Example 3 - Accumulation Phase:**
Price ranges sideways but:
- Daily volume gradually increasing
- Weekly volume above average
- **Interpretation:** Smart money accumulating
- **Action:** Prepare for breakout in direction of volume
**Example 4 - Volume Divergence:**
Price makes new high:
- Current high has lower volume than previous high across all timeframes
- **Interpretation:** Weakening momentum
- **Action:** Consider profit-taking or reversal trade
## Configuration Parameters
### Timeframe Settings
- **HTF 1-6:** Select timeframes (must be higher than chart timeframe)
- **Max Display:** Number of candles to show per timeframe (1-50)
- **Limit to Next HTFs:** Display only first N enabled timeframes (1-6)
### Styling
- **Bull/Bear Colors:** Separate colors for body, border, and wick
- **Padding from current candles:** Distance offset from live price action
- **Space between candles:** Gap between individual volume bars
- **Space between Higher Timeframes:** Gap between different timeframe groups
- **Candle Width:** Thickness of volume bars (1-4, multiplied by 2)
### Volume Settings
- **Volume Scale Method:** Choose 1, 2, or 3
- 1 = Auto Scale per HTF (each TF independent)
- 2 = Global Auto Scale (all TF unified)
- 3 = Manual Scale (user-defined max)
- **Auto Scale Volume:** Enable/disable automatic scaling
- **Manual Scale Max Volume:** Set maximum when using Method 3
### Label Settings
- **HTF Label:** Show/hide timeframe names with color and size options
- **Label Positions:** Display at Top, Bottom, or Both
- **Label Alignment:** Align centered or Follow Candles
- **Remaining Time:** Show countdown timer until next HTF candle
- **Interval Value:** Display day-of-week or time on each candle
### Custom Daily Candle
- **Enable Custom Daily:** Override default daily candle timing
- **Open Time Options:**
- **Midnight:** Standard 00:00 ET daily open
- **8:30 AM:** Align with economic data releases
- **9:30 AM:** Align with NYSE market open
- Useful for specific trading strategies or market alignment
### Advanced Settings
- **Fix gaps in non-trading hours:** Maintains alignment during extended hours and weekends (recommended: ON)
- Prevents visual gaps during forex weekend closures
- Ensures consistent display during crypto 24/7 trading
- Improves backtesting reliability
## Best Practices
1. **Pair with Price Action:** Use alongside HTF price candles indicator for complete picture
2. **Start Simple:** Enable 2-3 timeframes initially (e.g., 15m, 1H, 4H), add more as needed
3. **Match Settings:** Use same candle width/spacing as companion price indicator for visual alignment
4. **Scale Appropriately:**
- Use **Global scale** (Method 2) when comparing timeframes
- Use **Per-HTF scale** (Method 1) for pattern analysis within each timeframe
- Use **Manual scale** (Method 3) for consistent day-to-day comparison
5. **Watch for Volume Clusters:** High volume appearing simultaneously across multiple HTFs signals significant market events
6. **Confirm Breakouts:** Always check if volume supports the price movement across higher timeframes
7. **Extended Hours:** Keep "Fix gaps" enabled for 24/7 markets (Forex, Crypto) and weekend analysis
## Technical Notes
- **Timezone:** All calculations use America/New_York timezone for consistency
- **Real-time Updates:** Volume and timers update on each tick during market hours
- **Performance:** Optimized with max_bars_back=5000 for extensive historical analysis
- **Compatibility:** Works on all instruments with volume data (Stocks, Forex, Crypto, Futures)
- **Gap Handling:** Uses `barmerge.gaps_off` to fill data gaps during non-trading periods
- **Backtesting:** Uses `lookahead=barmerge.lookahead_on` for stable historical data without repainting
- **Data Continuity:** Automatically handles market closures, weekends, and extended hours
## Updates & Improvements
**Version 2.0 (Current):**
- ✅ Fixed alignment issues during extended hours and weekends
- ✅ Eliminated repainting in backtesting
- ✅ Added gap-filling technology for continuous display
- ✅ Improved data synchronization across all timeframes
- ✅ Enhanced NA value handling for data integrity
- ✅ Added advanced settings group for user control
## Support
For questions, suggestions, or feedback, please comment on the publication or message the author.
---
**Disclaimer:** This indicator is for educational and informational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always perform your own analysis and implement proper risk management before making trading decisions.
SD Daily BTC (M1)EN
Description:
This indicator is based on an institutional model that calculates price zones representing cheap and expensive market areas using standard deviations. It helps visualize potential price extremes and better understand market structure.
Note:
The indicator is designed only for the M1 or lower timeframes.
It should be used solely as confirmation of existing trade ideas and never as a standalone decision-making tool.
Available at ko-fi.com
SD Daily FDAX (M1)EN
Description:
This indicator is based on an institutional model that calculates price zones representing cheap and expensive market areas using standard deviations. It helps visualize potential price extremes and better understand market structure.
Note:
The indicator is designed only for the M1 or lower timeframes.
It should be used solely as confirmation of existing trade ideas and never as a standalone decision-making tool.
Available at ko-fi.com
SD Daily NQ (M1)EN
Description:
This indicator is based on an institutional model that calculates price zones representing cheap and expensive market areas using standard deviations. It helps visualize potential price extremes and better understand market structure.
Note:
The indicator is designed only for the M1 or lower timeframes.
It should be used solely as confirmation of existing trade ideas and never as a standalone decision-making tool.
Available at ko-fi.com
SD Daily ES (M1)EN
Description:
This indicator is based on an institutional model that calculates price zones representing cheap and expensive market areas using standard deviations. It helps visualize potential price extremes and better understand market structure.
Note:
The indicator is designed only for the M1 or lower timeframes.
It should be used solely as confirmation of existing trade ideas and never as a standalone decision-making tool.
Available at ko-fi.com
SD Daily GC (M1)EN
Description:
This indicator is based on an institutional model that calculates price zones representing cheap and expensive market areas using standard deviations. It helps visualize potential price extremes and better understand market structure.
Note:
The indicator is designed only for the M1 or lower timeframes.
It should be used solely as confirmation of existing trade ideas and never as a standalone decision-making tool.
Available at ko-fi.com






















