Impulsive Trend Detector [dtAlgo]This advanced Pine Script indicator identifies and tracks impulsive price movements based on Break of Structure (BOS) and Change of Character (CHoCH) concepts from Smart Money trading methodology.
The indicator automatically detects pivot highs and lows, then monitors when price breaks these key levels to signal potential impulsive moves. BOS indicates continuation in the current trend direction, while CHoCH signals potential trend reversals. Each detected move is measured from the break point to the next opposing pivot, providing accurate percentage calculations that match TradingView's measuring tool.
Impulsive moves are categorized into four levels based on magnitude (Level 1: 5-10%, Level 2: 10-15%, Level 3: 15-20%, Level 4: 20%+), with color-coded visual labels and connecting lines displayed directly on the chart.
Comprehensive Session Analysis:
Track moves across 11 distinct trading sessions in Eastern Time: Pre-London/NY, London/NY overlap, NY (with Power Hour and End subdivisions), Sydney, Asia, Sake Time, Asia/London overlap, London, Weekend, and No Session periods.
Three Dynamic Tables provide:
Real-time statistics (bullish/bearish, BOS/CHoCH, levels)
Session breakdown with move counts and average percentages
Event log showing last 10 moves with date, day, session, direction, type, level, percentage, duration, and bar count
Perfect for Smart Money traders seeking data-driven insights into market structure behavior across global trading sessions.
Chỉ báo và chiến lược
Delta Volume Bubble [Quant Z-Score] by tncylyvDelta/Volume Bubble by tncylyv
This indicator is a quantitative order flow tool designed to visualize statistically significant volume and delta anomalies directly on the price chart. By moving away from raw, noisy volume numbers and utilizing Z-Score (Standard Score) statistics, this tool adapts to changing market volatility to highlight areas of heavy institutional interest or exhaustion.
It combines statistical analysis with Price Action concepts (Effort vs. Result) to detect "Absorption"—market conditions where high volume occurs with very little price movement.
1. Core Concepts & Methodology
A. Adaptive Z-Score (The "Quant" Logic)
Raw volume data is often difficult to interpret because volume fluctuates wildly between sessions (e.g., the Asian session typically has lower volume than the New York Open).
Instead of using a fixed volume threshold (e.g., "Alert me if volume > 1000"), this script calculates the Z-Score.
It measures how many Standard Deviations (
σ
) the current volume is from the historical average.
Significance: A Z-Score of +2.0 or higher puts the current candle in the top 5% of statistical occurrences, filtering out noise and highlighting true anomalies.
B. Absorption Detection (Effort vs. Result)
This feature identifies "Trapped Traders."
The Logic: If the Z-Score indicates extremely high volume (High Effort), but the price candle has a very small body (Low Result), it implies that aggressive market orders are being absorbed by passive limit orders.
Visual: These specific anomalies can be highlighted with a unique halo effect, signaling a potential reversal or stop-hunt area.
C. Intra-Bar True VWAP (Smart Placement)
Standard indicators usually plot symbols at the High, Low, or Close of a candle.
This script utilizes request.security_lower_tf to analyze the Lower Timeframe (LTF) structure of the specific bar.
It calculates the exact Volume Weighted Average Price (VWAP) of that single candle.
Benefit: The bubble is drawn exactly where the heaviest volume occurred inside the candle, providing a more accurate level for future Support/Resistance tests.
2. Key Features
Dual Data Modes: Switch seamlessly between Volume Delta (Buying vs. Selling pressure) or standard Total Volume.
Dynamic Sizing: Bubble sizes (Small, Medium, Large) scale automatically based on the intensity of the Z-Score.
Absorption Logic: Automatically flags candles where volume is high but price progression is stalled.
Adaptive Visuals: Colors and opacity can fade dynamically based on the strength of the signal, or remain solid based on user preference.
Alert System: Fully configurable alerts for Z-Score breakouts and Absorption detection.
3. How to Use
This tool is best used to identify Reversals and Breakout Validation.
Trend Exhaustion (Climax):
If price is trending up and a large "Bullish" bubble appears at the highs with a long upper wick or small body (Absorption), it may indicate buying exhaustion and passive selling.
Breakout Confirmation:
If price breaks a key support/resistance level accompanied by a Large Bubble (High Z-Score), it confirms institutional backing for the move.
Support/Resistance Defense:
The "True VWAP" location of the bubble often acts as a re-test level. If price retraces to the center of a previous large bubble, observe for a reaction.
4. Settings Guide
Data Settings
Calculation Source: Choose between Volume Delta (Up/Down tick analysis) or Regular Volume.
Lower TF Granularity: The timeframe used to calculate the specific "True VWAP" location inside the bar (e.g., 1S or 1M).
Statistical Lookback: The number of bars used to calculate the baseline Average and Standard Deviation (Default: 60).
Quant Logic
Calculation Mode:
Adaptive (Z-Score): Triggers based on relative statistical anomalies (Recommended).
Fixed: Triggers based on raw volume numbers.
Z-Score Threshold: The sensitivity level. 2.0 is standard; higher values (e.g., 3.0) will show fewer, more extreme signals.
Absorption Logic
Detect Absorption: Enables the calculation for small-bodied high-volume candles.
Absorption Ratio: Defines how "small" the body must be relative to the average to qualify as absorption (0.1 to 1.0).
Visuals
Theme: Switch between Dark (Mint/Coral) and Light (Royal/Sunset) themes.
Scale Size: If enabled, bubbles grow larger as the Z-Score increases.
Glow Effect: Adds a neon glow for better visibility on dark backgrounds.
________________________________________
Risk Disclaimer:
This indicator is for informational and educational purposes only. Volume and Delta analysis are subjective interpretation methods. Past performance, or statistical anomalies shown by this script, do not guarantee future results. Always manage your risk appropriately.
TwinSmooth ATR Bands | QuantEdgeBTwinSmooth ATR Bands | QuantEdgeB
🔍 Overview
TwinSmooth ATR Bands | QuantEdgeB is a dual-smoothing, ATR-adaptive trend filter that blends two complementary smoothing engines into a single baseline, then builds dynamic ATR bands around it to detect decisive breakouts. When price closes above the upper band it triggers a Long regime; when it closes below the lower band it flips to Short—otherwise it stays neutral. The script enhances clarity with regime-colored candles, an active-band fill, and an optional on-chart backtest table.
✨ Key Features
1. 🧠 Twin-Smooth Baseline (Dual Engine Blend)
- Computes two separate smoothed baselines (a slower “smooth” leg + a faster “responsive” leg).
- Blends them into a single midpoint baseline for balanced stability + speed.
- Applies an extra EMA smoothing pass to produce a clean trend_base.
2. 📏 ATR Volatility Bands
- Builds upper/lower bands using ATR × multiplier around the trend_base.
- Bands expand in volatile conditions and contract when markets quiet down—auto-adapting without manual tweaks.
3. ⚡ Clear Breakout Regime Logic
- Long when close > upperBand.
- Short when close < lowerBand.
- Neutral otherwise (no forced signals inside the band zone).
4. 🎨 Visual Clarity
- Plots only the active band (lower band in long regime, upper band in short regime).
- Fills between active band and price for instant regime context.
- Colors candles to match the current state (bullish / bearish / neutral).
- Multiple color palettes + transparency control.
💼 Use Cases
• Trend Confirmation Filter: Use the regime as a higher-confidence trend gate for entries from other indicators.
• Breakout/Breakdown Trigger: Trade closes outside ATR bands to catch momentum expansions.
• Volatility-Aware Stops/Targets: Bands naturally reflect volatility, making them useful as adaptive reference levels.
• Multi-Timeframe Alignment: Confirm higher-timeframe regime before executing on lower timeframes.
🎯 For Who
• Trend Traders who want clean regime shifts without constant whipsaw.
• Breakout Traders who prefer confirmation via ATR expansion rather than raw MA crossovers.
• System Builders needing a simple, robust “state engine” (Long / Short / Neutral) to plug into larger strategies.
• Analysts who want quick on-chart validation with a backtest table.
⚙️ Default Settings
• SMMA Length (Base Smooth Leg): 24
• TEMA Length (Base Responsive Leg): 8
• EMA Extra Smoothing: 14
• ATR Length: 14
• ATR Multiplier: 1.1
• Color Mode: Alpha
• Color Transparency: 30
• Backtest Table: On (toggleable)
• Backtest Start Date: 09 Oct 2017
• Labels: Off by default
📌 Conclusion
TwinSmooth ATR Bands | QuantEdgeB merges a dual-speed smoothing core into a single trend baseline, then wraps it with ATR-based bands to deliver clean, volatility-adjusted breakout signals. With regime coloring, active-band plotting, and optional backtest stats, it’s a compact, readable tool for spotting momentum shifts and trend continuation across any market and timeframe.
🔹 Disclaimer: Past performance is not indicative of future results. Always backtest and align settings with your risk tolerance and objectives before live trading.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Smart Money Concepts with EMA + RSI - DrSafDescription
This indicator combines LuxAlgo’s Smart Money Concepts (SMC) framework with a trend and momentum confluence system.
Core Features:
Swing & internal BOS / CHoCH
Order blocks, fair value gaps, equal highs/lows
Premium & discount zones
Multi-timeframe high/low levels
Added Filters:
EMA 21 / 50 / 200 trend alignment
Optional RSI 50 momentum filter
Clear long/short signals based on:
Swing CHoCH
Higher-timeframe trend alignment
Momentum confirmation
Signal Logic
Long: Bullish CHoCH + EMA bullish structure + RSI confirmation
Short: Bearish CHoCH + EMA bearish structure + RSI confirmation
Designed for non-repainting execution, clean chart structure or systematic trading.
Indicator plots EMA 21, EMA 50, and EMA 200 to define trend structure and dynamic support/resistance.
EMA 200: overall trend bias
EMA 21 and EMA 50: pullback support for high probability trend entries.
EMA 21/50 crosses highlight momentum shifts but are not intended as standalone entry signals.
License
Based on LuxAlgo Smart Money Concepts
CC BY-NC-SA 4.0 (Non-Commercial)
Adaptive ML Trailing Stop [BOSWaves]Adaptive ML Trailing Stop – Regime-Aware Risk Control with KAMA Adaptation and Pattern-Based Intelligence
Overview
Adaptive ML Trailing Stop is a regime-sensitive trailing stop and risk control system that adjusts stop placement dynamically as market behavior shifts, using efficiency-based smoothing and pattern-informed biasing.
Instead of operating with fixed ATR offsets or rigid trailing rules, stop distance, responsiveness, and directional treatment are continuously recalculated using market efficiency, volatility conditions, and historical pattern resemblance.
This creates a live trailing structure that responds immediately to regime change - contracting during orderly directional movement, relaxing during rotational conditions, and applying probabilistic refinement when pattern confidence is present.
Price is therefore assessed relative to adaptive, condition-aware trailing boundaries rather than static stop levels.
Conceptual Framework
Adaptive ML Trailing Stop is founded on the idea that effective risk control depends on regime context rather than price location alone.
Conventional trailing mechanisms apply constant volatility multipliers, which often results in trend suppression or delayed exits. This framework replaces static logic with adaptive behavior shaped by efficiency state and observed historical outcomes.
Three core principles guide the design:
Stop distance should adjust in proportion to market efficiency.
Smoothing behavior must respond to regime changes.
Trailing logic benefits from probabilistic context instead of fixed rules.
This shifts trailing stops from rigid exit tools into adaptive, regime-responsive risk boundaries.
Theoretical Foundation
The indicator combines adaptive averaging techniques, volatility-based distance modeling, and similarity-weighted pattern analysis.
Kaufman’s Adaptive Moving Average (KAMA) is used to quantify directional efficiency, allowing smoothing intensity and stop behavior to scale with trend quality. Average True Range (ATR) defines the volatility reference, while a K-Nearest Neighbors (KNN) process evaluates historical price patterns to introduce directional weighting when appropriate.
Three internal systems operate in tandem:
KAMA Efficiency Engine : Evaluates directional efficiency to distinguish structured trends from range conditions and modulate smoothing and stop behavior.
Adaptive ATR Stop Engine : Expands or contracts ATR-derived stop distance based on efficiency, tightening during strong trends and widening in low-efficiency environments.
KNN Pattern Influence Layer : Applies distance-weighted historical pattern outcomes to subtly influence stop placement on both sides.
This design allows stop behavior to evolve with market context rather than reacting mechanically to price changes.
How It Works
Adaptive ML Trailing Stop evaluates price through a sequence of adaptive processes:
Efficiency-Based Regime Identification : KAMA efficiency determines whether conditions favor trend continuation or rotational movement, influencing stop sensitivity.
Volatility-Responsive Scaling : ATR-based stop distance adjusts automatically as efficiency rises or falls.
Pattern-Weighted Adjustment : KNN compares recent price sequences to historical analogs, applying confidence-based bias to stop positioning.
Adaptive Stop Smoothing : Long and short stop levels are smoothed using KAMA logic to maintain structural stability while remaining responsive.
Directional Trailing Enforcement : Stops advance only in the direction of the prevailing regime, preserving invalidation structure.
Gradient Distance Visualization : Gradient fills reflect the relative distance between price and the active stop.
Controlled Interaction Markers : Diamond markers highlight meaningful stop interactions, filtered through cooldown logic to reduce clustering.
Together, these elements form a continuously adapting trailing stop system rather than a fixed exit mechanism.
Interpretation
Adaptive ML Trailing Stop should be interpreted as a dynamic risk envelope:
Long Stop (Green) : Acts as the downside invalidation level during bullish regimes, tightening as efficiency improves.
Short Stop (Red) : Serves as the upside invalidation level during bearish regimes, adjusting width based on efficiency and volatility.
Trend State Changes : Regime flips occur only after confirmed stop breaches, filtering temporary price spikes.
Gradient Depth : Deeper gradient penetration indicates increased extension from the stop rather than imminent reversal.
Pattern Influence : KNN weighting affects stop behavior only when historical agreement is strong and remains neutral otherwise.
Distance, efficiency, and context outweigh isolated price interactions.
Signal Logic & Visual Cues
Adaptive ML Trailing Stop presents two primary visual signals:
Trend Transition Circles : Display when price crosses the opposing trailing stop, confirming a regime change rather than anticipating one.
Stop Interaction Diamonds : Indicate controlled contact with the active stop, subject to cooldown filtering to avoid excessive signals.
Alert generation is limited to confirmed trend transitions to maintain clarity.
Strategy Integration
Adaptive ML Trailing Stop fits within trend-following and risk-managed trading approaches:
Dynamic Risk Framing : Use adaptive stops as evolving invalidation levels instead of fixed exits.
Directional Alignment : Base execution on confirmed regime state rather than speculative reversals.
Efficiency-Based Tolerance : Allow greater price fluctuation during inefficient movement while enforcing tighter control during clean trends.
Pattern-Guided Refinement : Let KNN influence adjust sensitivity without overriding core structure.
Multi-Timeframe Context : Apply higher-timeframe efficiency states to inform lower-timeframe stop responsiveness.
Technical Implementation Details
Core Engine : KAMA-based efficiency measurement with adaptive smoothing
Volatility Model : ATR-derived stop distance scaled by regime
Machine Learning Layer : Distance-weighted KNN with confidence modulation
Visualization : Directional trailing stops with layered gradient fills
Signal Logic : Regime-based transitions and controlled interaction markers
Performance Profile : Optimized for real-time chart execution
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Tight adaptive trailing for short-term momentum control
15 - 60 min : Structured intraday trend supervision
4H - Daily : Higher-timeframe regime monitoring
Suggested Baseline Configuration:
KAMA Length : 20
Fast/Slow Periods : 15 / 50
ATR Period : 21
Base ATR Multiplier : 2.5
Adaptive Strength : 1.0
KNN Neighbors : 7
KNN Influence : 0.2
These suggested parameters should be used as a baseline; their effectiveness depends on the asset volatility, liquidity, and preferred entry frequency, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Excessive chop or overreaction : Increase KAMA Length, Slow Period, and ATR Period to reinforce regime filtering.
Stops feel overly permissive : Reduce the Base ATR Multiplier to tighten invalidation boundaries.
Frequent false regime shifts : Increase KNN Neighbors to demand stronger historical agreement.
Delayed adaptation : Decrease KAMA Length and Fast Period to improve responsiveness during regime change.
Adjustments should be incremental and evaluated over multiple market cycles rather than isolated sessions.
Performance Characteristics
High Effectiveness:
Markets exhibiting sustained directional efficiency
Instruments with recurring structural behavior
Trend-oriented, risk-managed strategies
Reduced Effectiveness:
Highly erratic or event-driven price action
Illiquid markets with unreliable volatility readings
Integration Guidelines
Confluence : Combine with BOSWaves structure or trend indicators
Discipline : Follow adaptive stop behavior rather than forcing exits
Risk Framing : Treat stops as adaptive boundaries, not forecasts
Regime Awareness : Always interpret stop behavior within efficiency context
Disclaimer
Adaptive ML Trailing Stop is a professional-grade adaptive risk and regime management tool. It does not forecast price movement and does not guarantee profitability. Results depend on market conditions, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates structure, volatility, and contextual risk management.
HaP D-RSIHaP D-RSI (HaP Dual RSI) This code shares the dual RSI structure and divergences of hakan çift rsi-most indicator as open source. It is designed for simple, understandable, and effective use.
()
HaP D-RSI is a comprehensive oscillator that powerfully enhances the classic Relative Strength Index (RSI) indicator. By adding a 9-period EMA on top of the standard RSI(14), it smooths the momentum for clearer readability, while dynamic area filling between the short RSI(10) and long RSI(14) visually emphasizes trend strength. Its strongest feature is the automatic detection of regular (normal) and hidden positive/negative divergences, marked with clear labels. This provides opportunities to catch both trend reversals and continuations early.The indicator operates in a separate panel and includes overbought/oversold levels (70/30/50). With multi-timeframe support, you can display RSI values from a higher timeframe on your current chart.Main FeaturesDual RSI Calculation: Short-period RSI(10) and long-period RSI(14) are calculated separately.
EMA Smoothing: A 9-period EMA is applied to RSI(14) to reduce noise and clarify signals.
Dynamic Area Filling: Dynamic colored filling between RSI(10) and RSI(14)-EMA (blue tones for bullish, red tones for bearish momentum).
Fixed-intensity area between RSI(10) and RSI(14) (emphasizes trend strength).
Overbought/Oversold Lines: Dashed lines at 70 (overbought), 30 (oversold), and 50 (midline).
Full Divergence Detection:Positive Divergence (pu): Price makes a lower low while RSI makes a higher low → Potential bullish reversal.
Hidden Positive Divergence (gpu): Trend continuation signal (buying opportunity after pullback).
Negative Divergence (nu): Price makes a higher high while RSI makes a lower high → Potential bearish reversal.
Hidden Negative Divergence (gnu): Bearish trend continuation signal.
Customizable Pivot Settings: Adjust divergence sensitivity with lookback left/right and distance range.
Multi-Timeframe Support: Ability to pull RSI data from a different timeframe.
Usage InstructionsAdd to Chart: When added, it opens a separate RSI panel.
Settings: Change the short RSI (default 10) and long RSI (default 14) periods as needed.
Adjust the EMA period (default 9) to suit your needs.
If the timeframe is left blank, it uses the current chart timeframe; otherwise, select a higher timeframe.
You can toggle divergence types (positive/negative, hidden/regular) on/off.
Increase pivot lookback values for stronger (fewer signals) divergences.
Signal InterpretationBuy Opportunity: When "pu" or "gpu" labels appear (especially around the 30 level).
Sell Opportunity: When "nu" or "gnu" labels appear (especially around the 70 level).
Area filling colors support momentum direction: Blue tones indicate bullish pressure, red tones indicate bearish pressure.
For best results, use in combination with support/resistance levels, volume, or trend filters (e.g., EMA).
Why Use This Indicator?Powerful Divergence Detection: Automatically and accurately captures both regular (reversal) and hidden (continuation) divergences – a feature missing in many standard RSI indicators.
Visual Clarity: Dynamic colored areas and labels ensure you don't miss signals.
Flexibility: Suitable for all markets (stocks, forex, crypto) and timeframes.
Early Warning System: Divergences often signal before price reversals, providing high-probability entries.
Add this indicator to your strategies to elevate your momentum-based trading.
This indicator is free. Feel free to leave comments with your feedback and improvement suggestions. If you like it, don't forget to add it to favorites and share! Happy trading!
SD-Range Oscillator | QuantEdgeBSD-Range Oscillator | QuantEdgeB
🔍 Overview
SD-Range Oscillator | QuantEdgeB (SDRO) is a normalized momentum oscillator that compresses a low-lag trend core into a 0–100 style range using standard-deviation (SD) bands. It builds a smooth baseline from a fast triple-smoothed average, wraps it with ±2×SD volatility bounds, then normalizes the core value inside that envelope. Clear Long/Short regimes trigger when the normalized value crosses user-defined thresholds, with optional labels, regime-colored candles, and intuitive filled zones.
✨ Key Features
1.⚡ Low-Lag Core (Triple-Smooth Engine)
- Uses a fast, low-lag triple-smoothed average as the oscillator’s primary signal input.
- Helps keep momentum readings responsive while filtering noise.
2. 📏 SD Volatility Envelope (±2×SD)
- Builds a volatility channel around a smoothed baseline using standard deviation.
- Automatically adapts to changing market turbulence.
3. 🧮 Normalized Range Output
- Converts the core signal into a normalized value by mapping it between the upper/lower SD bounds.
- Makes readings consistent across assets and timeframes.
4. 🎯 Threshold-Based Regimes
- Long when the normalized value exceeds the Long threshold.
- Short when it falls below the Short threshold.
- Includes an additional safety filter to reduce “forced” longs when price is already extended near the upper envelope.
5. 🎨 Visual Clarity & Zones
- Regime-colored oscillator line and candles.
- Filled SD bands around the baseline for quick volatility context.
- Optional highlight fills between the oscillator and thresholds to show active long/short phases.
- Extra OB/OS background zones for quick overextension awareness.
6. 🔔 Signals & Alerts
- Optional “Long/Short” labels on confirmed regime flips.
- Alert conditions fire on long/short regime crossovers.
💼 Use Cases
• Momentum Confirmation: Validate breakouts by requiring SDRO to hold above the Long threshold.
• Mean-Reversion Awareness: Watch for extreme normalized readings near upper/lower bounds.
• Regime Filtering: Use SDRO state (Long/Short/Neutral) to filter trades from other systems.
• Cross-Market Comparison: Normalization makes it easier to compare momentum across different tickers.
🎯 For Who
• Trend traders who want a clean momentum filter with adaptive volatility context.
• System builders needing a simple regime variable (1 / -1 / neutral) to gate entries.
• Discretionary traders who like visual confirmation (fills, candle coloring, threshold zones).
• Multi-asset traders who benefit from normalized, comparable oscillator readings.
⚙️ Default Settings
• TEMA Period: 7
• Base Length (SMMA): 25
• Long Threshold: 55
• Short Threshold: 45
• SD Multiplier: 2× (fixed in code)
• Color Mode: Alpha
• Color Transparency: 60
• Labels: Off by default
📌 Conclusion
SD-Range Oscillator | QuantEdgeB blends a low-lag triple-smoothed core with an adaptive SD envelope to produce a normalized, easy-to-read momentum signal. With clear threshold regimes, volatility-aware context, and strong visuals (fills + candle coloring), SDRO helps separate meaningful momentum shifts from noise across any asset or timeframe.
🔹 Disclaimer: Past performance is not indicative of future results. Always backtest and align settings with your risk tolerance and objectives before live trading.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Volatility Regimes | GainzAlgo📊 OVERVIEW
This is a comprehensive ATR-based trading system designed for professional traders who need advanced volatility analysis, precise trade management, and intelligent market-regime detection.
The indicator combines multiple proven volatility concepts into one powerful, highly customizable tool.
⚙️ CORE FEATURES
1️⃣ ATR BANDS (Dynamic Support & Resistance)
- Three levels of ATR-based bands plotted around price
- Band 1 (1× ATR): Closest support/resistance, primary TP target
- Band 2 (2× ATR): Secondary TP target, stronger S/R zone
- Band 3 (3× ATR): Extended TP target, major S/R level
- Bands adapt to volatility in real time
- Dotted lines mark TP points on the latest candle
2️⃣ VOLATILITY REGIME DETECTION (Market Phase Analysis)
Automatically classifies the market into four distinct volatility regimes:
🟢 COMPRESSION
ATR < 70% of baseline
Low-volatility consolidation, market is coiling
Best for: Preparing breakouts, tightening stops
🟠 EXPANSION
ATR 115–140% of baseline
Volatility breakout, early trend formation
Best for: Breakout entries, momentum trades
🔴 HIGH VOLATILITY
ATR > 140% of baseline
Strong sustained trend, maximum participation
Best for: Trend following, trailing stops
🟣 EXHAUSTION
Declining ATR after high volatility
Trend maturity, potential pause or reversal
Best for: Profit taking, reducing exposure
Additional details:
- Uses ATR Ratio (Current ATR / Long-term Baseline)
- Non-repainting logic with historical confirmation
- Background shading + regime labels for instant clarity
- Diamond markers highlight regime changes
3️⃣ DYNAMIC STOP-LOSS SYSTEM
- Automatically calculates optimal stop distance using ATR
- Adapts to current market volatility
- Separate logic for bullish and bearish trades
- Default 2× ATR multiplier (adjustable 0.5× – 5×)
- Visual cross markers display stop levels
- Tighter stops in low volatility, wider in high volatility
4️⃣ MULTIPLE TAKE-PROFIT LEVELS (TP1 / TP2 / TP3)
- Three progressive profit targets for scaling out
- TP1 (1.5× ATR): First partial profit
- TP2 (2.5× ATR): Secondary scale-out
- TP3 (4.0× ATR): Final target or runner
- Dashed lines with labels on the current bar
- Automatically aligns with trend direction
- Fully customizable multipliers
5️⃣ SUPPORT & RESISTANCE LEVELS
- Dynamic S/R detection using price extremes
- ATR-weighted significance filtering
- Adjustable lookback period (10–100 bars)
- Circle markers for visual clarity
- Updates in real time as new highs/lows form
6️⃣ RISK MANAGEMENT CALCULATOR
- Real-time position-size calculation
- Based on account size, risk percentage, and ATR stop distance
- Formula: Position Size = Risk Amount ÷ Stop Distance
- Example: $10,000 account, 1% risk, $50 stop = 200 shares
- Displays position size and dollar risk directly on chart
- Ensures consistent risk across all trades
7️⃣ ATR PERCENTILE RANKING
- Shows where current ATR ranks historically (0–100%)
- Above 80%: Extremely high volatility
- 20–80%: Normal volatility
- Below 20%: Extremely low volatility
- Adjustable lookback (50–500 bars)
- Alerts trigger at above 90% and below 10% extremes
- Adds context to all regime-based decisions
8️⃣ VOLATILITY CONTRACTION PATTERN
- Detects tight consolidation (volatility squeeze)
- Requires consecutive bars of low ATR
- Default: 7 bars below 50% of average ATR
- Yellow triangle alert when pattern completes
- Often precedes strong breakout moves
- Works on all timeframes
9️⃣ TREND DETECTION SIGNALS
- Up and down arrows on trend change with rising ATR
- Combines price direction with volatility confirmation
- Smoothing filters reduce false signals
- Green arrow for bullish, red arrow for bearish
🔟 VOLATILITY BREAKOUT SIGNALS
- Circle markers when ATR exceeds threshold
- Default threshold: 1.5× ATR average
- Indicates surge in market activity
- Can signal the start of new trends
🧠 RECOMMENDED SETTINGS BY TRADING STYLE
Day Trading (1m–15m)
ATR Length: 14
Regime Baseline: 30
SL Multiplier: 1.5–2.0
TP: 1.5 / 2.5 / 4.0
Risk: 0.5–1%
Swing Trading (1H–4H)
ATR Length: 14
Regime Baseline: 50
SL Multiplier: 2.0–2.5
TP: 2.0 / 3.5 / 6.0
Risk: 1–2%
Position Trading (Daily)
ATR Length: 14–21
Regime Baseline: 100
SL Multiplier: 2.5–3.0
TP: 3.0 / 5.0 / 8.0
Risk: 2–3%
Scalping (15s–5m)
ATR Length: 10
Regime Baseline: 20
SL Multiplier: 1.0–1.5
TP: 1.0 / 1.5 / 2.5
Risk: 0.5–1%
🧭 HOW TO USE
1. Identify the current volatility regime
2. Wait for entry confirmation (breakouts, trend arrows, contraction patterns)
3. Set stop loss using dynamic ATR-based levels
4. Scale out at TP1, TP2, TP3 or use ATR bands
5. Use the risk calculator for consistent position sizing
6. Monitor regime changes and manage exposure accordingly
🚨 ALERT SYSTEM
Alerts included for volatility breakouts, trend changes, regime transitions, ATR band crosses, contraction pattern completion, and ATR percentile extremes.
All alerts are fully configurable in TradingView.
🎨 VISUAL GUIDE
Background colors: Volatility regimes
Solid lines: ATR bands
Dotted lines: Latest TP points
Dashed lines: Take-profit levels
Cross markers: Stop-loss levels
Circles: Support, resistance, and breakouts
Arrows: Trend direction
Diamonds: Regime changes
Triangles: Contraction alerts
Labels: Regime info, ATR percentile, position size
🛠️ CUSTOMIZATION
- Toggle any feature on or off
- Adjust all thresholds and multipliers
- Customize colors
- Configure alerts
- Set account size and risk parameters
⚠️ IMPORTANT NOTES
- This indicator provides analytical tools, not trading signals
- Always apply proper risk management
- Backtest before live use
- ATR adapts to volatility, not direction
If you find this indicator useful, please leave a rating and comment ⭐
Kalman Hull Kijun [BackQuant]Kalman Hull Kijun
A trend baseline that merges three ideas into one clean overlay, Kalman filtering for noise control, Hull-style responsiveness, and a Kijun-like Donchian midline for structure and bias.
Context and lineage
This indicator sits in the same family as two related scripts:
Kalman Price Filter
This is the foundational building block. It introduces the Kalman filter concept, a state-estimation algorithm designed to infer an underlying “true” signal from noisy measurements, originally used in aerospace guidance and later adopted across robotics, economics, and markets.
Kalman Hull Supertrend
This is the original script made, which people loved. So it inspired me to create this one.
Kalman Hull Kijun uses the same core philosophy as the Supertrend variant, but instead of building a Supertrend band system, it produces a single structural baseline that behaves like a Kijun-style reference line.
What this indicator is trying to solve
Most trend baselines sit on a bad trade-off curve:
If you smooth hard, the line reacts late and misses turns.
If you react fast, the line whipsaws and tracks noise.
Kalman Hull Kijun is designed to land closer to the middle:
Cleaner than typical fast moving averages in chop.
More responsive than slow averages in directional phases.
More “structure aware” than pure averages because the baseline is range-derived (Kijun-like) after filtering.
Core idea in plain language
The plotted line is a Kijun-like baseline, but it is not built from raw candles directly.
High level flow:
Start with a chosen price stream (source input).
Reduce measurement noise using Kalman-style state estimation.
Add Hull-style responsiveness so the filtered stream stays usable for trend work.
Build a Kijun-like baseline by taking a Donchian midpoint of that filtered stream over the base period.
So the output is a single baseline that is intended to be:
Less jittery than a simple fast MA.
Less laggy than a slow MA.
More “range anchored” than standard smoothing lines.
How to read it
1) Trend and bias (the primary use)
Price above the baseline, bullish bias.
Price below the baseline, bearish bias.
Clean flips across the baseline are regime changes, especially when followed by a hold or retest.
2) Retests and dynamic structure
Treat the baseline like dynamic S/R rather than a signal generator:
In uptrends, pullbacks that respect the baseline can act as continuation context.
In downtrends, reclaim failures around the baseline can act as continuation context.
Repeated back-and-forth around the line usually means compression or chop, not clean trend.
3) Extension vs compression (using the fill)
The fill is meant to communicate “distance” and “pressure” visually:
Large separation between price and baseline suggests expansion.
Price compressing into the baseline suggests rebalancing and decision points.
Inputs and what they change
Kijun Base Period
Controls the structural memory of the baseline.
Higher values track broader swings and reduce flips.
Lower values track tighter swings and react faster.
Kalman Price Source
Defines what data the filter is estimating.
Close is usually the cleanest default.
HL2 often “feels” smoother as an average price.
High/Low sources can become more reactive and less stable depending on the market.
Measurement Noise
Think of this as the main smoothness knob:
Higher values generally produce a calmer filtered stream.
Lower values generally produce a faster, more reactive stream.
Process Noise
Think of this as adaptability:
Higher values adapt faster to changing conditions but can get twitchy.
Lower values adapt slower but stay stable.
Plotting and UI (what you see on chart)
1) Adaptive line coloring
Baseline turns bullish color when price is above it.
Baseline turns bearish color when price is below it.
This makes the state readable without extra panels.
2) Gradient “energy” fill
Bull fill appears between price and baseline when above.
Bear fill appears between price and baseline when below.
The goal is clarity on separation and control, not decoration.
3) Rim effect
A subtle band around price that only appears on the active side.
Helps highlight directional control without hiding candles.
4) Candle painting (optional)
Candles can be colored to match the current bias.
Useful for scanning many charts quickly.
Disable if you prefer raw candles.
Alerts
Long state alert when price is above the baseline.
Short state alert when price is below the baseline.
Best used as a bias or regime notification, not a standalone entry trigger.
Where it fits in a workflow
This is a context layer, it pairs well with:
Market structure tools, BOS/MSB, OBs, FVGs.
Momentum triggers that need a regime filter.
Mean reversion tools that need “do not fade trends” context.
Limitations
No baseline eliminates chop whipsaws, tuning only manages the trade-off.
Settings should not be copy pasted across assets without checking behavior.
This does not forecast, it estimates and smooths state, then expresses it as a structural baseline.
Disclaimer
Educational and informational only, not financial advice.
Not a complete trading system.
If you use it in any trading workflow, do proper backtesting, forward testing, and risk management before any live execution.
Keltner Channels Re-entry when a candle closes outside of the outer channel that we show a dot and once price closes back in to the channel with a candle in the same direction we get in arrow.
SignalViper Recon [Lite]SignalViper Recon Lite — Confluence-Based Market State Summary
Recon Lite is a streamlined market analysis tool that evaluates momentum and trend conditions to identify alignment between key analytical factors. It provides a real-time dashboard summarizing market state, helping traders quickly assess whether conditions favor directional moves or suggest caution.
Core Concepts & Logic
Recon Lite evaluates two primary analytical dimensions:
Momentum Analysis (RSI-Based)
- Evaluates price momentum strength and direction
- Identifies acceleration, deceleration, and reversal potential
- Detects overbought/oversold extremes
Trend Analysis (ADX/DMI-Based)
- Measures trend strength regardless of direction
- Determines whether bulls or bears control directional movement
- Identifies weak, ranging, or strong trending conditions
When both dimensions align in the same direction, Recon Lite identifies confluence — a state where momentum and trend agree, historically associated with higher-probability directional moves.
Narrative Interpretation Layer
Rather than displaying raw indicator values, Recon Lite translates conditions into contextual descriptions:
- "RISING - Accelerating" — Momentum gaining strength
- "BEARISH - but weakening" — Trend losing steam
- "OVERBOUGHT" / "OVERSOLD" — Extreme conditions detected
- "Trend losing steam" — Warning of potential reversal
Signal Tracking & Target Awareness
When confluence is detected, Recon Lite can track the signal with ATR-based target levels:
- Stop Loss — Risk-defined exit level
- TP1 / TP2 — Reward targets at configurable R:R ratios
The dashboard displays real-time proximity to these levels, including warnings when approaching key thresholds.
Visual Outputs
Summary Dashboard
- Momentum state with directional context
- Trend state with strength assessment
- Active warnings when conditions conflict
- Confluence or tracking status
- Target proximity and outcome tracking
Chart Signals
- Visual markers when full confluence is detected
- Optional TP/SL level lines
How to Use Recon Lite
Recon Lite serves as a market context tool. Traders commonly use it to:
- Identify when momentum and trend align
- Understand current market state at a glance
- Track signal outcomes with defined risk levels
- Avoid entries during conflicting or weak conditions
About the Full SignalViper Suite
Recon Lite demonstrates the confluence-based approach used across the SignalViper indicator suite. The full Recon indicator evaluates seven proprietary analytical dimensions — including volume participation, structural proximity, divergence detection, and multi-timeframe alignment — for comprehensive market state analysis.
This free indicator represents only the most basic example of our patent-pending Recon technology. Experience the full power of multi-factor confluence analysis with the complete SignalViper suite.
Learn more at signalviper.com
FNO Signals: EMA 9/21 + VWAP + S/R Break + Bull/BearWhat the script does
Tracks EMA 9 & EMA 21 to define short-term bullish or bearish trend direction.
Uses VWAP as an intraday fair-value line to filter trades in the direction of dominant order flow.
Detects recent swing highs and lows as dynamic support and resistance, then marks breakout candles as potential Smart Money “Break of Structure” zones.
Marks only the first bull or bear candle of a leg, helping to spot the start of momentum moves instead of every single candle.
How to use it
Use on 5‑min or 15‑min F&O charts (index or stock futures).
Focus on:
“BOS BUY” when price breaks above last resistance while EMA 9 > EMA 21 and price is above VWAP.
“BOS SELL” when price breaks below last support while EMA 9 < EMA 21 and price is below VWAP.
“BULL/BEAR” markers to see where a new directional leg starts, then align trades with the dominant EMA+VWAP trend.
Trend Stress Quant [MarkitTick]💡This indicator combines a liquidity-based stress model with a dynamic linear regression channel to identify potential market exhaustion points and assess trend quality. By merging volume impact analysis with statistical deviation, this tool aims to highlight moments where price action may be overextended relative to the underlying liquidity conditions.
● Originality and Utility
Standard volatility indicators often rely solely on price range (like Bollinger Bands). This script introduces a Stress Engine that normalizes the relationship between Price Range (True Range) and Volume. This helps distinguish between healthy price movements and liquidity-stress events (illiquidity). Furthermore, instead of using a fixed-length channel, this tool offers a Dynamic Mode that anchors the regression channel to recent pivot points, ensuring the statistical analysis aligns with the current market structure rather than an arbitrary timeframe.
● Methodology
The script operates on two distinct mathematical models:
• Illiquidity Stress Engine
The core formula calculates a raw illiquidity metric based on the log-normal distribution of the ratio between True Range and Volume. A Z-Score (standard score) is then derived from this data over a specific lookback period. High Z-Scores indicate that price is moving disproportionately fast relative to the available volume, often a signature of panic selling or euphoric buying (exhaustion).
• Linear Regression Channel
The script calculates an Ordinary Least Squares (OLS) regression line (the line of best fit) to determine the mean price trend.
Standard Deviation Bands are plotted parallel to this mean.
Pearson Correlation Coefficient (R) is calculated to quantify the strength of the linear trend. Values closer to 1 or -1 indicate a strong trend, while values near 0 indicate a chaotic or ranging market.
📑 How to Use
Traders can utilize the visual outputs for mean reversion or trend continuation context:
• Exhaustion Signals (SE / BE Labels)
SE (Seller Exhaustion): Appears when the market is in a downtrend, but the Stress Engine detects a statistical anomaly (High Z-Score) on a down candle. This suggests panic selling may be peaking.
BE (Buyer Exhaustion): Appears when the market is in an uptrend, but the Stress Engine detects high stress on an up candle, suggesting a potential blow-off top.
• Regression Channel
The dashed middle line represents the fair value (mean) of the current trend.
The outer bands represent statistical extremes. Price interacting with the outer bands (default 2 Standard Deviations) while coincident with an Exhaustion Signal provides a high-confluence area of interest.
• Metrics Dashboard
A dashboard displays the current Trend Regime, Exhaustion Status, and Channel Width (volatility percentage).
● Settings
• Exhaustion Model
Trend Filter Length: Sets the baseline EMA to determine if the market is bullish or bearish.
Stress Threshold (Sigma): The Z-Score required to trigger an exhaustion signal (default is 2.0).
• Channel Configuration
Dynamic Pivot Mode: If enabled, automatically calculates the channel length based on recent pivots. If disabled, uses the Fixed Length.
Standard Deviations: Controls the width of the inner and outer channel bands.
📖This guide explains how to interpret and utilize signals for trading:
The script is designed primarily for Mean Reversion and Exhaustion trading strategies.
● The Core Strategy: Volatility Exhaustion
The script uses a "Stress Engine" to identify when price movement is statistically overextended relative to the available liquidity (Volume).
• Setup A: The "Seller Exhaustion" (Bullish Bounce)
Look for this setup during a downtrend to catch a temporary bottom or a reversal.
Trend Condition: The dashboard shows Bearish (Price is below the trend filter).
Trigger: The label SE (Seller Exhaustion) appears below a candle.
Why? This indicates that selling pressure was intense but likely panic-driven (High Z-Score/Stress) and may be drying up.
Confluence: Ideally, this signal appears when the price is touching or piercing the Lower Channel Band (dotted or solid lines).
Action: Traders often use this as a signal to close Short positions or enter a speculative Long (counter-trend) targeting the middle line.
• Setup B: The "Buyer Exhaustion" (Bearish Pullback)
Look for this setup during an uptrend to catch a local top.
Trend Condition: The dashboard shows Bullish .
Trigger: The label BE (Buyer Exhaustion) appears above a candle.
Why? This indicates euphoric buying on low liquidity or extreme volatility that is statistically unsustainable.
Confluence: Look for price rejection at the Upper Channel Band.
Action: Traders often use this to close Long positions or enter a Short targeting the mean.
● The Filter: Trend & Correlation
The script includes a Linear Regression Channel that quantifies the quality of the trend.
• Channel Slope
If the channel is angling steeply up or down, the trend is strong.
• Pearson R (Correlation)
The script calculates the Pearson R coefficient.
Weak Correlation: If the channel turns Gray/Neutral (or the fill becomes weak), it means the correlation is below the threshold (default 0.5).
Trading Rule: Avoid trading exhaustion signals when the channel is Gray/Neutral, as the market is likely chopping sideways with no clear direction.
● Risk Management & Targets
• Stop Loss
Since this is a volatility tool, a common technique is to place stops just outside the Outer Deviation Band (the widest line). If price expands beyond the outer band with no exhaustion signal, the trend may be entering a "runaway" phase.
• Take Profit
Target 1: The Middle Regression Line (The dashed center line). Prices tend to revert to this mean after an exhaustion event.
Target 2: The opposite channel band (e.g., if you bought at the bottom, hold until the top).
● Summary of Dashboard Metrics
The table on your chart provides a quick snapshot:
Trend Regime: Tells you if you should fundamentally look for Shorts (Bearish) or Longs (Bullish).
Seller/Buyer Status: Alerts you if the current bar is EXHAUSTED or Normal .
Channel Width %: Indicates volatility. If the width is very low (percentage is small), a breakout might be imminent (squeezing). If high, be careful of chop.
⚙️ Indicator settings
• Signal Parameters
Exhaustion & Stress Model: Controls signal sensitivity.
Trend Filter: Decides if the market is Bullish or Bearish.
Stress Threshold (Sigma): Higher values (e.g., 2.5) make the script stricter, showing fewer but potentially stronger signals.
• Channel Configuration
Dynamic Pivot Mode: If ON, the channel length auto-adjusts to recent market pivots. If OFF, it uses the Fixed Length you set.
Channel Bands: Adjusts the channel width.
Outer Deviation: The boundary for "extreme" moves. Price hitting this often signals a reversal.
• Quality Filter
Filter Weak Correlations: If enabled, the channel turns gray during choppy/sideways markets to warn you not to trust trend signals.
• Visuals
Display Options: Toggles the "Stats" dashboard and adjusts volatility coloring.
● Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
MACD-v Bullish/Bearish DivergenceMACD-v Bullish/Bearish Divergence
Overview This indicator is a specialized divergence detector based on the MACD-v (Volatility Normalized Momentum) concept. Unlike standard MACD which uses absolute price differences, MACD-v normalizes values against volatility (ATR), allowing for fixed, universal Overbought/Oversold thresholds across all assets and timeframes.
Recommendation: This script is highly effective when paired with the original MACD-v by Alex Spiroglou. While this indicator focuses on identifying and visualizing divergence entries, using the original oscillator alongside it provides the best visual context for the overall momentum structure.
How It Works
This tool uses a dual-signal mechanism (Raw Line + Signal Smooth) to identify specific divergence setups:
Setup (Yellow/Blue Dots): Identifies when price momentum has extended significantly into extreme zones (Overbought/Oversold).
Trigger (Red/Green Dots): Fires when price fails to make a new momentum extreme despite price action (classic divergence/failure swing).
Active State (Background Color): Once a trigger fires, the background highlights (Red for Bearish, Green for Bullish) to indicate an active divergence play.
Reset (Exit): The signal state clears when momentum returns to the neutral "safe zone."
Important Note: Momentum Washout
The colored background persists as long as the divergence trade remains valid. Traders should note the concept of "Momentum Washout":
Signal End: The background color turns off when the MACD returns to the neutral range, indicating the primary high-velocity impulse is over.
Performance Continuation: Significant positive or negative price performance can often continue even after the background signal ends. This period allows the remaining momentum to "wash out" or drift before the next major impulse.
Strategy Tip: The indicator is designed to capture the high-volatility portion of the reversal. Do not assume the end of the signal is the absolute top or bottom of the trend; it simply marks the normalization of momentum.
Strategy Recommendation: Multi-Timeframe Analysis
Divergence signals are most powerful when confirmed across timeframes. It is highly recommended to look for alignment before taking a trade:
Trend Confirmation: If you see a signal on a lower timeframe (e.g., 5m or 15m), check a higher timeframe (e.g., 1H or 4H). A bullish divergence on the 5m is significantly more reliable if the 1H momentum is already bullish or oversold.
Signal Stacking: Valid signals often appear sequentially—first on the 1m, then the 5m, and finally the 15m. Waiting for this "cascade" can filter out false reversals.
Visual Guide
🔵 Blue Dot: Bullish Divergence Setup (Watch for entry).
🟢 Green Dot: Bullish Divergence Trigger (Long Entry).
🟡 Yellow Dot: Bearish Divergence Setup (Watch for entry).
🔴 Red Dot: Bearish Divergence Trigger (Short Entry).
Background Color: Indicates an active trade (Red = Bearish / Green = Bullish).
Settings
Auto-Detect: Automatically switches between Scalping settings (tighter thresholds) for low timeframes and Swing settings for high timeframes.
Strict Invalidation: If enabled, cancels a setup if momentum pushes too far in the opposite direction before triggering.
Active Signal Multiplier: Dynamically smooths the signal line only when a trade is active to prevent premature exits during choppy corrections.
Disclaimer: This tool is for educational purposes and trend analysis only. Always manage your risk appropriately.
IDAHL | QuantEdgeBIDAHL | QuantEdgeB
🔍 Overview
The IDAHL indicator builds adaptive, volatility-aware threshold bands from two separate ALMA lines—one smoothed from recent highs, the other from recent lows—then uses percentiles of those lines to define a dynamic “high/low” channel. Price crossing above or below that channel triggers clear long/short signals, with on-chart candle coloring, fills, optional labels and even a built-in backtest table.
✨ Key Features
• 📈 Dual ALMA Bands (with DEMA pre-smoothing)
o High ALMA: ALMA applied to DEMA-smoothed highs (high → DEMA(30) → ALMA).
o Low ALMA: ALMA applied to DEMA-smoothed lows (low → DEMA(30) → ALMA).
• 📊 Percentile Thresholds
o Computes a high threshold at the Xth percentile of the High ALMA over a lookback window.
o Computes a low threshold at the Yth percentile of the Low ALMA.
o Shifts each threshold forward by a small period to reduce repainting.
• ⚡ Dynamic Channel Logic
o When price closes above the high percentile line, the “final” threshold flips down to the low percentile line (and vice versa), creating an adaptive channel that only moves when the outer bound is violated.
o Inside the channel, the threshold holds its last value to avoid whipsaw.
• 🎨 Visual & Alerts
o Plots the two percentile lines and fills between them with a color that reflects the current regime (green for long, yellow for neutral, orange for short).
o Colors your candles to match the active signal.
o Optional “Long”/“Short” labels on confirmed flips.
o Alert conditions fire on each long/short crossover.
• 📊 On-Chart Backtest Metrics
o Toggle on a small performance table—complete with win-rate, net P/L, drawdown—from your chosen start date, without any extra code.
⚙️ How It Works
1. Adaptive Smoothing (ALMA)
o Uses ALMA (Arnaud Legoux Moving Average) for smooth, low-lag filtering. In this script, the inputs are additionally pre-smoothed with DEMA(30) to reduce noise before ALMA is applied—improving stability on highs/lows.
2. Percentile Lines
o The High ALMA series feeds a linear-interpolation percentile function to generate the upper bound; the Low ALMA produces the lower bound.
o These lines are offset by a small look-ahead (X bars) to reduce repaint behavior.
3. Channel Logic
o Breakout Flip: When the selected source (default: Close) closes above the upper bound, the active threshold “jumps” to the lower bound—locking in a new channel until price next crosses.
o Breakdown Flip: Conversely, a close below the lower bound flips the threshold to the upper bound.
4. Signal Generation
o Long while the source is above the current “final” threshold.
o Short while below.
o Neutral inside the channel before any flip.
5. Visualization & Alerts
o Dynamic fills between the two percentile lines change hue as the regime flips.
o Candles adopt the regime color.
o Optional pinned “Long”/“Short” labels at flip bars.
o Alerts on every signal crossover of the zero-based regime line.
6. Backtest Table
o From your chosen start date, a mini-table displays cumulative P/L, win rate and drawdown for this strategy—handy for quick in-chart validation.
🎯 Who Should Use It
• Breakout Traders hunting for adaptive channels that auto-recenter on new highs/lows.
• Volatility Traders who want thresholds that expand and contract with market turbulence.
• Trend-Chasers seeking a fresh take on high/low channels with built-in smoothing.
• Systematic Analysts who appreciate on-chart backtesting without leaving TradingView.
⚙️ Default Settings
• ALMA Length: 14
• Percentile Length: 35 bars
• Percentile Lookback Period (offset): 4 bars
• Upper Percentile: 92%
• Lower Percentile: 50%
• Threshold Source: Close
• Visuals: Candle coloring on, labels off by default, “Strategy” palette
• Backtest Table: on by default (toggleable)
• Start Date (Backtest): 09 Oct 2017
📌 Conclusion
IDAHL blends two smooth, low-lag ALMA filters (fed by DEMA-smoothed highs/lows) with percentile-based channel construction for a self-rewiring high/low envelope. It gives you robust breakout/breakdown signals, immediate visual context via colored fills and candles, optional labels, alerts, and even performance stats—everything you need to spot and confirm regime shifts in one compact script.
🔹 Disclaimer : Past performance is not indicative of future results. Always backtest and align settings with your risk tolerance and objectives before live trading.
🔹 Strategic Advice : Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Market Acceptance Zones [Interakktive]Market Acceptance Zones (MAZ) identifies statistical price acceptance — areas where the market reaches agreement and price rotates rather than trends.
Unlike traditional support/resistance tools, MAZ does not assume where price "should" react. Instead, it highlights regions where multiple internal conditions confirm balance: directional efficiency drops, effort approximately equals result, volatility contracts, and participation remains stable.
This is a market-state diagnostic tool, not a signal generator.
█ WHAT THE ZONES REPRESENT
MAZ (ATF) — Chart Timeframe Acceptance
A MAZ marks an area where price displayed rotational behaviour and the auction temporarily agreed on value. These zones often act as compression regions, fair-price areas, or boundaries of consolidation where impulsive follow-through is less likely.
Use ATF MAZs to:
- Identify rotational environments
- Avoid chasing price inside balance
- Frame consolidation prior to expansion
MAZ • HTF / MAZ • 2/3 — Multi-Timeframe Acceptance (AMTF)
When Multi-Timeframe mode is enabled, MAZ evaluates acceptance on:
- The chart timeframe
- Two higher structural timeframes
If the minimum consensus threshold is met (default: 2 of 3), the zone is classified as AMTF. These zones represent stronger agreement and typically decay more slowly than single-timeframe acceptance.
AMTF zones are structurally stronger and are useful for:
- Higher-quality rotation areas
- Pullback framing within trends
- Context alignment across timeframes
H • MAZ — Historic Acceptance Zones
Historic MAZs represent older acceptance that has transitioned out of active relevance. These zones are hidden by default and can be enabled to provide long-term memory context.
█ AUTO MULTI-TIMEFRAME LOGIC
When MTF Mode is set to Auto, MAZ uses a deterministic structural mapping based on the current chart timeframe:
- 5m → 15m + 1H
- 15m → 1H + 4H
- 1H → 4H + 1D
- 4H → 1D + 1W
- 1D → 1W + 1M
This ensures consistent higher-timeframe context without manual configuration. Advanced users may switch to Manual mode to define custom timeframes.
█ ZONE LIFECYCLE
MAZ zones are dynamic and maintain an internal lifecycle:
- Active — Acceptance remains relevant
- Aging — Acceptance quality is degrading
- Historic — Retained only for memory context
Zones track price interaction and re-acceptance, which can stabilise or strengthen them. Weak or stale zones are automatically removed to keep the chart clean.
█ HOW TRADERS USE MAZ
MAZ is designed to provide structure, not entries.
Common applications include:
- Avoiding chop when price is inside acceptance
- Framing expansion after clean breaks from MAZ
- Identifying higher-quality rotational pullbacks (AMTF zones)
- Defining objective invalidation using zone boundaries
█ SETTINGS OVERVIEW
Market Acceptance Zones — Core
- Acceptance Lookback
- ATR Length
- Zone Frequency (Conservative / Balanced / Aggressive)
Market Acceptance Zones — Zones
- Maximum Zones
- Fade & Stale Bars
- Historic Zone Visibility (default OFF)
Market Acceptance Zones — Timeframes
- MTF Mode (Off / Auto / Manual)
- Manual Higher Timeframes
- Minimum Consensus Requirement
Market Acceptance Zones — Visuals
- Neon / Muted Theme
- Zone Labels & Consensus Detail
- Optional Midline Display
█ DISCLAIMER
This indicator is a market context and diagnostic tool only.
It does not generate trade signals, entries, or exits.
Past acceptance behaviour does not guarantee future price action.
Always combine with independent analysis and proper risk management.
Box Theory [Interactive Zones] PyraTimeThis script combines Nicholas Darvas’s "Box Theory" with modern Supply and Demand (Premium/Discount) concepts. It automatically identifies the most recent Swing High and Swing Low to delineate the current trading range.
The purpose of this tool is to visualize market structure and help traders identify when price is relatively expensive (Premium) or cheap (Discount) within a defined range.
Visual Guide: What You Are Seeing
The Box: Represents the active trading range defined by the most recent significant Swing High and Swing Low.
Red Zone (Premium): The top 25% of the range. Mathematically, prices here are considered "expensive" relative to the current structure.
Green Zone (Discount): The bottom 25% of the range. Prices here are considered "cheap" relative to the current structure.
Grey Zone (Equilibrium): The middle 50% of the range. This is the area of fair value where price often consolidates.
Dashed Line (EQ): The exact 50% midpoint of the range.
Tutorial: How to Trade Using This Indicator
Method 1: Mean Reversion (Range Trading) This method applies when the market is moving sideways.
Identify Structure: Wait for a box to form.
Wait for Extremes: Do not trade when price is in the middle (Grey/White area). Wait for price to enter the Red or Green zones.
Entry Trigger:
Shorts: When price enters the Red Zone, look for a rejection (wicks leaving the zone) or a lower timeframe breakdown. Target the EQ (Midline) as your first take profit.
Longs: When price enters the Green Zone, look for support formation. Target the EQ (Midline) as your first take profit.
Method 2: Trend Continuation (Breakouts) This method applies when the market is trending strongly.
Breakout: Monitor the alerts. A close outside the box indicates a potential shift in market structure.
Retest: After a breakout up, the old "Red Zone" (Resistance) often flips to become new Support. Wait for price to pull back to the top of the old box before entering.
Configuration Guide (Settings)
Pivot Left/Right Bars (Sensitivity):
Default (20/20): Best for Swing Trading. It filters out market noise and only draws boxes based on major structural points.
Lower (5/5): Best for Scalping. It will create smaller, more frequent boxes but increases the risk of false signals.
Zone Percentage:
Default (25%): Standard deviation for Supply/Demand zones.
Alternative (15%): Use this for "sniping" entries at the absolute extremes of the range.
Multi-Timeframe (MTF):
Enable "Use Higher Timeframe" to see Daily or Weekly ranges while trading on lower timeframes (like the 15m or 1H). This helps keep your intraday trades aligned with the major trend.
Technical Note on "Lag" This indicator uses Pivots to draw the box. A pivot is only confirmed after a certain number of bars have passed (the "Pivot Right Bars" setting).
Example: If "Pivot Right Bars" is set to 20, the box will update 20 bars after the actual high or low occurred. This is necessary to confirm that the point was indeed a Swing High/Low. Do not treat the box lines as predictive; they are reactive to confirmed structure.
Harmonic Patterns [kingthies]Harmonic Patterns
This indicator scans price swings for classic X-A-B-C-D harmonic patterns and plots the structure plus a PRZ (Potential Reversal Zone) to help you frame areas where reactions are statistically more likely. It supports both bullish and bearish setups and can trigger alerts when a new D pivot confirms a pattern.
What it does
Builds a pivot-based swing map (ZigZag-style) using a configurable Pivot Length .
Evaluates the most recent 5 swing points (X, A, B, C, D) against harmonic ratio rules with a user-defined tolerance .
Detects: Gartley, Bat, Butterfly, Crab, Deep Crab, Cypher, Shark (loose) .
Draws the pattern legs (X-A-B-C-D), labels the detection with ratio readouts, and projects a PRZ using 3 target levels (derived from XA/BC logic per pattern).
Offers two rendering modes:
Best only : picks the closest match (lowest score) to reduce clutter.
Show all : plots every valid match (uses filled PRZ boxes to keep object usage under control).
PRZ (Potential Reversal Zone)
PRZ is built from three target levels and expanded into a zone.
Optional padding uses ATR (ATR multiplier) to widen/narrow the zone for volatility.
Display modes: Off, Box, Lines, Both .
Zones can be extended forward by a configurable number of bars to keep the area visible as price develops.
How to use
Start with Confirm only when D pivot forms enabled (recommended) to reduce false positives while patterns are still forming.
Adjust Pivot Length based on timeframe:
Lower values = more swings, more signals, more noise.
Higher values = cleaner structures, fewer signals.
Use Ratio Tolerance to control strictness:
Lower tolerance = fewer, higher-confidence matches.
Higher tolerance = more matches, potentially lower quality.
Treat harmonics as context , not a standalone entry system:
Look for confluence (HTF levels, structure, volume, momentum/RSI divergence, etc.).
Use your own confirmation and risk plan (invalidations beyond PRZ / beyond D).
Settings overview
Swings (Pivot ZigZag)
Pivot Length: pivot sensitivity.
Use Wicks: uses High/Low; if off, uses Close.
Max Stored Swings: limits stored pivots for performance/object control.
Harmonic Detection
Ratio Tolerance (%): allowed deviation around ideal ratios.
Confirm only when D pivot forms: reduces repaint-like behavior.
When multiple match: Best only vs Show all.
Pattern Filters enable/disable each pattern type.
PRZ
PRZ Display: Off / Box / Lines / Both.
PRZ Padding (ATR multiplier): volatility-adjusted zone padding.
PRZ Extend (bars): how far to project the zone.
Visuals
Draw Legs: draws X-A-B-C-D.
Show Pattern Label: prints pattern name, direction, ratios, and score.
Label Offset: shift label forward if you want more space.
Alerts
“Bullish/Bearish Harmonic (Any)” triggers on any detected pattern.
Per-pattern alerts are included for each supported pattern type.
Notes
This indicator is educational and intended to assist with pattern recognition and confluence mapping.
Harmonic patterns do not guarantee reversals—always manage risk and confirm with your own process.
SVP + candle + Max volume [midst]
SVP + DALY CANDLE + MAX VOLUME
A comprehensive trading indicator that combines Session Volume Profile (SVP), Higher Timeframe (HTF) Candles, and Intrabar Max Volume Price Detection into one powerful tool. Perfect for traders who want to understand price action, volume distribution, and key levels all in one place.
KEY FEATURES
Session Volume Profile
• Real-time volume distribution across price levels for the current session
• Point of Control (POC) - identifies the price with the highest traded volume
• Value Area High (VAH) & Low (VAL) - shows where 70% of the volume occurred (customizable percentage)
• Color-coded volume bars - distinguish between up volume (bullish) and down volume (bearish)
• Value area highlighting - clearly see the most important price zones
Higher Timeframe Candle Display
• Visual daily (or custom timeframe) candle overlaid on your current chart
• OHLC labels - see Open, High, Low, and Close prices clearly marked
• Fully customizable colors - separate colors for bullish/bearish bodies, borders, and wicks
• Adjustable positioning - move the candle and labels to your preferred location
Max Volume Price Detection
• Identifies the exact price level with maximum volume within each bar
• Uses Lower Timeframe (LTF) data for precise volume analysis (Premium+ required)
• Simple mode fallback - works on all TradingView plans
• Previous max volume marker - displays previous bar's max volume as a reference dot
• Real-time calculation - updates as each bar forms
ATR Table
• Dynamic ATR-based stop levels - automatically calculates potential stop-loss levels
• Multiple smoothing methods - RMA, SMA, EMA, WMA
• Customizable multiplier - adjust for your risk tolerance
• Clean table display - shows ATR value, high stop, and low stop
PERFECT FOR
Day traders analyzing intrabar volume distribution
Swing traders wanting HTF context on lower timeframes
Volume profile traders looking for key support/resistance levels
Price action traders seeking high-probability entry zones
HOW TO USE
Volume Profile Analysis
POC often acts as a magnet for price. VAH/VAL are key support/resistance levels. High volume nodes indicate strong price acceptance, while low volume nodes suggest potential breakout zones.
HTF Candle Context
See daily range while trading on 5m-1h charts. Daily open often acts as pivot point. Daily high/low are key levels to watch.
Max Volume Price
Black line shows where most volume traded in each bar. Previous max volume (dot) helps identify institutional activity. Clusters of max volume create strong support/resistance. Can possibly indicate a Wick bounce
ATR Stops
Use ATR-based levels for logical stop placement. Adjust multiplier based on market volatility.
SETTINGS & CUSTOMIZATION
Positioning
Control the global offset to move both candle and profile together. Fine-tune with individual offsets for candle and profile spacing.
Volume Profile
Adjustable number of rows (50-500) for granular or simplified view. Customizable width and placement (left/right). Value Area percentage control. Full color customization for all volume components.
HTF Candle
Any timeframe selection (default: Daily). Full color customization for bull/bear candles. Adjustable candle width. Toggle OHLC labels on/off. Control label distance and line widths.
Max Volume Price
Choose between Simple (all plans) or LTF mode (Premium+). Auto or manual LTF resolution. Custom color and line width. Toggle current and previous markers independently.
TECHNICAL NOTES
Maximum 5000 bars lookback for volume calculations
Works on all timeframes
LTF max volume requires TradingView Premium or higher
Optimized for performance with efficient array operations
For best results, use on liquid instruments with reliable volume data
Most effective on intraday charts (5min-1hour) for day trading and scalping strategies
For Entertainment and information only
Created by midst
Dragon Flow Arrows (LITE)🚀 DRAGON FLOW ARROWS | Smart Trend Engine + Clean Reversal Arrows
A lightweight but highly-optimized trend system designed for clean charts, powerful visual signals, and no-noise directional flow. Built for traders who want simplicity, clarity, and professional-level momentum-filtered signals without over-complication.
🔥 Dragon Channel (Clean 3-Line Ribbon)
A smooth adaptive channel formed from ATR + EMA, giving you structural trend zones without clutter.
✅ Dragon Flow Gradient
A horizontal, color-shifted flow:
🟢 Bull flow → green glow
🔴 Bear flow → red glow
Automatic blend based on trend direction
Smooth visual transitions (no vertical stripes)
✅ Momentum-Filtered Arrows
BUY/SELL arrows only print when:
Price breaks outside the Dragon Channel
Momentum confirms (RSI + MACD filters)
Trend flips → one clean arrow per direction
✅ Smart Header Panel
At the top of your chart:
📌 Trend: Uptrend / Downtrend / Neutral
⚡ Impulse Strength: Weak / Normal / Strong
📊 How to Use
Entry:
- BUY Setup
Price moving above baseline
Dragon Flow turns bullish (cyan side)
Arrow appears below channel
- SELL Setup
Price breaks below baseline
Dragon Flow turns bearish (magenta side)
Arrow pops above channel
Exit / Filter:
Opposite arrow
Flow color shift
Trend panel flips
Works on Forex, Crypto, Stocks, Indices — all timeframes (just adjust the channel length).
Happy trading!
CVD Table + Alerts📌 Overview
CVD Table + Alerts is a pure order-flow indicator designed to track real buying and selling pressure using Cumulative Volume Delta (CVD).
It highlights momentum shifts and institutional participation through precise, non-repainting alerts, without cluttering your chart with unnecessary visuals.
This indicator does not predict price — it reveals what large participants are actually doing.
🔍 What This Indicator Does
1️⃣ Cumulative Volume Delta (CVD)
Calculates CVD by separating volume into:
Buying volume (close ≥ open)
Selling volume (close < open)
Accumulates this data to show net demand vs supply over time.
This allows traders to see:
Whether moves are sponsored or weak
If price is rising on real buying or just drifting
2️⃣ CVD Flip Detection (Momentum Shift)
The indicator detects when:
CVD changes direction from the previous candle
This represents:
Shift from buyers → sellers
OR sellers → buyers
👉 Acts as an early warning signal before visible price structure changes like ChoCH or BOS.
3️⃣ CVD Burst Detection (Institutional Activity)
A CVD Burst alert triggers when:
The current CVD delta is abnormally large compared to recent averages
This typically signals:
Aggressive market orders
Institutional participation
Potential trend ignition
🔔 Alerts (Exact & Reliable)
This indicator generates only two alert types:
🔹 CVD Flip Alert
Triggered when order-flow direction changes.
CVD Flip! CVD: | Δ: | Direction: ↑ / ↓
🔹 CVD Burst Alert
Triggered when sudden volume imbalance appears.
CVD Burst! CVD: | Δ: | Direction: ↑ / ↓
Alert Behavior
✅ Fires only on candle close
✅ No repainting
✅ No historical spam
✅ One alert per bar maximum
📊 CVD Table (At-a-Glance Insight)
The built-in table shows:
Recent volume
CVD values
Delta direction (↑ / ↓)
Percentage change
Highlights major bull/bear deltas
This gives traders instant context without switching indicators.
🎯 How Traders Benefit
This indicator is best used as a confirmation and context tool, not a standalone strategy.
Ideal Use Cases:
Confirm ChoCH / BOS
Validate EMA-based trend direction
Filter false breakouts at S/R, Gann, Fib, VWAP
Identify trend days vs range days
Spot divergence between price and participation
Best Paired With:
EMA / trend filters
Market structure (ChoCH, BOS)
Support & Resistance
ATR / volatility analysis
⚠️ Important Notes
This is not a buy/sell signal generator
Designed for discretionary traders
Works best in liquid markets (indices, large caps, crypto majors)
🧠 Trading Philosophy
Price shows where it moved.
CVD shows who moved it.
This indicator helps you trade with participation, not hope.
Pivot Levels [BigBeluga]🔵 OVERVIEW
The Pivot Levels indicator automatically detects and draws key market pivot levels across multiple sensitivity settings. Each pivot level represents a significant local high or low in price structure, acting as potential zones of support and resistance. Traders can visualize short-, medium-, and long-term pivot layers simultaneously, helping to identify where price may react, reverse, or break out.
🔵 CONCEPTS
Different pivot lengths provide multi-length sensitivity on the same timeframe — shorter lengths detect local micro-swings, while longer lengths capture broader swing structure within the current chart.
ATR-based color logic marks active, bullish, or bearish pivot zones dynamically.
Lines can extend to the right or both sides to track reactions over time.
🔵 FEATURES
Detects up to four custom pivot levels simultaneously.
Each pivot level has independent settings for length , style , and extension mode .
Auto-colors each pivot as support (green), resistance (orange), or active zone (blue).
Displays dual-width line layers: a solid base and a transparent overlay for visual depth.
Dynamic price labels show exact pivot levels for clarity.
Fully customizable line styles: dashed (--), solid (-), or dotted (..).
Extends lines to the right for future reaction tracking or both directions for structure alignment.
🔵 HOW TO USE
Enable or disable pivot levels (1–4) to control how many layers of structure you want visible.
Use shorter pivot lengths for intraday turning points and longer ones for macro structure.
Watch for multiple pivot lines clustering in the same region — these often mark strong reversal zones.
Observe color changes: green = support, orange = resistance, blue = active neutral zone.
Combine with price action or volume analysis to confirm reactions near major pivots.
🔵 CONCLUSION
The Pivot Levels indicator provides a clean, multi-layered visualization of market structure.
By tracking pivots of varying lengths, traders can easily identify overlapping support and resistance regions, gauge breakout strength, and align trades with the dominant structural zones visible across multiple time horizons.






















