Range Oscillator (Zeiierman)█ Overview
Range Oscillator (Zeiierman) is a dynamic market oscillator designed to visualize how far the price is trading relative to its equilibrium range. Instead of relying on traditional overbought/oversold thresholds, it uses adaptive range detection and heatmap coloring to reveal where price is trading within a volatility-adjusted band.
The oscillator maps market movement as a heat zone, highlighting when the price approaches the upper or lower range boundaries and signaling potential breakout or mean-reversion conditions.
Highlights
Adaptive range detection based on ATR and weighted price movement.
Heatmap-driven coloring that visualizes volatility pressure and directional bias.
Clear transition zones for detecting trend shifts and equilibrium points.
█ How It Works
⚪ Range Detection
The indicator identifies a dynamic price range using two main parameters:
Minimum Range Length: The number of bars required to confirm that a valid range exists.
Range Width Multiplier: Expands or contracts the detected range proportionally to the ATR (Average True Range).
This approach ensures that the oscillator automatically adapts to both trending and ranging markets without manual recalibration.
⚪ Weighted Mean Calculation
Instead of a simple moving average, the script calculates a weighted equilibrium mean based on the size of consecutive candle movements:
Larger price changes are given greater weight, emphasizing recent volatility.
⚪ Oscillator Formula
Once the range and equilibrium mean are defined, the oscillator computes:
Osc = 100 * (Close - Mean) / RangeATR
This normalizes price distance relative to the dynamic range size — producing consistent readings across volatile and quiet periods.
█ Heatmap Logic
The Range Oscillator includes a built-in heatmap engine that color-codes each oscillator value based on recent price interaction intensity:
Strong Bullish Zones: Bright green — price faces little resistance upward.
Weak Bullish Zones: Muted green — uptrend continuation but with minor hesitation.
Transition Zones: Blue — areas of uncertainty or trend shift.
Weak Bearish Zones: Maroon — downtrend pressure but soft momentum.
Strong Bearish Zones: Bright red — strong downside continuation with low resistance.
Each color band adapts dynamically using:
Number of Heat Levels: Controls granularity of the heatmap.
Minimum Touches per Level: Defines how reactive or “sensitive” each color zone is.
█ How to Use
⚪ Trend & Momentum Confirmation
When the oscillator stays above +0 with green coloring, it suggests sustained bullish pressure.
Similarly, readings below –0 with red coloring, it suggests sustained bearish pressure.
⚪ Range Breakouts
When the oscillator line breaks above +100 or below –100, the price is exceeding its normal volatility range, often signaling breakout potential or exhaustion extremes.
⚪ Mean Reversion Trades
Look for the oscillator to cross back toward zero after reaching an extreme. These transitions (often marked by blue tones) can identify early reversals or range resets.
⚪ Divergence
Use oscillator peaks and troughs relative to price action to spot hidden strength or weakness before the next move.
█ Settings
Minimum Range Length: Number of bars needed to confirm a valid range.
Range Width Multiplier: Expands or contracts range width based on ATR.
Number of Heat Levels: Number of gradient bands used in the oscillator.
Minimum Touches per Level: Sensitivity threshold for when a zone becomes “hot.”
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Indicators and strategies
Enhanced OB Retest Strategy v7.0The OB Retest Strategy is a full Order Block retest trading system that detects, plots, and trades OB zones across multiple timeframes. It uses structure breaks, retrace depth, and ATR filters to identify strong reversal or continuation setups.
⸻
⚙️ Core Features
• Multi-timeframe OB detection using break-of-structure (BOS) logic
• Automatic zone creation for bullish and bearish order blocks
• Smart merging of overlapping OB zones
• Dynamic flip-zone logic that turns invalidated OBs into new zones
• Wick zone detection for high-precision entries
• ATR-based trailing stop and optional breakeven
• Adjustable retrace depth, breakout %, and ATR filters
• Built-in performance table showing PnL, win rate, and total trades
• Fully backtestable with date range and commission control
⸻
🧠 Logic Summary
1. Detects a BOS on the higher timeframe.
2. Identifies the last opposing candle as the valid OB.
3. Validates the OB based on ATR size and breakout strength.
4. Waits for price to retest the zone to a set depth.
5. Executes trades and manages exits using trailing stop or breakeven.
6. Flips invalidated zones automatically.
⸻
💡 Usage Tips
• Best used on 1H to 4H charts for swing setups.
• Tune ATR and breakout thresholds for your market’s volatility.
• Combine with higher-timeframe bias or liquidity levels for better accuracy.
⸻
⚠️ Notes
• For educational and testing purposes only.
• Backtested results do not predict future performance.
• Always test before live use.
IIR One-Pole Price Filter [BackQuant]IIR One-Pole Price Filter
A lightweight, mathematically grounded smoothing filter derived from signal processing theory, designed to denoise price data while maintaining minimal lag. It provides a refined alternative to the classic Exponential Moving Average (EMA) by directly controlling the filter’s responsiveness through three interchangeable alpha modes: EMA-Length , Half-Life , and Cutoff-Period .
Concept overview
An IIR (Infinite Impulse Response) filter is a type of recursive filter that blends current and past input values to produce a smooth, continuous output. The "one-pole" version is its simplest form, consisting of a single recursive feedback loop that exponentially decays older price information. This makes it both memory-efficient and responsive , ideal for traders seeking a precise balance between noise reduction and reaction speed.
Unlike standard moving averages, the IIR filter can be tuned in physically meaningful terms (such as half-life or cutoff frequency) rather than just arbitrary periods. This allows the trader to think about responsiveness in the same way an engineer or physicist would interpret signal smoothing.
Why use it
Filters out market noise without introducing heavy lag like higher-order smoothers.
Adapts to various trading speeds and time horizons by changing how alpha (responsiveness) is parameterized.
Provides consistent and mathematically interpretable control of smoothing, suitable for both discretionary and algorithmic systems.
Can serve as the core component in adaptive strategies, volatility normalization, or trend extraction pipelines.
Alpha Modes Explained
EMA-Length : Classic exponential decay with alpha = 2 / (L + 1). Equivalent to a standard EMA but exposed directly for fine control.
Half-Life : Defines the number of bars it takes for the influence of a price input to decay by half. More intuitive for time-domain analysis.
Cutoff-Period : Inspired by analog filter theory, defines the cutoff frequency (in bars) beyond which price oscillations are heavily attenuated. Lower periods = faster response.
Formula in plain terms
Each bar updates as:
yₜ = yₜ₋₁ + alpha × (priceₜ − yₜ₋₁)
Where alpha is the smoothing coefficient derived from your chosen mode.
Smaller alpha → smoother but slower response.
Larger alpha → faster but noisier response.
Practical application
Trend detection : When the filter line rises, momentum is positive; when it falls, momentum is negative.
Signal timing : Use the crossover of the filter vs its previous value (or price) as an entry/exit condition.
Noise suppression : Apply on volatile assets or lower timeframes to remove flicker from raw price data.
Foundation for advanced filters : The one-pole IIR serves as a building block for multi-pole cascades, adaptive smoothers, and spectral filters.
Customization options
Alpha Scale : Multiplies the final alpha to fine-tune aggressiveness without changing the mode’s core math.
Color Painting : Candles can be painted green/red by trend direction for visual clarity.
Line Width & Transparency : Adjust the visual intensity to integrate cleanly with your charting style.
Interpretation tips
A smooth yet reactive line implies optimal tuning — minimal delay with reduced false flips.
A sluggish line suggests alpha is too small (increase responsiveness).
A noisy, twitchy line means alpha is too large (increase smoothing).
Half-life tuning often feels more natural for aligning filter speed with price cycles or bar duration.
Summary
The IIR One-Pole Price Filter is a signal smoother that merges simplicity with mathematical rigor. Whether you’re filtering for entry signals, generating trend overlays, or constructing larger multi-stage systems, this filter delivers stability, clarity, and precision control over noise versus lag, an essential tool for any quantitative or systematic trading approach.
RSI Breakout Zones█ OVERVIEW
“RSI Breakout Zones” is a technical analysis tool that identifies significant zones on the chart based on the Relative Strength Index (RSI). The indicator maps overbought (OB) and oversold (OS) zones using boxes, then extends them until the next zone of the same type is detected, highlighting breakout points to aid in trade entry decisions. These zones often serve as areas of consolidation, support, or resistance.
█ CONCEPTS
The indicator identifies overbought (above 70) and oversold (below 30) zones, drawing boxes that extend until the next zone of the same type (OB for OB, OS for OS) is detected. Breakout signals are generated when the price crosses the zone boundaries, indicating potential shifts in market momentum.
Why are RSI zones important? These zones represent areas of extreme market sentiment, often leading to corrections or reversals. Overbought zones suggest potential selling pressure, while oversold zones indicate buying opportunities. After a breakout, a zone may switch roles, e.g., from support to resistance or vice versa, making it a key element in price action analysis. Larger zones, formed during high volatility, may attract price for retests due to stronger imbalances in buyer/seller dynamics. Consolidation often occurs within these zones as the market seeks equilibrium before further moves. However, in strong trends, zones may be decisively broken without immediate pullbacks, and their significance depends on their position relative to key support and resistance levels.
█ FEATURES
- RSI Zone Detection: Calculates RSI with a customizable length (default 14) and identifies overbought/oversold zones based on user-defined levels (default 70/30), drawing boxes that dynamically adjust to price action within the zone.
- Customizable Boxes: Zones extend until the next zone of the same type is detected. The indicator draws zones with adjustable colors for overbought (red) and oversold (green) areas, with options for box and zone transparency.
- Breakout Signals: Generates upward (green triangle) and downward (red triangle) breakout signals when the price crosses the top or bottom of a zone. Signals appear below or above the bar, indicating potential trade entry points.
- Midline: Automatically draws a dashed line at the midpoint of each zone, helping traders assess price behavior within the zone and potential halfway retests.
- Box Management: Option to remove outdated boxes.
- Alerts: Built-in support for alerts on breakout signals, enabling traders to receive notifications for key zone crossings.
█ HOW TO USE
Add to Chart: Apply the indicator to your TradingView chart via the Pine Editor or Indicators menu.
Configure Settings:
- RSI Settings: Adjust RSI Length (default 14), Overbought Level (default 70), and Oversold Level (default 30) to tailor zone detection sensitivity—higher lengths smooth signals for longer-term analysis.
- Box Settings: Configure colors and transparency for overbought (red) and oversold (green) zones, including box transparency (default 90) and zone transparency (default 90).
- Signal Settings: Customize breakout signal colors (green for upward, red for downward) and enable/disable keeping boxes after RSI normalization.
Interpreting Signals:
- Upward Breakout Signal: A green triangle below the bar indicates a breakout, suggesting potential bullish momentum and trend continuation or reversal.
- Downward Breakout Signal: A red triangle above the bar indicates a breakout, suggesting potential bearish momentum.
- RSI Zones: If the price re-enters a zone after a breakout, it may signal a false breakout or consolidation; persistent zones can act as future support/resistance levels. Consolidation often occurs within these zones as the market seeks equilibrium.
- Use signals alongside other technical analysis tools for confirmation, such as moving averages (to confirm trend direction), Fibonacci levels (to identify key price zones), or volume indicators (to validate breakout strength). Analyze RSI zones on higher timeframes for stronger signals due to broader market context.
█ APPLICATIONS
- Momentum Trading: Use RSI zones as overbought/oversold filters. In an uptrend, look for buying opportunities on upward breakouts, and in a downtrend, on downward breakouts. Combining with MACD crossovers, Fibonacci levels, or pivot points enhances zone significance.
- Inter-Zone Trading: Utilize breakouts from one RSI zone and hold the position until reaching the next zone, which may act as a target level or reversal point.
█ NOTES
- Test the indicator across different timeframes and markets (stocks, forex, crypto) to optimize RSI length and levels for your trading style.
- For best results, use in trending markets where RSI extremes are more predictive; in ranging markets, additional filters are recommended to reduce false signals.
- Always combine with risk management; RSI zones alone do not guarantee reversals, and false breakouts may occur in low-liquidity environments.
MESA Adaptive Ehlers Flow | AlphaNattMESA Adaptive Ehlers Flow | AlphaNatt
An advanced adaptive indicator based on John Ehlers' MESA (Maximum Entropy Spectrum Analysis) algorithm that automatically adjusts to market cycles in real-time, providing superior trend identification with minimal lag across all market conditions.
🎯 What Makes This Indicator Revolutionary?
Unlike traditional moving averages with fixed parameters, this indicator uses Hilbert Transform mathematics to detect the dominant market cycle and adapts its responsiveness accordingly:
Automatically detects market cycles using advanced signal processing
MAMA (MESA Adaptive Moving Average) adapts from fast to slow based on cycle phase
FAMA (Following Adaptive Moving Average) provides confirmation signals
Dynamic volatility bands that expand and contract with cycle detection
Zero manual optimization required - the indicator tunes itself
📊 Core Components
1. MESA Adaptive Moving Average (MAMA)
The MAMA is the crown jewel of adaptive indicators. It uses the Hilbert Transform to measure the market's dominant cycle and adjusts its smoothing factor in real-time:
During trending phases: Responds quickly to capture moves
During choppy phases: Smooths heavily to filter noise
Transition is automatic and seamless based on price action
Parameters:
Fast Limit: Maximum responsiveness (default: 0.5) - how fast the indicator can adapt
Slow Limit: Minimum responsiveness (default: 0.05) - maximum smoothing during consolidation
2. Following Adaptive Moving Average (FAMA)
The FAMA is a slower version of MAMA that follows the primary signal. The relationship between MAMA and FAMA provides powerful trend confirmation:
MAMA > FAMA: Bullish trend in progress
MAMA < FAMA: Bearish trend in progress
Crossovers signal potential trend changes
3. Hilbert Transform Cycle Detection
The indicator employs sophisticated DSP (Digital Signal Processing) techniques:
Detects the dominant cycle period (1.5 to 50 bars)
Measures phase relationships in the price data
Calculates adaptive alpha values based on cycle dynamics
Continuously updates as market character changes
⚡ Key Features
Adaptive Alpha Calculation
The indicator's "intelligence" comes from its adaptive alpha:
Alpha dynamically adjusts between Fast Limit and Slow Limit based on the rate of phase change in the market cycle. Rapid phase changes trigger faster adaptation, while stable cycles maintain smoother response.
Dynamic Volatility Bands
Unlike static bands, these adapt to both ATR volatility AND the current cycle state:
Bands widen when the indicator detects fast adaptation (trending)
Bands narrow during slow adaptation (consolidation)
Band Multiplier controls overall width (default: 1.5)
Provides context-aware support and resistance
Intelligent Color Coding
Cyan: Bullish regime (MAMA > FAMA and price > MAMA)
Magenta: Bearish regime (MAMA < FAMA and price < MAMA)
Gray: Neutral/transitional state
📈 Trading Strategies
Trend Following Strategy
The MESA indicator excels at identifying and riding strong trends while automatically reducing sensitivity during choppy periods.
Entry Signals:
Long: MAMA crosses above FAMA with price closing above MAMA
Short: MAMA crosses below FAMA with price closing below MAMA
Exit/Management:
Exit longs when MAMA crosses below FAMA
Exit shorts when MAMA crosses above FAMA
Use dynamic bands as trailing stop references
Mean Reversion Strategy
When price extends beyond the dynamic bands during established trends, look for bounces back toward the MAMA line.
Setup Conditions:
Strong trend confirmed by MAMA/FAMA alignment
Price touches or exceeds outer band
Enter on first sign of reversal toward MAMA
Target: Return to MAMA line or opposite band
Cycle-Based Swing Trading
The indicator's cycle detection makes it ideal for swing trading:
Enter on MAMA/FAMA crossovers
Hold through the detected cycle period
Exit on counter-crossover or band extremes
Works exceptionally well on 4H to Daily timeframes
🔬 Technical Background
The Hilbert Transform
The Hilbert Transform is a mathematical operation used in signal processing to extract instantaneous phase and frequency information from a signal. In trading applications:
Separates trend from cycle components
Identifies the dominant market cycle without curve-fitting
Provides leading indicators of trend changes
MESA Algorithm Components
Smoothing: 4-bar weighted moving average for noise reduction
Detrending: Removes linear price trend to isolate cycles
InPhase & Quadrature: Orthogonal components for phase measurement
Homodyne Discriminator: Calculates instantaneous period
Adaptive Alpha: Converts period to smoothing factor
MAMA/FAMA: Final adaptive moving averages
⚙️ Optimization Guide
Fast Limit (0.1 - 0.9)
Higher values (0.5-0.9): More responsive, better for volatile markets and lower timeframes
Lower values (0.1-0.3): Smoother response, better for stable markets and higher timeframes
Default 0.5: Balanced for most applications
Slow Limit (0.01 - 0.1)
Higher values (0.05-0.1): Less smoothing during consolidation, more signals
Lower values (0.01-0.03): Heavy smoothing during chop, fewer but cleaner signals
Default 0.05: Good noise filtering while maintaining responsiveness
Band Multiplier (0.5 - 3.0)
Adjust based on instrument volatility
Backtest to find optimal value for your specific market
1.5 works well for most forex and equity indices
Consider higher values (2.0-2.5) for cryptocurrencies
🎨 Visual Interpretation
The gradient visualization shows probability zones around the MESA line:
MESA line: The adaptive trend center
Band expansion: Indicates strong cycle detection and trending
Band contraction: Indicates consolidation or ranging market
Color intensity: Shows confidence in trend direction
💡 Best Practices
Let it adapt: Give the indicator 50+ bars to properly calibrate to the market
Combine timeframes: Use higher timeframe MESA for trend bias, lower for entries
Respect the bands: Price rarely stays outside bands for extended periods
Watch for compression: Narrow bands often precede explosive moves
Volume confirmation: Combine with volume for higher probability setups
📊 Optimal Timeframes
15m - 1H: Day trading with Fast Limit 0.6-0.8
4H - Daily: Swing trading with Fast Limit 0.4-0.6 (recommended)
Weekly: Position trading with Fast Limit 0.2-0.4
⚠️ Important Considerations
The indicator needs time to "learn" the market - avoid trading the first 50 bars after applying
Extreme gap events can temporarily disrupt cycle calculations
Works best in markets with detectable cyclical behavior
Less effective during news events or extreme volatility spikes
Consider the detected cycle period for position holding times
🔍 What Makes MESA Superior?
Compared to traditional indicators:
vs. Fixed MAs: Automatically adjusts to market conditions instead of using one-size-fits-all parameters
vs. Other Adaptive MAs: Uses true DSP mathematics rather than simple volatility adjustments
vs. Manual Optimization: Continuously re-optimizes itself in real-time
vs. Lagging Indicators: Hilbert Transform provides earlier trend change detection
🎓 Understanding Adaptation
The magic of MESA is that it solves the eternal dilemma of technical analysis: be fast and get whipsawed in chop, or be smooth and miss the early move. MESA does both by detecting when to be fast and when to be smooth.
Adaptation in Action:
Strong trend starts → MESA quickly detects phase change → Fast Limit kicks in → Early entry
Trend continues → Phase stabilizes → MESA maintains moderate speed → Smooth ride
Consolidation begins → Phase changes slow → Slow Limit engages → Whipsaw avoidance
🚀 Advanced Applications
Multi-timeframe confluence: Use MESA on 3 timeframes for high-probability setups
Divergence detection: Watch for MAMA/price divergences at band extremes
Cycle period analysis: The internal period calculation can guide position duration
Band squeeze trading: Narrow bands + MAMA/FAMA cross = high-probability breakout
Created by AlphaNatt - Based on John Ehlers' MESA research. For educational purposes. Always practice proper risk management. Not financial advice. Always DYOR.
ten2 Cipher v.1Created and built by ten2crypto
This is not just another "Market Cipher" clone. This is my personal, ground-up build of a comprehensive momentum and divergence toolkit, designed to provide a deeper, more nuanced view of the market. The ten2 Cipher Divergence Engine combines the best aspects of classic momentum oscillators with a powerful, multi-layered divergence system.
This indicator was built for my own trading and is now being shared with the community.
Heiken Ashi Trend w/vol Signals**Heiken Ashi Trend Signals**
⚠️ **DISCLAIMER: Trading involves extreme risk. This is for educational purposes only.**
**What This Indicator Does:**
This indicator identifies potential entry and exit points for trending moves by analyzing Heiken Ashi candle patterns combined with moving average confirmation and trend visualization. It provides visual signals based on specific candle characteristics and momentum shifts, along with volume. This can help spot reversals, pullback/continuations, take profit signals, and other trading opportunities.
**IMPORTANT:** It is recommended to use along with Heiken Ashi style candles, but the signals will still plot on other chart types. It's important to know it's always using Heiken Ashi calculations regardless of which chart style you prefer. Intended to use with Weekly/Daily chart, Daily/4hr chart, or 4hr/1hr chart combinations.
**Turn off all sell signals to reduce clutter if you're trading Longs
**Alert Functionality:**
Choose which signals matter most to your trading strategy or which entry you're waiting for on a specific chart. Set up individual alerts for:
- Long Entry - Get notified when bullish signal criteria are met
- Long Entry High Volume - Get notified only when bullish signals occur with above average volume
- Exit Long - Know when long exit conditions trigger
- Short Entry - Catch bearish signal opportunities
- Short Entry High Volume - Get notified only when bearish signals occur with above average volume.
- Exit Short - Exit alerts for short positions
Monitor opportunities across multiple symbols without watching charts constantly. Each alert type can be enabled or disabled independently based on your specific setup. They can also be added to entire watchlists at once, depending on the TV plan you have.
**Key Features:**
📢 Flexible Alert System: Select only the signal types you want to be notified about - perfect for traders who focus exclusively on longs, shorts, or both
🟢 Long Entry Signals: Identifies strong bullish candles (no lower wick) that close above both EMAs with recent "red bar" in the previous 4 bars
🔴 Short Entry Signals: Identifies strong bearish candles (no upper wick) that close below both EMAs with recent "green bar" in the previous 4 bars
🚪 Exit Signals: Flags when opposing candle color appears (orange X for long exits, purple X for short exits) - this can be a take profit, stop loss adjustment, etc., depending on your target or other confluence such as support/resistance, 200 SMA, etc.
📊 Volume Confirmation: Small colored circles appear on signal bars to indicate volume strength (green = above average, yellow = below average)**
☁️ Dynamic EMA Cloud: Visual trend indicator based on EMA alignment
📊 Customizable Moving Averages: Two EMAs (default 8 & 30) and two SMAs (default 50 & 200), all fully adjustable
🎨 Full Customization: All colors, transparencies, and line weights are adjustable in the Style tab
**Understanding Heiken Ashi Candles:**
Regular candlesticks display raw price action, including every minor fluctuation and moment of indecision. Heiken Ashi candles take a different approach - they average price data from the current and previous periods, creating a smoothed representation of price movement.
Think of it like this: if regular candles show every ripple in the ocean, Heiken Ashi candles are the overall movement of the ocean.
This smoothing process filters out market noise and makes genuine trend changes easier to identify.
**Benefits of Using Heiken Ashi:**
✅ Clearer Trend Visualization - Sustained color runs indicate strong trends
✅ Reduced Noise - Smoothing removes choppy, indecisive price action
✅ Momentum Identification - Helps spot potential shifts in market direction
✅ Easier to Read - Less cognitive load analyzing price action
**Moving Averages & Trend Context:**
The indicator includes a comprehensive moving average system to provide trend context:
**Simple Moving Averages:**
- SMA 1 (default 50) - Intermediate trend reference
- SMA 2 (default 200) - Long-term trend reference
- Both lengths are fully customizable
- Toggle on/off independently
- Use for additional support/resistance context and confluence
**Volume Confirmation:**
The indicator includes volume analysis to help assess signal stength:
- Green circle = strong volume
- Orange circle = weak volume
**High volume alerts available** - set alerts specifically for signals that occur with strong volume
**Why This Matters:**
- Breakouts with high volume tend to be more reliable
- Low volume signals may indicate weak participation or false moves
- Allows you to prioritize high-conviction setups
- Can filter out low-volume signals entirely using the "High Volume" alert options
**Benefits of This Approach:**
✅ Additional Confirmation - Requires breaking through resistance/support
✅ Filtered Signals - Reduces signals on weak bounces
✅ Quality Focus - Fewer but more structured setups
✅ Clear Criteria - Objective rules for signal generation
**Using This Indicator in Confluence:**
This indicator is designed to be one component of a comprehensive trading strategy. Always use it in conjunction with other analysis methods:
**Potential Confluence Factors:**
✅ Volume Confirmation - Higher volume breakouts are typically more reliable
✅ Longer-Term Moving Averages (50ma & 200ma), Support & Resistance, Fibonacci levels, etc
✅ Market Structure - Identify higher highs/lows (uptrend) or lower highs/lows (downtrend)
✅ Time Frame Alignment - Confirm signals on your trading timeframe align with higher timeframe trends
**Important Considerations:**
This indicator provides signals based on mathematical criteria, but does not guarantee trading success. All trading involves risk, and you should:
- Never rely on a single indicator for trading decisions
- Always do your own analysis and due diligence
- Use proper risk management and position sizing
- Practice on paper/demo accounts
- Understand that past performance does not indicate future results
**What Makes This Indicator Useful:**
This indicator combines multiple confirmation factors:
- No bottom wick (for longs) = buyers controlled the entire session, no lower rejection
- No top wick (for shorts) = sellers controlled the entire session, no upper rejection
- Volume confirmation = visual indicator of participation strength
- Visual trend context = cloud color shows EMA alignment at a glance
**Best Used For:**
- Swing trading on daily/weekly timeframes. Some prefer to enter on 4hr confirmation.
- Identifying potential trend changes for further analysis
- Visual confirmation of EMA alignment and trend structure
- Combining with volume, support/resistance, and other technical factors
- Filtering for high-probability setups with volume confirmation
- Systematic, rules-based approach to reduce emotional decisions
- Spotting reversals, pullbacks/continuations, and take profit opportunities
All visual elements are fully customizable to match your charting preferences while maintaining the core signal logic.
**Educational Tool:**
This indicator is intended as an educational and analytical tool to help traders identify potential setups based on specific technical criteria. It should be used as part of a broader trading education and strategy development process, not as standalone trading advice.
---
Darvas Lines/Box1. Overview
The Darvas Lines/Box (v1.0) is a dynamic trend following indicator based on the renowned method developed by Nicolas Darvas. It's designed to identify clear price consolidation ranges and detect decisive breakouts, crucial for positional and swing trading strategies.
This indicator automatically draws and adjusts the consolidation ranges, and includes modern enhancements such as Advanced Retest Confirmation and exposed alert conditions, providing reliable signals for monitoring and acting on trend continuations.
2. Core Features
Custom Display Mode (Lines/Box): Allows the user to toggle the visualization between showing just the Breakout Lines (Lines) or displaying the consolidation area with a filled background box (Box).
Source Selection (Wicks/Body): Users can choose whether the box boundaries are defined by the candlestick wicks (price extremes) or the candlestick body (open/close price). This feature is critical for adjusting sensitivity to market noise.
Dynamic Box Drawing: Draws Darvas boxes automatically by tracking price highs and lows based on user-defined parameters (Bars to Define Range, Max Box Height).
Retest Confirmation: Detects if the old resistance/support line functions effectively after a breakout. When a retest is confirmed, the line is extended and its color changes.
Price Labels (Stable Lock): Displays the highest and lowest box prices, fixed to the left outer edge of the box. This ensures stable visibility.
Progress Labels: Visualizes the current line price and the percentage distance to the closing price on the right side of the box, showing progress toward the next breakout.
3. Trading Strategy: How to Use the Indicator
This indicator is primarily used to identify trend initiation and trend continuation signals.
A. Entry Strategy (Breakout)
Long Entry Action: Consider taking a long entry when the price closes above the Upper Line (Green Line), signaled by a BULLISH BREAKOUT alert.
Signal: Use the BULLISH BREAKOUT alert.
Short Entry Action: Consider taking a short entry when the price closes below the Lower Line (Red Line), signaled by a BEARISH BREAKOUT alert.
Signal: Use the BEARISH BREAKOUT alert.
B. Retest Strategy (Add-on/Confirmation)
Action: When the price pulls back to touch the broken line (signaled by RETEST CONFIRMED), this confirms the break's validity.
Alert: The RETEST CONFIRMED alert is triggered at this moment.
C. Risk Management (General)
Stop Loss: The initial stop-loss is typically set just beyond the opposite side of the broken box. As the trend progresses and new boxes form, the lower boundary of the most recently formed box can be used as a trailing stop for managing risk.
4. Setting Parameters
Line Source (Wicks/Body): Crucial for sensitivity. 'Wicks' tracks price extremes; 'Body' tracks stronger close-to-close movements, ignoring noise.
Bars to Define Range: Defines the calculation period (in bars) for the box.
Cooldown Bars After Breakout: Sets the waiting period after a breakout before a new box can start forming.
Retest Lookback Bars (Phase 3): Sets the maximum number of bars to check for a retest during the cooldown phase.
Max Gap for Retest (%): Defines the maximum percentage distance from the line allowed to confirm a retest (Set to Zero (0.0%) for near-touch detection).
Alert Frequency (Breakout): Allows selection between Continuous and Once per Box for breakout signals.
5. Alerts: How to Set Up the Triggers
This indicator exposes several specific conditions to the TradingView alert panel, allowing you to select the exact event you want to monitor.
Step-by-Step Alert Setup:
Open the Alert Panel on the chart.
In the Condition field, select the indicator's name.
In the Alert Condition field, choose the specific event you want to monitor:
1. ANY DARVAS EVENT (Consolidated)
2. BULLISH BREAKOUT (Individual)
3. BEARISH BREAKOUT (Individual)
4. RETEST CONFIRMED (Individual)
In the Trigger field (Frequency), select your preferred native option (e.g., "Once Per Bar Close" or "Once per bar").
Liquidity Swap Detector Ultimate - Cedric JeanjeanAdvanced Smart Money Concepts indicator designed to detect high-probability liquidity sweeps and institutional order flow reversals. This professional-grade tool combines multiple ICT (Inner Circle Trader) strategies to identify optimal entry points.
═══════════════════════════════════════════════════════
📊 KEY FEATURES:
✅ Smart Swing Detection
- Identifies confirmed swing highs and lows using adaptive lookback periods
- Eliminates false signals through double-confirmation logic
- Detects liquidity grabs at key market structure points
✅ Fair Value Gap (FVG) Analysis
- Multi-timeframe FVG detection for enhanced accuracy
- Filters imbalances by minimum size threshold
- Combines current timeframe and higher timeframe FVGs
✅ Advanced Volatility Filter
- ATR-based volatility analysis to avoid low-quality setups
- Adjustable volatility threshold (default 0.35%)
- Ensures entries during optimal market conditions
✅ Precision Signal Generation
- LONG signals: Confirmed swing lows + FVG + volatility confirmation
- SHORT signals: Confirmed swing highs + FVG + volatility confirmation
- Clear visual markers with price labels
✅ Comprehensive Alert System
- Three alert types: Simple, Detailed, JSON (for webhooks)
- Separate LONG/SHORT alert controls
- Compatible with MT5 integration via webhooks
- TradingView native alertcondition support
✅ Professional Dashboard
- Real-time ATR monitoring
- Volatility percentage display
- FVG status indicator
- Alert status tracker
═══════════════════════════════════════════════════════
⚙️ CUSTOMIZABLE PARAMETERS:
🔹 Lookback Swing (1-50): Defines swing detection sensitivity
🔹 ATR Multiplier: Controls wick filter strength
🔹 Volatility Filter: Minimum required market volatility (%)
🔹 FVG Filter: Minimum fair value gap size (%)
🔹 FVG Timeframe: Higher timeframe for multi-TF analysis
🔹 Visual Options: Toggle swing marks, FVG zones, labels
🔹 Alert Controls: Enable/disable LONG/SHORT notifications
═══════════════════════════════════════════════════════
📈 HOW IT WORKS:
1. The indicator scans for confirmed swing points using a robust double-confirmation algorithm
2. Simultaneously analyzes Fair Value Gaps on both current and higher timeframes
3. Validates market volatility to ensure sufficient price movement
4. Generates precise entry signals when all conditions align
5. Triggers customizable alerts for instant notification
═══════════════════════════════════════════════════════
🎯 BEST PRACTICES:
- Use on liquid markets (Forex majors, indices, crypto)
- Recommended timeframes: 15m, 1H, 4H
- Combine with support/resistance for confirmation
- Adjust lookback period based on market volatility
- Test alert settings before live trading
- Use JSON alerts for automated trading integration
═══════════════════════════════════════════════════════
⚡ ALERT CONFIGURATION:
1. Click the Alert icon (bell) in TradingView
2. Select "Liquidity Swap Detector Ultimate - TITAN v6"
3. Choose your preferred alert condition:
- LONG Signal: Only bullish setups
- SHORT Signal: Only bearish setups
- ANY Signal: All trading opportunities
4. Set expiration and notification preferences
5. For MT5 integration: Select "JSON" message type and configure webhook URL
VWAP Retest + EMA9 Cross + Candle Pattern V2📈 VWAP Retest + EMA9 Cross + Candle Pattern Strategy_V2
Setup: This intraday momentum strategy combines 3 core elements:
• VWAP Retest: Price retests VWAP within a small buffer zone
• EMA9 Crossover: EMA9 crosses above VWAP within the last 3 bars
• Bullish Candle Pattern: At least one bullish signal — Hammer, Engulfing, or Momentum candle
A trade is triggered only during the US morning session (9:30–12:30 EST) and only if price is above yesterday’s high, suggesting strong momentum.
⚙️ Strategy Settings
• Initial Capital: $100,000
• Position Sizing: 10% of equity per trade
• Commission: 0.03% per trade
• Slippage: 1 tick
• Take Profit: +3% from entry
• Stop Loss: 0.5% below VWAP at entry
• Forced Exit: 1:00 PM EST
📊 Strategy Logic
• VWAP Retest Filter ensures entry is near a value zone.
• EMA9 Cross Confirmation aligns short-term momentum with volume-weighted price.
• Bullish Candle Patterns provide price action confirmation:
○ ✅ Hammer
○ ✅ Bullish Engulfing
○ ✅ Large momentum body
• Above Yesterday’s High (YH) acts as a bullish bias filter.
🧪 Backtest Results (Jan 2023 – Oct 2025)
• Total Trades: 120
• Win Rate: 52.5%
• Profit Factor: 1.18
• Max Drawdown: 1.22%
• Net P&L: +$1,064 (+1.06%)
Due to chart data limits, only part of the period may be visible on publication charts.
🔍 Chart Visuals
This strategy plots:
• VWAP (white) and EMA9 (orange)
• Candle pattern markers:
○ “H” = Hammer
○ “BE” = Bullish Engulfing
○ “M” = Momentum Candle
• “SETUP” label when all conditions are met
• YH/YL labels for context — previous day’s high/low
💡 Use Case
This setup is designed for intraday momentum scalping, ideal for traders who:
• Trade morning breakouts
• Use VWAP as a dynamic support/resistance
• Want clear, rule-based entries based on both trend and price action
Educational and research use - not financial advice.
Heiken Ashi BAS - Multi-Timeframe Strategy with Advanced FiltersHeiken Ashi BAS - Multi-Timeframe Strategy with Advanced Filters
🚀 Revolutionary Multi-Filter Trading System
This advanced indicator combines the power of Heiken Ashi smoothing with Ichimoku Baseline analysis, enhanced by multiple sophisticated filters for precision trading. ⭐ Add to Favorites and Follow for future updates!
✨ KEY ADVANCEMENTS IN VERSION 2.0
🎯 Dual Slope Divergence System
First Slope (1-bar): Captures immediate momentum shifts
Second Slope (3-bar): Identifies sustained trend direction
Slope Threshold Control: Customizable sensitivity for precise entries
Visual Slope Lines: Real-time slope visualization with color-coded trends
📊 Advanced Filter Matrix
RSI Momentum Filter: Confirms strength with customizable thresholds
ATR Volatility Filter: Ensures meaningful market movements
Volume Spike Detection: Filters low-volume false signals
Session Time Filter: Trade only during optimal market hours
🎭 Revolutionary Trading Psychology Features
Real-Time HA Candle Hidden Mode: Eliminate emotional trading by hiding unfolding candles - only see confirmed formations
Smart Alert Confirmation: Choose between real-time alerts or wait for candle close confirmation
Sound Alert System: Audio notifications for instant signal recognition
Emotion-Free Environment: Trade without the psychological pressure of watching candles form
🔧 CORE FEATURES
Multi-Timeframe Architecture: Separate timeframes for each component: Baseline, EMA, Slope, ATR, RSI - all can operate on different timeframes
True Multi-Timeframe Analysis: Unlike basic indicators, each filter can reference its own optimal timeframe
Flexible configuration: Match timeframes to your trading style - intraday, swing, or position trading
Consistent performance: Works seamlessly across all market conditions and instruments
Smart Alert & Display System
Real-Time vs Confirmed Mode: Toggle between immediate signals or wait for candle close
Sound Alert Integration: Customizable audio notifications with clear distinction between long/short signals
Visual Signal Options: Multiple sizes and colors for clear identification
Background Highlighting: Color-coded backgrounds for quick signal recognition
Advanced Sound Alert System
Instant Audio Notifications: Never miss a signal with clear sound alerts
Customizable Alert Types: Choose which signals trigger audio alerts
Real-time vs Closed Alerts: Sound alerts respect your confirmation preferences
Professional Alert Messages: Clear audio cues for long/short positions with price levels
Real-Time Candle Hidden Technology
Emotion-Free Trading: Hide unfolding candles to eliminate psychological pressure
Professional Approach: Trade like institutions that don't watch tick-by-tick movements
Reduced Overtrading: Fewer impulsive decisions by waiting for confirmed closes
Enhanced Focus: Concentrate on completed price action, not forming candles
Smart Risk Management
Dynamic TP/SL System:
-TP based on higher timeframe ATR
-SL referenced to Ichimoku Baseline
-Extended TP lines act as resistance levels
Configurable Risk-Reward: Adjustable multipliers for TP/SL
Visual Intelligence:
-Color-coded Heiken Ashi candles with adjustable opacity
-Clean, professional chart presentation
-Customizable signal sizes and colors
-Real-time information table with status overview
⚡ ADVANTAGES For TRADERS
Psychology-First Design: Hidden real-time candles eliminate emotional decision making
Double Slope Confirmation: Unlike single-slope systems, our dual approach reduces false signals
Flexible Alert Timing: Choose your confirmation style - immediate or after close
TP as Dynamic Resistance: Take-profit levels often act as temporary resistance, providing additional confirmation
Complete Filter Suite: 6 different filter types for maximum signal quality
True Multi-Timeframe Harmony: Each component can operate on its optimal timeframe
🛠 TECHNICAL SPECIFICATIONS
Primary Signal: Heiken Ashi close above/below Ichimoku Baseline + 200 EMA
Confirmation: Green/Red HA candles with minimum wick requirements
Psychology Tools: Hidden real-time candles + confirmed close options
Alert System: Sound + visual notifications with timing flexibility
Filters: Slope, ATR, RSI, Volume, Session Time
Risk Management: ATR-based TP/SL with extended visibility
Visual Options: Fully customizable colors, opacity, and sizes
🎯 TRADING PSYCHOLOGY BREAKTHROUGH
The Hidden Candle Advantage:
No More Emotional Reactions: Stop watching candles form and second-guessing entries
Confirmed Signals Only: Trade based on completed price action, not anticipation
Reduced Overtrading: Fewer false entries by waiting for proper confirmation
Professional Mindset: Think like institutional traders who don't watch tick-by-tick movements
🌟Sound Alert Benefits:
Instant Recognition: Audio cues help you recognize signals without staring at charts
Multi-Tasking Friendly: Get alerts while working on other tasks
Clear Distinction: Different sounds for long vs short positions
Customizable Volume: Adjust alert volume to your preference
Professional Timeframe Stacking:
Trend Identification: Higher timeframe baseline for overall direction
Entry Precision: Lower timeframe signals for exact timing
Risk Management: Separate timeframe for volatility assessment
Momentum Confirmation: Independent RSI timeframe for strength verification
📈 OPTIMAL SETTINGS
Emotion-Prone Traders: Enable hidden candles + confirmed close + sound alerts
Active Day Traders: Real-time mode with multi-timeframe analysis
Trend Markets: Enable all filters for high-quality signals
Ranging Markets: Use ATR filter to avoid choppy conditions
Session-Specific: Time filter for active hours only
🔍 WHY TRADERS CHOOSE THIS SYSTEM
Psychology Mastery: First indicator designed specifically for emotional control
Proven Accuracy: Multiple confluence points for reliable signals
Adaptive Design: Works across all markets and timeframes
Professional Grade: Institutional-level filtering in retail package
Continuous Innovation: Regular updates with new features
⭐ Don't forget to Add to Favorites and Follow for future updates!
Experience emotion-free trading with the Heiken Ashi Bas system that prioritizes your trading psychology as much as your technical analysis. Join traders who have improve their trading with our multi-timeframe, psychology-first approach.
Dynamic S/R# Complete Parameter Guide
## 1. Lookback Bars (Default: 500)
- **Function**: Number of historical bars the script analyzes to identify levels
- **Example**: If set to 500, the script examines the last 500 candles
- **Increase when**: Trading long-term, searching for old historical levels
- **Decrease when**: Day trading or short-term trading, viewing only recent levels
- **Recommendation**: 200-300 for day trading, 500-1000 for swing trading
## 2. Min Touches (Default: 3)
- **Function**: Minimum number of touches required for a level to be considered valid
- **Example**: If set to 3, a level with only 2 touches will not be displayed
- **Increase (4-5) when**: You want only very strong and confirmed levels
- **Decrease (2) when**: You want to identify potential levels early
- **Recommendation**: 3 is a balanced value - not too loose, not too strict
## 3. Extrema Type (Default: both)
- **Function**: Which type of extrema to identify
- **Options**:
- **min**: Support levels only (pivot lows)
- **max**: Resistance levels only (pivot highs)
- **both**: Both types
- **When to change**:
- In uptrend looking for support only: select "min"
- In downtrend looking for resistance only: select "max"
## 4. Pivot Window (Default: 5)
- **Function**: How many bars on each side are required to confirm a pivot
- **Technical explanation**: pivot low = price lower than 5 bars before it and 5 bars after it
- **Increase (7-10) when**:
- More significant extrema needed
- Less noise, fewer levels
- Good for higher timeframes
- **Decrease (3-4) when**:
- More sensitivity needed
- More levels wanted
- Good for scalping
- **Important**: Higher value = quality over quantity
## 5. Clustering Sensitivity % (Default: 0.5%)
- **Function**: Percentage deviation allowed to group touches into the same level
- **Example**: If level at $100 and sensitivity 0.5%, touches between $99.5-$100.5 count as same level
- **Increase (1-2%) when**:
- Volatile assets (crypto, small stocks)
- More consolidation of nearby levels
- Fewer levels on chart
- **Decrease (0.2-0.3%) when**:
- Stable assets (indices, forex majors)
- Higher precision needed
- Separation between close levels
- **Recommendation**: Start at 0.5% and adjust per instrument
## 6. Max Levels to Show (Default: 10)
- **Function**: Maximum number of support/resistance lines displayed on chart
- **Selection criteria**: Script prioritizes levels by:
1. Number of touches (more = stronger)
2. Price spread (tighter = more accurate)
3. Recency (most recent touch closer to present)
- **Low value (5-10)**: Clean chart with only strongest levels
- **High value (20-50)**: More options, including weaker levels
## 7. Min Bar Separation (Default: 5)
- **Function**: Minimum distance in bars between two touches of the same type (min or max)
- **Why important**: Prevents double-counting the same extremum
- **Example**: If pivot low at bar 100 and another at bar 103, only one counts
- **Increase (10-20) when**:
- Lower timeframes with much noise
- Avoiding false consolidation
- **Decrease (2-3) when**:
- Higher timeframes
- Identifying quick movements
## 8. Alert Proximity % (Default: 1%)
- **Function**: Distance from level at which to trigger alert
- **Example**: Level at $100, proximity 1% = alert between $99-$101
- **Increase (2-3%) when**:
- Earlier alerts wanted
- More preparation time needed
- May create false alerts
- **Decrease (0.5%) when**:
- More precise alerts wanted
- Stronger confirmation needed
- Less reaction time
- **Recommendation**: 1% works well for most cases
## 9. Show Price Bands (Default: true)
- **Function**: Displays zone around level instead of just a line
- **Zone size**: Plus/minus Clustering Sensitivity %
- **Why useful**:
- Levels are never exact lines
- Zone better represents reality
- Helps identify entries and exits within zone
- **Off**: Cleaner chart with only lines
## 10. Show Info Table (Default: true)
- **Function**: Displays information table in chart corner
- **Table contents**:
- Type: S (Support) / R (Resistance) / N (Neutral)
- Price: Level price
- Touches: Number of touches
- Bars Ago: How many bars since last touch
- **Off**: If you know the levels and want a clean chart
## Recommended Settings by Trading Style:
### Day Trading (Intraday)
```
Lookback Bars: 200-300
Min Touches: 2-3
Pivot Window: 3-5
Sensitivity: 0.3-0.5%
Max Levels: 5-8
```
### Swing Trading (Days-Weeks)
```
Lookback Bars: 500-800
Min Touches: 3-4
Pivot Window: 5-7
Sensitivity: 0.5-1%
Max Levels: 10-15
```
### Position Trading (Months)
```
Lookback Bars: 1000-2000
Min Touches: 4-5
Pivot Window: 7-10
Sensitivity: 1-2%
Max Levels: 8-12
```
**Important tip**: Start with default values and adjust gradually based on the asset and results.
Tape (Time and Sales) with CVD📊 Tape (Time and Sales) with CVD & Velocity
Overview
A professional Time and Sales (Tape) indicator that displays real-time order flow data using Cumulative Volume Delta (CVD) to accurately identify buy and sell trades. Features a unique CVD-based Velocity metric to measure order flow intensity.
Key Features
🎯 CVD-Based Trade Detection
- Uses Cumulative Volume Delta to determine true buy/sell trades
- Positive CVD change = Buy orders (hitting the ask)
- Negative CVD change = Sell orders (hitting the bid)
- More accurate than traditional bid/ask comparison methods
⚡ Directional Velocity Metric
- Calculates CVD change rate over a customizable time window (default: 60 seconds)
- Displays the speed of order flow (lots per second)
- Color-coded based on direction:
- Blue: Bullish velocity (buyers in control)
- Red: Bearish velocity (sellers in control)
- Highlights when velocity exceeds your threshold
📋 Real-Time Tape Display
Each row shows:
- Price: Color-coded by tick direction (uptick/downtick)
- Size: Volume with buy/sell background colors
- Time: Customizable format and timezone
- CVD: Running cumulative volume delta value
🎨 Visual Features
- Large print highlighting: Automatically highlights significant orders
- Price tick coloring: See upticks and downticks at a glance
- Configurable colors: Fully customizable color scheme
- Flexible positioning: Place the tape anywhere on your chart
- Invertible display: Choose whether new prints scroll up or down
Settings
CVD Configuration
- Custom timeframe: Choose the resolution for CVD calculation (1S recommended for precision)
- Anchor period: Set the CVD reset period (Daily, Weekly, etc.)
Velocity Settings
- Enable/Disable: Toggle velocity metric on/off
- Period: Time window for velocity calculation (1-60 seconds)
- Precision: Decimal places to display
- Threshold: Set alert level for significant velocity
Tape Customization
- Tape length: Number of rows to display (1-100)
- Min print size: Filter out small trades
- Large size threshold: Define what qualifies as a "large" order
- Size precision: Control decimal places for volume display
Display Options
- Text size: Auto, tiny, small, normal, large, huge
- Position: Top/Middle/Bottom × Left/Center/Right
- Time format: Customize timestamp display (ISO 8601)
- Timezone: Use exchange time or specify custom IANA timezone
- Column visibility: Show/hide Price, Time, or CVD columns
- Invert direction: Reverse tape scroll direction
How to Use
For Scalpers & Day Traders
1. Watch the Velocity metric for sudden spikes in order flow intensity
2. Look for large prints highlighted in yellow - these often indicate institutional activity
3. Monitor the CVD column to see if buyers or sellers are dominating
4. Use price tick colors to spot momentum shifts in real-time
For Order Flow Analysis
- High velocity + large buy orders = Strong bullish pressure
- High velocity + large sell orders = Strong bearish pressure
- Velocity divergence from price = Potential reversal signal
- Consistent buy/sell flow = Trend confirmation
Best Practices
- Use 1S timeframe for most accurate CVD calculations on liquid markets
- Adjust Large Size Min based on the instrument's average volume
- Set Velocity Threshold to filter noise and highlight significant order flow
- Consider using smaller tape length (10-15 rows) for cleaner display
Technical Details
- Uses `ta.requestVolumeDelta()` for precise CVD calculation
- Leverages `request.security_lower_tf()` for sub-bar data access
- Real-time only (no historical replay to ensure data accuracy)
- Optimized performance with single-loop iteration
Requirements
- TradingView Premium, Pro, or Pro+ (required for lower timeframe data access)
- Works best on liquid markets with frequent trades
Notes
- The indicator displays real-time data only and will show "Waiting for real-time data..." until live trades occur
- CVD accuracy depends on the exchange's volume data quality
- Velocity is calculated as absolute value but color-coded by direction
---
*Perfect for order flow traders, tape readers, and anyone who wants to see what's happening beneath the price action in real-time.*
Credits
Original concept modified to use CVD-based buy/sell detection with added directional velocity metric.
---
License: Mozilla Public License 2.0
Timeframe LiquidityTimeframe Liquidity – Multi-Timeframe Highs & Lows by
Timeframe Liquidity automatically plots previous day, week, month, and year highs and lows, key liquidity zones used by smart money and price-action traders. These levels extend into the future and can automatically stop once price wicks through, showing clear liquidity sweeps and tested zones.
Perfect for traders using ICT / SMC concepts, liquidity theory, or market structure analysis. Instantly see where liquidity rests, where it’s been taken, and how price reacts at major support and resistance.
Features:
Auto-plots PDH/PDL, PWH/PWL, PMH/PML, PYH/PYL
Custom line styles, colors, and label sizes
Option to stop line on wick (liquidity sweep)
Smart timeframe visibility (hides same-TF levels)
Accurate UTC offset handling
Identify liquidity pools fast, trade cleaner charts, and track where smart money hunts liquidity.
Built for precision, clarity, and confluence.
Granny Strategy [rdjxyz]This is the Granny Strategy, as described on TG Capital's Sunday Service stream .
Definitions
C0 - Candle 0 - the candle where the FVG start is plotted
C1 - Candle 1 - the candle that drives the FVG
C2 - Candle 2 - the candle where the FVG end is plotted
C3 - Candle 3 - the entry candle (assuming all criteria are met)
👵🏻 - Valid setup
🤡 - Invalid setup
The Setup
*As described on the stream.
*Look for longs when price is above 50 EMA; look for shorts when price is below the 50 EMA.
FVG is printed
C2 sweeps the low of C1 and closes bullish (for longs) or sweeps the high of C1 and closes bearish (for shorts)
C3 inverts FVG and closes below C1 open (for longs) or above C1 open (for shorts)
If criteria above is met, position is entered on the close of C3 with stop loss at the low of C3 (for longs) or high of C3 (for shorts)
Inputs
Time Window Filter - only look for setups within a certain range of time
EMA length - original strategy calls for 50
Stop loss offset - ticks to offset stop loss from low (for longs) / high (for shorts) of C3
Risk:Reward ratio - take profit as a multiple of the stop loss size from entry
Break even stop loss - optional, move stop loss to break even after price reaches a specific R:R; e.g. once price hits 1:1 R:R, move stop loss to break even
Exception Inputs
Allow some exceptions to the rigid rules
Select which candle in the sequence the EMA filter is applied to (can produce different results)
Disable EMA bias filter (will find shorts when price is above EMA and longs when price is below)
Allow C3 to close inside of FVG (instead of completely inverting it)
Allow C3 to close above C1 open (for longs) or below C1 open (for shorts)
Allow C2 to close opposite of setup direction; e.g. if long, C2 is allowed to close as a bearish candle instead of bullish candle
Play around with the different settings on various timeframes and instruments to find rules that work best for your strategy goals. Or just use it to find valid vs. invalid setups historically.
Will be working on adding a trailing stop loss.
Leave a comment with any bugs or ideas you have to improve the strategy.
IMPORTANT
Adjust account size, position size, commissions, etc in the properties tab for accurate results!
QQQ Price Levels + Custom LevelsThis indicator projects QQQ price levels onto any chart — ideal for traders who monitor Nasdaq futures (NQ), QQQ ETF, or correlated tech stocks.
It helps visualize where QQQ sits relative to your current instrument and lets you fully customize your view with user-defined colored levels.
QQQ Ladder Projection
Automatically plots a range of evenly spaced QQQ levels around the current QQQ price.
Adjustable multiplier for spacing.
Configurable line style (solid/dashed/dotted), color, and label offset.
Labels show “QQQ ” and move dynamically with chart scaling.
Six User-Defined QQQ Levels
- Type in up to six specific QQQ prices (e.g. key support/resistance or psychological levels).
- Each level has independent color, line width, and line style controls.
- Default theme: 3 red levels (resistance) and 3 green levels (support).
- Lines are projected onto the current chart’s price scale, even if it’s not QQQ.
Colored Overlay Labels
- Labels on the main QQQ ladder automatically recolor at your selected levels.
- A small box overlays the original label, matching your chosen line color for clear visual emphasis.
Dynamic Updates
- Choose to update on every tick or once per candle close.
- Compatible with intraday or higher-timeframe charts.
Statistical Price Deviation Index (MAD/VWMA)SPDI is a statistical oscillator designed to detect potential price reversal zones by measuring how far price deviates from its typical behavior within a defined rolling window.
Instead of using momentum or moving averages like traditional indicators, SPDI applies robust statistics - a rolling median and Mean Absolute Deviation (MAD) - to calculate a normalized measure of price displacement. This normalization keeps the output bounded (from −1 to +1 by default), producing a stable and consistent oscillator that adapts to changing volatility conditions.
The second line in SPDI uses a Volume-Weighted Moving Average (VWMA) instead of a simple price median. This creates a complementary oscillator showing statistically weighted deviations based on traded volume. When both oscillators align in their extremes, strong confluence reversal signals are generated.
How It Works
For each bar, SPDI calculates the median price of the last N bars (default 100).
It then measures how far the current bar’s midpoint deviates from that rolling median.
The Mean Absolute Deviation (MAD) of those distances defines a “normal” range of fluctuation.
The deviation is normalized and compressed via a tanh mapping, keeping the oscillator in fixed boundaries (−1 to +1).
The same logic is applied to the VWMA line to gauge volume-weighted deviations.
How to Use
The blue line (Price MAD) represents pure price deviation.
The green line (VWMA Disp) shows the volume-weighted deviation.
Overbought (red) zones indicate statistically extreme upward deviation -> potential short-term overextension.
Oversold (green) zones indicate statistically extreme downward deviation -> potential rebound area.
Confluence signals (both lines hitting the same extreme) often mark strong reversal points.
Settings Tips
Lookback length controls how much historical data defines “normal” behavior. Larger = smoother, smaller = more sensitive.
Smoothing (RMA length) can reduce noise without changing the overall statistical logic.
Output scale can be set to either −1..+1 or 0..100, depending on your visual preference.
Alerts and color fills are fully customizable in the Style tab.
Summary:
SPDI transforms raw price and volume data into a statistically bounded deviation index. When both Price MAD and VWMA Disp reach joint extremes, it highlights probable market turning points - offering traders a clean, data-driven way to spot potential reversals ahead of time.
GEX Delta Hedging Lines - v.4.1GEX Delta Hedging Indicator - Institutional Levels
Introduction
This Pine Script indicator is designed to visualize Gamma Exposure (GEX) levels, Delta Hedging zones, and institutional support/resistance points on your TradingView charts. It helps traders identify key price levels where market makers and institutions might hedge their options positions, potentially leading to price reversals or continuations. The indicator overlays lines for resistances (Call Wall, R1, R2), supports (Put Wall, S1, S2, S3), a Gamma Flip zone, and customizable trading zones (Buy, Neutral, Sell). It also includes alerts for level breaches and a summary table for quick reference.
Key Features
Resistance Levels: Call Wall (maximum resistance), R1 (strong), R2 (light) – all configurable with colors, styles, and widths.
Support Levels: Put Wall (maximum support), S1 (strong), S2 (moderate), S3 (weak/danger) – fully customizable.
Gamma Flip Zone: Indicates potential regime changes in market behavior.
Trading Zones: Visual boxes for Buy (green), Neutral (yellow), and Sell (red) areas, with adjustable boundaries and colors.
Current Price Line: Dotted line for the reference price, with labels.
Alerts: Trigger notifications when levels are tested or broken.
Summary Table: Displays levels, prices, and distances from the current close, positioned customizable.
Style Options: Adjust line widths, styles (solid/dashed/dotted), label sizes, and more for a personalized view.
Advanced Multi-Timeframe Trend & Signal System═══════════════════════════════════════════════════════════════
ADVANCED MULTI-TIMEFRAME TREND & SIGNAL SYSTEM v1.0
═══════════════════════════════════════════════════════════════
Created by: Zakaria Safri
License: Mozilla Public License 2.0
A comprehensive technical analysis tool designed for traders seeking
multi-dimensional market insights. This indicator combines proven
technical analysis methods with modern visualization techniques.
═══════════════════════════════════════════════════════════════
KEY FEATURES
═══════════════════════════════════════════════════════════════
✓ SUPERTREND SIGNAL GENERATION
- Customizable sensitivity settings
- Clear long/short entry signals
- Automatic trend direction detection
- ATR-based dynamic calculations
✓ MULTI-TIMEFRAME DASHBOARD
- Real-time trend analysis across 6 timeframes
- Synchronized trend confirmation
- Customizable table position and size
- Current: 1M, 5M, 15M, 1H, 1D coverage
✓ QQE REVERSAL DETECTION
- Quantitative Qualitative Estimation algorithm
- Early reversal signal identification
- Adjustable RSI and smoothing parameters
- Confirmation-based plotting
✓ DYNAMIC SUPPORT & RESISTANCE
- Pivot-based level calculation
- Quick and standard pivot detection
- Color-coded zones (8 levels)
- Automatic level updates
✓ MOMENTUM BREAKOUT SIGNALS
- Ichimoku-inspired calculations
- Bullish and bearish breakout detection
- Visual zone highlighting
- Trend confirmation filters
✓ RISK MANAGEMENT SYSTEM
- ATR-based stop loss calculation
- Multiple take profit targets (TP1, TP2, TP3)
- Customizable risk-to-reward ratios
- Dynamic price level tracking
- Hit detection markers
✓ VOLATILITY BANDS
- Keltner Channel implementation
- Multiple band layers (3 levels)
- EMA-based calculations
- Adaptive to market conditions
✓ TREND CLOUD VISUALIZATION
- Dual moving average cloud
- Clear trend direction indication
- Customizable color scheme
- Trend bar coloring
═══════════════════════════════════════════════════════════════
HOW TO USE
═══════════════════════════════════════════════════════════════
SETUP:
1. Add indicator to your chart
2. Configure sensitivity in Core Signals section
3. Enable desired features (signals, reversals, breakouts)
4. Set up risk management levels if trading
5. Position MTF dashboard to preference
SIGNAL INTERPRETATION:
• LONG Signal: Price crosses above Supertrend
• SHORT Signal: Price crosses below Supertrend
• REV (Reversal): QQE indicates potential trend change
• Diamond Breakouts: Momentum shift confirmation
• T1/T2/T3: Take profit level hits
MULTI-TIMEFRAME ANALYSIS:
• Green (BULL): Higher timeframe supports uptrend
• Red (BEAR): Higher timeframe supports downtrend
• Use for trend alignment and confirmation
• Best results when multiple timeframes align
RISK MANAGEMENT:
• Enable Stop Loss for automatic SL calculation
• Activate TP levels based on trading style
• Adjust Risk-to-Reward ratio (1:1 to 1:10)
• Monitor hit detection circles for exits
═══════════════════════════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════════════════════════
CALCULATIONS:
• Supertrend: ATR-based with customizable multiplier
• QQE: Modified RSI with Wilders smoothing
• Keltner Channels: EMA basis with ATR bands
• Pivots: Standard left/right bar methodology
• Support/Resistance: Multi-level pivot analysis
PARAMETERS:
• Supertrend Sensitivity: 0.5 to 10.0 (default: 2.0)
• RSI Period: 5 to 50 (default: 14)
• QQE Multiplier: 1.0 to 10.0 (default: 4.238)
• Risk-to-Reward: 1 to 10 (default: 4)
TIMEFRAMES:
Compatible with all timeframes. MTF dashboard displays:
• 1 Minute (1M)
• 5 Minutes (5M)
• 15 Minutes (15M)
• 1 Hour (1H)
• 1 Day (1D)
• Current chart timeframe
═══════════════════════════════════════════════════════════════
CUSTOMIZATION OPTIONS
═══════════════════════════════════════════════════════════════
VISUAL:
• Professional color scheme (Cyan/Orange)
• Adjustable table position (9 positions)
• Table size options (tiny/small/normal/large)
• Transparent zone highlighting
• Clean, modern label design
TOGGLES:
• Enable/disable any feature independently
• Show/hide signals, reversals, breakouts
• Toggle S/R levels and zones
• Control trend cloud and bands
• Master trend line optional
ALERTS:
The indicator provides visual signals that can be used with
TradingView's alert system by setting alerts on the indicator.
═══════════════════════════════════════════════════════════════
BEST PRACTICES
═══════════════════════════════════════════════════════════════
✓ Combine signals for higher probability setups
✓ Use MTF dashboard for trend confirmation
✓ Respect S/R levels for entry/exit planning
✓ Monitor QQE reversals at key price levels
✓ Adjust sensitivity based on asset volatility
✓ Test on demo/paper trading first
✓ Use proper risk management always
═══════════════════════════════════════════════════════════════
IMPORTANT DISCLAIMER
═══════════════════════════════════════════════════════════════
This indicator is a technical analysis tool and does NOT:
• Guarantee profitable trades
• Provide financial advice
• Predict future price movements with certainty
• Replace proper risk management
• Substitute for personal due diligence
Past performance does not indicate future results. All trading
involves risk. Users should:
- Understand the indicator's logic
- Test thoroughly before live trading
- Use appropriate position sizing
- Never risk more than they can afford to lose
- Consult financial advisors if needed
═══════════════════════════════════════════════════════════════
CODING STANDARDS
═══════════════════════════════════════════════════════════════
This indicator follows PineCoders Coding Conventions:
✓ Proper variable naming (prefixes: i_, f_, c_)
✓ Clear function documentation
✓ Organized code structure
✓ Type declarations
✓ Efficient calculations
✓ No repainting (confirmed signals)
✓ Proper use of request.security
═══════════════════════════════════════════════════════════════
SUPPORT & UPDATES
═══════════════════════════════════════════════════════════════
Version: 1.0
Author: Zakaria Safri
License: MPL 2.0
Last Updated: 2024
For questions, feedback, or suggestions, please comment below.
═══════════════════════════════════════════════════════════════
#trading #signals #supertrend #multiTimeframe #QQE #reversals
#supportResistance #riskManagement #trendAnalysis #momentum
XAUUSD Family Scalping (5min)💎 Advanced Gold Strategy — "Max Profit | Min Drawdown | High Profit Factor"
📊 Overview
This script is designed for XAUUSD (Gold) trading and optimized for maximum net profit, minimum drawdown, and a high profit factor.
It combines advanced momentum filters, market structure logic, and trend confirmation to ensure only the strongest entries are executed.
⚙️ Core Features
✅ Max Net Profit Optimization: Selects entry points based on the highest historical profitability.
🔵 Min Drawdown Filter: Automatically filters out high-risk trades to preserve equity and stability.
🟡 High Profit Factor Focus: Ensures that reward significantly outweighs risk for each trade.
📈 EMA 200 Trend Filter: Trades only in the direction of the main market trend.
🕐 Smart Signal Control: Avoids repetitive signals in the same area to reduce overtrading.
🔔 Clear Visual Alerts: Buy/Sell signals with strong accuracy and confirmation logic.
💡 Recommended Use
Symbol: XAUUSD (Gold)
Timeframe: 5 Minutes (M5) or 15 Minutes (M15)
Works best during London & New York sessions
⚠️ Disclaimer
This strategy is built for educational and backtesting purposes. Past performance does not guarantee future results. Always test before using on live markets.
Adaptive Trend 1m ### Overview
The "Adaptive Trend Impulse Parallel SL/TP 1m Realistic" strategy is a sophisticated trading system designed specifically for high-volatility markets like cryptocurrencies on 1-minute timeframes. It combines trend-following with momentum filters and adaptive parameters to dynamically adjust to market conditions, ensuring more reliable entries and risk management. This strategy uses SuperTrend for primary trend detection, enhanced by MACD, RSI, Bollinger Bands, and optional volume spikes. It incorporates parallel stop-loss (SL) and multiple take-profit (TP) levels based on ATR, with options for breakeven and trailing stops after the first TP. Optimized for realistic backtesting on short timeframes, it avoids over-optimization by adapting indicators to market speed and efficiency.
### Principles of Operation
The strategy operates on the principle of adaptive impulse trading, where entry signals are generated only when multiple conditions align to confirm a strong trend reversal or continuation:
1. **Trend Detection (SuperTrend)**: The core signal comes from an adaptive SuperTrend indicator. It calculates upper and lower bands using ATR (Average True Range) with dynamic periods and multipliers. A buy signal occurs when the price crosses above the lower band (from a downtrend), and a sell signal when it crosses below the upper band (from an uptrend). Adaptation is based on Rate of Change (ROC) to measure market speed, shortening periods in fast markets for quicker responses.
2. **Momentum and Trend Filters**:
- **MACD**: Uses adaptive fast and slow lengths. In "Trend Filter" mode (default when "Use MACD Cross" is false), it checks if the MACD line is above/below the signal for long/short. In cross mode, it requires a crossover/crossunder.
- **RSI**: Adaptive period RSI must be above 50 for longs and below 50 for shorts, confirming overbought/oversold conditions dynamically.
- **Bollinger Bands (BB)**: Depending on the mode ("Midline" by default), it requires the price to be above/below the BB midline for longs/shorts, or a breakout in "Breakout" mode. Deviation adapts to market efficiency.
- **Volume Spike Filter** (optional): Entries require volume to exceed an adaptive multiple of its SMA, signaling strong impulse.
3. **Volatility Filter**: Entries are only allowed if current ATR percentage exceeds a historical minimum (adaptive), preventing trades in low-volatility ranges.
4. **Risk Management (Parallel SL/TP)**:
- **Stop-Loss**: Set at an adaptive ATR multiple below/above entry for long/short.
- **Take-Profits**: Three levels at adaptive ATR multiples, with partial position closures (e.g., 51% at TP1, 25% at TP2, remainder at TP3).
- **Post-TP1 Features**: Optional breakeven moves SL to entry after TP1. Trailing SL uses BB midline as a dynamic trail.
- All levels are calculated per trade using the ATR at entry, making them "realistic" for 1m charts by widening SL and tightening initial TPs.
The strategy enters long on buy signals with all filters met, and short on sell signals. It uses pyramid margin (100% long/short) for full position sizing.
Adaptation is driven by:
- **Market Speed (normSpeed)**: Based on ROC, tightens multipliers in volatile periods.
- **Efficiency Ratio (ER)**: Measures trend strength, adjusting periods for trending vs. ranging markets.
This ensures the strategy "adapts" without manual tweaks, reducing false signals in varying conditions.
### Main Advantages
- **Adaptability**: Unlike static strategies, parameters dynamically adjust to market volatility and trend strength, improving performance across ranging and trending phases without over-optimization.
- **Realistic Risk Management for 1m**: Wider SL and tiered TPs prevent premature stops in noisy short-term charts, while partial profits lock in gains early. Breakeven/trailing options protect profits in extended moves.
- **Multi-Filter Confirmation**: Combines trend, momentum, and volume for high-probability entries, reducing whipsaws. The volatility filter avoids flat markets.
- **Debug Visualization**: Built-in plots for signals, levels, and component checks (when "Show Debug" is enabled) help users verify logic on charts.
- **Efficiency**: Low computational load, suitable for real-time trading on TradingView with alerts.
Backtesting shows robust results on volatile assets, with a focus on sustainable risk (e.g., SL at 3x ATR avoids excessive drawdowns).
### Uniqueness
What sets this strategy apart is its **fully adaptive framework** integrating multiple indicators with real-time market metrics (ROC for speed, ER for efficiency). Most trend strategies use fixed parameters, leading to poor adaptation; here, every key input (periods, multipliers, deviations) scales dynamically within bounds, creating a "self-tuning" system. The "parallel SL/TP with 1m realism" adds custom handling for micro-timeframes: tightened initial TPs for quick wins and adaptive min-ATR filter to skip low-vol bars. Unlike generic mashups, it justifies the combination—SuperTrend for trend, MACD/RSI/BB for impulse confirmation, volume for conviction—working synergistically to capture "trend impulses" while filtering noise. The post-TP1 breakeven/trailing tied to BB adds a unique profit-locking mechanism not common in open-source scripts.
### Recommended Settings
These settings are optimized and recommended for trading ASTER/USDT on Bybit, with 1-minute chart, x10 leverage, and cross margin mode. They provide a balanced risk-reward for this volatile pair:
- **Base Inputs**:
- Base ATR Period: 10
- Base SuperTrend ATR Multiplier: 2.5
- Base MACD Fast: 8
- Base MACD Slow: 17
- Base MACD Signal: 6
- Base RSI Period: 9
- Base Bollinger Period: 12
- Bollinger Deviation: 1.8
- Base Volume SMA Period: 19
- Base Volume Spike Multiplier: 1.8
- Adaptation Window: 54
- ROC Length: 10
- **TP/SL Settings**:
- Use Stop Loss: True
- Base SL Multiplier (ATR): 3
- Use Take Profits: True
- Base TP1 Multiplier (ATR): 5.5
- Base TP2 Multiplier (ATR): 10.5
- Base TP3 Multiplier (ATR): 19
- TP1 % Position: 51
- TP2 % Position: 25
- Breakeven after TP1: False
- Trailing SL after TP1: False
- Base Min ATR Filter: 0.001
- Use Volume Spike Filter: True
- BB Condition: Midline
- Use MACD Cross (false=Trend Filter): True
- Show Debug: True
For backtesting, use initial capital of 30 USD, base currency USDT, order size 100 USDT, pyramiding 1, commission 0.1%, slippage 0 ticks, long/short margin 0%.
Always backtest on your platform and use risk management—risk no more than 1-2% per trade. This is not financial advice; trade at your own risk.
JOPA Channel (Dual-Volumed) v1 [JopAlgo]JOPA Channel (Dual-Volumed) v1
Short title: JOPAV1 • License: MPL-2.0 • Provider: JopAlgo
We have developed our own, first channel-based trading indicator and we’re making it available to all traders. The goal was a channel that breathes with the tape—built on a volume-weighted backbone—so the outcome stays lively instead of static. That led to the JOPA Channel.
All important features (at a glance)
In one line: A Rolling-VWAP channel whose width adapts with two volumes (RVOL + dollar-flow), adds order-flow asymmetry (OBV tilt) and regime awareness (Efficiency Ratio), and frames risk with outer containment bands from residual extremes—so you see fair value, momentum, and exhaustion in one view.
Feature list
Rolling VWAP centerline: Tracks where volume traded (fair value).
Dual-volume width: Bands expand/contract with relative volume and value traded (price×volume).
OBV tilt: Upper/lower widths skew toward the side actually pushing.
Regime adapter (ER): Tighter in trend, wider in chop—automatically.
Outer containment rails: Residual-extreme ceilings/floors, smoothed + margin.
20% / 80% guides: 20% light blue (discount), 80% light red (premium).
Squeeze dots (optional): Orange circles below candles during compression.
Non-repainting: Uses rolling sums and past-only math; no lookahead.
Default visual in this release
Containment rails + fill: ON (stepline, medium).
Inner Value rails + fill: Rails OFF (stepline, thin), fill ON (drawn only if rails are shown).
20% & 80% guides: ON (dashed, thin; 20% light blue, 80% light red).
Squeeze dots: OFF by default (orange circles when enabled).
What you see on the chart
RVWAP (centerline): Your compass for fair value.
Inner Value Bands (optional): Tight rails for breakouts and pullback timing.
Outer Containment Bands (default ON): High-confidence ceilings/floors for targets and fades.
20% / 80% guides: Quick read of “where in the channel” price is sitting.
Squeeze dots (optional): Volatility compression heads-up (no text labels).
Non-repainting note: The indicator does not revise closed bars. Forecast-Lock uses linear regression to extrapolate 1–3 bars ahead without using future data.
How to use it
Core reads (works on any timeframe)
Bias: Above a rising RVWAP → long bias; below a falling RVWAP → short bias.
Breakouts (momentum): Close beyond an Inner Value rail with RVOL ≥ threshold (alert provided).
Reversions (fades): Tag Outer Containment, stall, then close back inside → expect mean reversion toward RVWAP.
20/80 timing:
At/above 80% (light red) → premium/exhaustion risk; trim longs or consider fades if RVOL cools.
At/below 20% (light blue) → discount/exhaustion risk; trim shorts or consider longs if RVOL cools.
Squeeze clusters: When dots bunch up, expect a range break; use the Breakout alert as confirmation.
Playbooks by trading style
Day Trading (1–5m)
Setup: Keep the chart clean (Containment ON, Value rails OFF). Toggle Inner Value ON when hunting a breakout or timing a pullback.
Pullback Long: Dip to RVWAP / Lower Value with sub-threshold RVOL, then a close back above RVWAP → long.
Stop: Just beyond Lower Containment or the pullback swing.
Targets (1:1:1): ⅓ at RVWAP, ⅓ at Upper Value, ⅓ trail toward Upper Containment.
Breakout Long: After a squeeze cluster, take the Breakout Long alert (close > Upper Value, RVOL ≥ min). If no retest, demand the next bar holds outside.
Range Fade: Only when RVWAP is flat and dots cluster; short Upper Containment → RVWAP (mirror for longs at the lower rail).
Intraday (15m–1H)
HTF compass: Take bias from 4H.
Pullback Long: “Touch & reclaim” of RVWAP while RVOL cools; enter on the reclaim close or break of that candle’s high.
Breakout: Run Inner Value ON; act on Breakout alerts (RVOL gate ≈ 1.10–1.15 typical).
Avoid low-probability fades against the 4H slope unless RVWAP is flat.
Swing (4H–1D)
Continuation: In uptrends, buy pullbacks to RVWAP / Lower Value with sub-threshold RVOL; scale at Upper Containment.
Adds: Post-squeeze Breakout Long adds; trail on RVWAP or Lower Value.
Fades: Prefer when RVWAP flattens and price oscillates between containments.
Position (1D+)
Framework: Daily RVWAP slope + position within containment.
Add rule: Each reclaim of RVWAP after a dip is an add; trim into Upper Containment or near 80% light red.
Sizing: Containment distance is larger—size down and trail on RVWAP.
Inputs & Settings (complete)
Core
Source: Price input for RVWAP.
Rolling VWAP Length: Window of the centerline (higher = smoother).
Volume Baseline (RVOL): SMA window for relative volume.
Inner Value Bands (volatility-based width)
k·StdDev(residuals), k·ATR, k·MAD(residuals): Blend three measures into base width.
StdDev / ATR / MAD Lengths: Lookbacks for each.
Two-Volume Fusion
RVOL Exponent: How aggressively width responds to relative volume.
Dollar-Flow Gain: Adds push from price×volume (value traded).
Dollar-Flow Z-Window: Standardization window for dollar-flow.
Asymmetry (Order-Flow Tilt)
Enable Tilt (OBV): Lets flow skew upper/lower widths.
Tilt Strength (0..1): Gain applied to OBV slope z-score.
OBV Slope Z-Window: Window to standardize OBV slope.
Regime Adapter
Efficiency Ratio Lookback: Measures trend vs chop.
ER Width Min/Max: Maps ER into a width factor (tighter in trend, wider in chop).
Band Tracking (inner value rails)
Tracking Mode:
Base: Pure base rails.
Parallel-Lock: Smooth RVWAP & width; track in parallel.
Slope-Lock: Adds a fraction of recent slope (momentum-friendly).
Forecast-Lock: 1–3 bar extrapolation via linreg (non-repainting on closed bars).
Attach Strength (0..1): Blend tracked rails vs base rails.
Tracking Smooth Length: EMA smoothing of RVWAP and width.
Slope Influence / Forecast Lead Bars: Gains for the chosen mode.
Outer Containment Bands
Show Containment Bands: Master toggle (default ON).
Residual Extremes Lookback: Highest/lowest residual window.
Extreme Smoothing (EMA): Stability on extreme lines.
Margin vs inner width: Extra padding relative to smoothed inner width.
Squeeze & Alerts
Squeeze Window / Threshold: Width vs average; at/under threshold = dot (when enabled).
Min RVOL for Breakout: Required RVOL for breakout alerts.
Style (defaults in this release)
Inner Value rails: OFF (stepline, thin).
Inner & Containment fills: ON.
Containment rails: ON (stepline, medium).
20% / 80% guides: ON — 20% light blue, 80% light red, dashed, thin.
Squeeze dots: OFF by default (orange circles below candles when enabled).
Practical templates (copy/paste into a plan)
Momentum Breakout
Context: Squeeze cluster near RVWAP; Inner Value ON.
Trigger: Breakout Long (close > Upper Value & RVOL ≥ min).
Stop: Below Lower Value (tight) or below RVWAP (safer).
Targets (1:1:1): ⅓ Value → ⅓ Containment → ⅓ trail on RVWAP.
Pullback Continuation
Context: Uptrend; dip to RVWAP / Lower Value with cooling RVOL.
Trigger: Close back above RVWAP or break of reclaim candle’s high.
Stop: Just outside Lower Containment or pullback swing.
Targets: RVWAP → Upper Value → Upper Containment.
Containment Reversion (range)
Context: RVWAP flat; repeated containment tags.
Trigger: Stall at containment, then close back inside.
Stop: A step beyond that containment.
Target: RVWAP; runner only if RVOL stays muted.
Alerts included
DVWAP Breakout Long / Short (Value Bands)
Top Zone / Bottom Zone (20% / 80% guides)
Tip: On lower TFs, act on Breakout alerts with higher-TF bias (e.g., trade 5–15m in the direction of 1H/4H RVWAP slope/position).
Best practices
Let RVWAP be the compass; if unsure, wait until price picks a side.
Respect RVOL; low-RVOL breaks are prone to fail.
Use guides for timing, not certainty. Pair 20/80 zones with flow context.
Start with defaults; change one knob at a time.
Common pitfalls
Fading every containment touch → only fade when RVWAP is flat or RVOL cools.
Over-tuning inputs → the defaults are robust; small tweaks go a long way.
Fighting the higher timeframe on low TFs → expensive habit.
Footer — License & Publishing
License: Mozilla Public License 2.0 (MPL-2.0). You may modify and redistribute; keep this file under MPL and provide source for this file.
Originality: © 2025 JopAlgo. No third-party code reused; Pine built-ins and common formulas only.
Publishing: Keep this header/description intact when releasing on TradingView. Avoid promotional links in the public script text.






















